Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(337)

Issue 17624004: Decouple GuestView creation from attachment. (Closed)

Created:
7 years, 6 months ago by Fady Samuel
Modified:
7 years, 5 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@guest_view_refactor
Visibility:
Public.

Description

Decouple GuestView creation from attachment. This enables attaching the GuestView earlier on prior to loading resources. Loading events that occur prior to attachment are queued until attachment and then sent to the embedder on attachment. This CL also moves loadstop from content to chrome. Existing tests exercise the need for queuing. BUG=166165 Test=WebViewTest.Shim (newwindow tests) Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=209345

Patch Set 1 #

Patch Set 2 : Cleanup #

Total comments: 1

Patch Set 3 : Merge with latest diff #

Patch Set 4 : Cleanup #

Patch Set 5 : Add loadstop + queue to ensure decoupling works #

Patch Set 6 : Remove loadstop from content #

Total comments: 4

Patch Set 7 : Merge with ToT #

Patch Set 8 : Addressed comments #

Patch Set 9 : Addressed lazyboy@'s comments #

Patch Set 10 : Addressed comment + fixed bug #

Total comments: 1

Patch Set 11 : Added comment #

Patch Set 12 : Merge with ToT #

Patch Set 13 : Fixed BrowserPluginHostTest.* #

Total comments: 8

Patch Set 14 : Removed constants #

Patch Set 15 : Addressed creis@'s comments #

Patch Set 16 : Merge with ToT #

Patch Set 17 : Fixed compile #

Patch Set 18 : Fix compile on Windows, hopefully #

Unified diffs Side-by-side diffs Delta from patch set Stats (+355 lines, -279 lines) Patch
M chrome/browser/chrome_content_browser_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +56 lines, -21 lines 0 comments Download
M chrome/browser/guestview/adview/adview_guest.h View 1 2 3 4 5 6 1 chunk +2 lines, -6 lines 0 comments Download
M chrome/browser/guestview/adview/adview_guest.cc View 1 2 3 4 5 6 3 chunks +8 lines, -16 lines 0 comments Download
M chrome/browser/guestview/guestview.h View 1 2 3 4 5 6 4 chunks +49 lines, -13 lines 0 comments Download
M chrome/browser/guestview/guestview.cc View 1 2 3 4 5 6 7 8 9 3 chunks +98 lines, -17 lines 0 comments Download
M chrome/browser/guestview/guestview_constants.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/guestview/guestview_constants.cc View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/guestview/webview/webview_constants.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/guestview/webview/webview_constants.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/guestview/webview/webview_guest.h View 1 2 3 4 5 6 2 chunks +8 lines, -6 lines 0 comments Download
M chrome/browser/guestview/webview/webview_guest.cc View 1 2 3 4 5 6 6 chunks +29 lines, -22 lines 0 comments Download
M chrome/renderer/resources/extensions/web_view.js View 1 2 3 4 5 6 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/platform_apps/web_view/newwindow/embedder.js View 1 2 3 4 5 6 7 8 9 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/platform_apps/web_view/newwindow/guest_opener.html View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_embedder.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +9 lines, -3 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +3 lines, -2 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +20 lines, -9 lines 0 comments Download
content/browser/browser_plugin/browser_plugin_guest_manager.h View 2 chunks +3 lines, -1 line 0 comments Download
content/browser/browser_plugin/browser_plugin_guest_manager.cc View 2 chunks +4 lines, -2 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_host_browsertest.cc View 1 2 3 4 5 6 2 chunks +0 lines, -69 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +10 lines, -1 line 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +11 lines, -6 lines 0 comments Download
M content/common/browser_plugin/browser_plugin_constants.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -1 line 0 comments Download
M content/common/browser_plugin/browser_plugin_constants.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +0 lines, -1 line 0 comments Download
M content/common/browser_plugin/browser_plugin_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -5 lines 0 comments Download
M content/public/browser/content_browser_client.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +14 lines, -0 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin.h View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/browser_plugin/browser_plugin.cc View 1 2 3 4 5 3 chunks +0 lines, -6 lines 0 comments Download
M content/test/data/browser_plugin_embedder.html View 1 2 3 4 5 2 chunks +0 lines, -4 lines 0 comments Download
D content/test/data/browser_plugin_naming_embedder.html View 1 2 3 4 5 1 chunk +0 lines, -38 lines 0 comments Download
D content/test/data/browser_plugin_naming_guest.html View 1 2 3 4 5 1 chunk +0 lines, -29 lines 0 comments Download

Messages

Total messages: 33 (0 generated)
Fady Samuel
7 years, 6 months ago (2013-06-25 00:31:40 UTC) #1
lazyboy
I'll review this one once you have the other dependent CL landed. https://chromiumcodereview.appspot.com/17624004/diff/2001/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc ...
7 years, 6 months ago (2013-06-25 14:48:57 UTC) #2
Fady Samuel
This now implements loadstop too. I added the event queue so that any event that ...
7 years, 6 months ago (2013-06-25 22:54:51 UTC) #3
lazyboy
Looks alright, one q about the description: "Existing tests exercise the need for queuing." -> ...
7 years, 6 months ago (2013-06-26 16:41:16 UTC) #4
Fady Samuel
PTAL https://codereview.chromium.org/17624004/diff/17001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/17624004/diff/17001/content/browser/web_contents/web_contents_impl.cc#newcode443 content/browser/web_contents/web_contents_impl.cc:443: GetContentClient()->browser()->GuestWebContentsCreated( On 2013/06/26 16:41:16, lazyboy wrote: > Why ...
7 years, 5 months ago (2013-06-27 17:07:09 UTC) #5
lazyboy
lgtm One comment not addressed: "Existing tests exercise the need for queuing." -> can you ...
7 years, 5 months ago (2013-06-27 17:49:52 UTC) #6
Fady Samuel
Comment addressed. I also fixed a subtle bug in when the queued events fire.
7 years, 5 months ago (2013-06-27 19:13:06 UTC) #7
lazyboy
lgtm https://chromiumcodereview.appspot.com/17624004/diff/38001/content/browser/browser_plugin/browser_plugin_embedder.cc File content/browser/browser_plugin/browser_plugin_embedder.cc (right): https://chromiumcodereview.appspot.com/17624004/diff/38001/content/browser/browser_plugin/browser_plugin_embedder.cc#newcode187 content/browser/browser_plugin/browser_plugin_embedder.cc:187: guest->Attach(static_cast<WebContentsImpl*>(web_contents()), params); Add a comment about order of ...
7 years, 5 months ago (2013-06-27 19:31:11 UTC) #8
Fady Samuel
+jam@ for review of: content/public/browser/content_browser_client.h content/browser/web_contents/* chrome/browser/chrome_content_browser_client.cc chrome/browser/chrome_content_browser_client.h Thanks!
7 years, 5 months ago (2013-06-28 17:18:54 UTC) #9
jam
ok, but I don't really understand all the guest stuff now so please have Charlie ...
7 years, 5 months ago (2013-06-28 20:46:47 UTC) #10
Charlie Reis
Just looking at web_contents_impl and content_browser_client. Looks like you're mainly notifying the client when a ...
7 years, 5 months ago (2013-06-28 21:59:59 UTC) #11
Fady Samuel
Addressed comments. PTAL. https://codereview.chromium.org/17624004/diff/46001/content/browser/web_contents/web_contents_impl.cc File content/browser/web_contents/web_contents_impl.cc (right): https://codereview.chromium.org/17624004/diff/46001/content/browser/web_contents/web_contents_impl.cc#newcode3678 content/browser/web_contents/web_contents_impl.cc:3678: browser_plugin_guest_.reset(guest); On 2013/06/28 21:59:59, creis wrote: ...
7 years, 5 months ago (2013-06-28 22:24:41 UTC) #12
Charlie Reis
Ok, content/browser/web_contents/web_contents_impl.* LGTM.
7 years, 5 months ago (2013-06-28 22:28:06 UTC) #13
Fady Samuel
John, could you please take a look at the (Chrome)ContentBrowserClient changes? I'm an OWNER for ...
7 years, 5 months ago (2013-06-28 22:34:33 UTC) #14
jam
lgtm
7 years, 5 months ago (2013-06-28 22:36:09 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/17624004/47004
7 years, 5 months ago (2013-06-28 22:39:14 UTC) #16
commit-bot: I haz the power
Failed to apply patch for chrome/browser/adview/adview_guest.cc: While running svn delete chrome/browser/adview/adview_guest.cc --force --config-dir /b/commit-queue/subversion_config --non-interactive; ...
7 years, 5 months ago (2013-06-28 22:39:26 UTC) #17
Fady Samuel
+cdn@ for browser_plugin_messages
7 years, 5 months ago (2013-06-28 22:51:59 UTC) #18
Cris Neckar
rubber stamp lgtm for ipc changes
7 years, 5 months ago (2013-06-28 22:58:09 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/17624004/58002
7 years, 5 months ago (2013-06-28 23:01:56 UTC) #20
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 5 months ago (2013-06-29 00:35:17 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/17624004/58002
7 years, 5 months ago (2013-06-29 00:45:10 UTC) #22
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 5 months ago (2013-06-29 00:52:41 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/17624004/69002
7 years, 5 months ago (2013-06-29 14:13:32 UTC) #24
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) base_unittests, browser_tests, cacheinvalidation_unittests, cc_unittests, check_deps, chrome_frame_net_tests, ...
7 years, 5 months ago (2013-06-29 15:04:25 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/17624004/69002
7 years, 5 months ago (2013-06-29 15:19:46 UTC) #26
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 5 months ago (2013-06-29 15:41:46 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/17624004/69002
7 years, 5 months ago (2013-06-29 16:43:15 UTC) #28
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 5 months ago (2013-06-29 17:18:23 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/17624004/69002
7 years, 5 months ago (2013-06-29 18:03:26 UTC) #30
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 5 months ago (2013-06-29 18:36:32 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/17624004/108001
7 years, 5 months ago (2013-06-29 19:08:56 UTC) #32
commit-bot: I haz the power
7 years, 5 months ago (2013-06-29 21:06:59 UTC) #33
Message was sent while issue was closed.
Change committed as 209345

Powered by Google App Engine
This is Rietveld 408576698