Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(344)

Issue 258373002: Towards moving guest management to chrome: Introduce GuestViewManager (Closed)

Created:
6 years, 7 months ago by Fady Samuel
Modified:
6 years, 7 months ago
CC:
chromium-reviews, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, darin-cc_chromium.org, jochen+watch_chromium.org, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Towards moving guest management to chrome: Introduce GuestViewManager This CL moves a lot of functionality from BrowserPluginGuestManager to GuestViewManager including instance ID allocation. Currently GuestViewManager is a BrowserPluginGuestManagerDelegate. In the future, GuestViewManager will completely replace BrowserPluginGuestManager. BUG=364141, 330264 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=268391

Patch Set 1 #

Total comments: 5

Patch Set 2 : Fixed browser_tests + cleanup #

Total comments: 27

Patch Set 3 : Merged with ToT. Addressed comments #

Patch Set 4 : Merge with ToT #

Total comments: 39

Patch Set 5 : Some cleanup and simpification #

Total comments: 2

Patch Set 6 : Addressed Istiaque's comments #

Total comments: 14

Patch Set 7 : Addressed John's comments #

Total comments: 10

Patch Set 8 : Addressed John's coments #

Patch Set 9 : Updated against trunk #

Patch Set 10 : Patch #

Patch Set 11 : Fixed tests #

Patch Set 12 : Fix Android build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+922 lines, -263 lines) Patch
M android_webview/browser/aw_browser_context.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M android_webview/browser/aw_browser_context.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 3 chunks +9 lines, -2 lines 0 comments Download
M chrome/browser/guest_view/ad_view/ad_view_guest.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/guest_view/guest_view.h View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/guest_view/guest_view_base.h View 1 2 3 4 5 4 chunks +19 lines, -4 lines 0 comments Download
M chrome/browser/guest_view/guest_view_base.cc View 1 2 3 4 8 chunks +41 lines, -16 lines 0 comments Download
M chrome/browser/guest_view/guest_view_constants.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/guest_view/guest_view_constants.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A chrome/browser/guest_view/guest_view_manager.h View 1 2 3 4 5 1 chunk +71 lines, -0 lines 0 comments Download
A chrome/browser/guest_view/guest_view_manager.cc View 1 2 3 4 5 1 chunk +203 lines, -0 lines 0 comments Download
M chrome/browser/guest_view/web_view/web_view_guest.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/guest_view/web_view/web_view_guest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_impl.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/profiles/off_the_record_profile_impl.cc View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_impl.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/app_list/test/fake_profile.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/app_list/test/fake_profile.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/base/testing_profile.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/base/testing_profile.cc View 1 2 3 4 5 6 2 chunks +6 lines, -0 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_embedder.h View 1 2 3 4 5 3 chunks +5 lines, -3 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_embedder.cc View 1 2 3 4 5 7 chunks +21 lines, -23 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest.h View 1 2 3 4 5 6 chunks +7 lines, -5 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest.cc View 1 2 3 4 5 6 7 8 15 chunks +43 lines, -28 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest_manager.h View 1 2 3 4 5 9 chunks +15 lines, -26 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest_manager.cc View 1 2 3 4 5 6 5 chunks +71 lines, -100 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_host_browsertest.cc View 1 2 3 4 5 6 7 7 chunks +18 lines, -20 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_host_factory.h View 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/browser_plugin/test_browser_plugin_guest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/browser_plugin/test_browser_plugin_guest_manager.h View 1 2 2 chunks +4 lines, -9 lines 0 comments Download
M content/browser/browser_plugin/test_browser_plugin_guest_manager.cc View 1 2 3 4 5 2 chunks +16 lines, -6 lines 0 comments Download
A content/browser/browser_plugin/test_guest_manager_delegate.h View 1 2 3 4 5 6 1 chunk +55 lines, -0 lines 0 comments Download
A content/browser/browser_plugin/test_guest_manager_delegate.cc View 1 2 3 4 5 6 1 chunk +95 lines, -0 lines 0 comments Download
M content/browser/download/download_manager_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -4 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -8 lines 0 comments Download
M content/content_browser.gypi View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M content/public/browser/browser_context.h View 1 2 3 4 5 6 7 2 chunks +5 lines, -0 lines 0 comments Download
M content/public/browser/browser_plugin_guest_delegate.h View 1 2 3 4 5 6 7 8 3 chunks +12 lines, -0 lines 0 comments Download
M content/public/browser/browser_plugin_guest_delegate.cc View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -0 lines 0 comments Download
A content/public/browser/browser_plugin_guest_manager_delegate.h View 1 2 3 4 5 6 1 chunk +75 lines, -0 lines 0 comments Download
A content/public/browser/browser_plugin_guest_manager_delegate.cc View 1 2 3 4 5 6 1 chunk +43 lines, -0 lines 0 comments Download
M content/public/test/test_browser_context.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M content/public/test/test_browser_context.cc View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M content/shell/browser/shell_browser_context.h View 1 2 3 4 5 6 7 3 chunks +8 lines, -0 lines 0 comments Download
M content/shell/browser/shell_browser_context.cc View 1 2 3 4 5 6 7 2 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
Fady Samuel
6 years, 7 months ago (2014-04-29 19:58:25 UTC) #1
lazyboy
Still going through the CL, sending you some comments. https://codereview.chromium.org/258373002/diff/1/chrome/browser/chrome_content_browser_client.cc File chrome/browser/chrome_content_browser_client.cc (right): https://codereview.chromium.org/258373002/diff/1/chrome/browser/chrome_content_browser_client.cc#newcode820 chrome/browser/chrome_content_browser_client.cc:820: ...
6 years, 7 months ago (2014-04-30 08:40:15 UTC) #2
Fady Samuel
PTAL https://codereview.chromium.org/258373002/diff/20001/chrome/browser/guestview/guestview_manager.cc File chrome/browser/guestview/guestview_manager.cc (right): https://codereview.chromium.org/258373002/diff/20001/chrome/browser/guestview/guestview_manager.cc#newcode23 chrome/browser/guestview/guestview_manager.cc:23: class GuestWebContentsObserver On 2014/04/30 08:40:15, lazyboy wrote: > ...
6 years, 7 months ago (2014-05-01 02:04:42 UTC) #3
lazyboy
https://chromiumcodereview.appspot.com/258373002/diff/60001/chrome/browser/guest_view/guest_view_base.h File chrome/browser/guest_view/guest_view_base.h (right): https://chromiumcodereview.appspot.com/258373002/diff/60001/chrome/browser/guest_view/guest_view_base.h#newcode144 chrome/browser/guest_view/guest_view_base.h:144: // Returns a WeakPtr to this GuestView. 1) this ...
6 years, 7 months ago (2014-05-01 20:06:58 UTC) #4
Fady Samuel
All comments addressed. +jam@ for content/public review. Thanks! https://codereview.chromium.org/258373002/diff/60001/chrome/browser/guest_view/guest_view_base.h File chrome/browser/guest_view/guest_view_base.h (right): https://codereview.chromium.org/258373002/diff/60001/chrome/browser/guest_view/guest_view_base.h#newcode144 chrome/browser/guest_view/guest_view_base.h:144: // ...
6 years, 7 months ago (2014-05-01 21:05:27 UTC) #5
lazyboy
lgtm https://codereview.chromium.org/258373002/diff/60001/chrome/browser/guest_view/guest_view_manager.h File chrome/browser/guest_view/guest_view_manager.h (right): https://codereview.chromium.org/258373002/diff/60001/chrome/browser/guest_view/guest_view_manager.h#newcode18 chrome/browser/guest_view/guest_view_manager.h:18: class GURL; On 2014/05/01 21:05:28, Fady Samuel wrote: ...
6 years, 7 months ago (2014-05-01 22:38:45 UTC) #6
jam
https://codereview.chromium.org/258373002/diff/100001/content/public/browser/browser_plugin_guest_delegate.h File content/public/browser/browser_plugin_guest_delegate.h (right): https://codereview.chromium.org/258373002/diff/100001/content/public/browser/browser_plugin_guest_delegate.h#newcode45 content/public/browser/browser_plugin_guest_delegate.h:45: virtual WebContents* GetOpener() const; hmm, does this need to ...
6 years, 7 months ago (2014-05-02 19:09:05 UTC) #7
Fady Samuel
PTAL John! Thanks! https://codereview.chromium.org/258373002/diff/100001/content/public/browser/browser_plugin_guest_delegate.h File content/public/browser/browser_plugin_guest_delegate.h (right): https://codereview.chromium.org/258373002/diff/100001/content/public/browser/browser_plugin_guest_delegate.h#newcode45 content/public/browser/browser_plugin_guest_delegate.h:45: virtual WebContents* GetOpener() const; On 2014/05/02 ...
6 years, 7 months ago (2014-05-02 21:28:19 UTC) #8
jam
https://codereview.chromium.org/258373002/diff/120001/content/public/browser/browser_context.h File content/public/browser/browser_context.h (right): https://codereview.chromium.org/258373002/diff/120001/content/public/browser/browser_context.h#newcode173 content/public/browser/browser_context.h:173: // Returns the guest manager for this context. guest ...
6 years, 7 months ago (2014-05-02 22:24:46 UTC) #9
Fady Samuel
PTAL John! Thanks! :-) https://codereview.chromium.org/258373002/diff/120001/content/public/browser/browser_context.h File content/public/browser/browser_context.h (right): https://codereview.chromium.org/258373002/diff/120001/content/public/browser/browser_context.h#newcode173 content/public/browser/browser_context.h:173: // Returns the guest manager ...
6 years, 7 months ago (2014-05-03 00:16:58 UTC) #10
jabdelmalek
lgtm
6 years, 7 months ago (2014-05-05 15:00:02 UTC) #11
jam
lgtm
6 years, 7 months ago (2014-05-05 15:02:35 UTC) #12
Fady Samuel
The CQ bit was checked by fsamuel@chromium.org
6 years, 7 months ago (2014-05-05 15:07:15 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/258373002/140001
6 years, 7 months ago (2014-05-05 15:07:36 UTC) #14
Fady Samuel
The CQ bit was checked by fsamuel@chromium.org
6 years, 7 months ago (2014-05-05 15:54:03 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/258373002/160001
6 years, 7 months ago (2014-05-05 15:54:16 UTC) #16
Fady Samuel
The CQ bit was checked by fsamuel@chromium.org
6 years, 7 months ago (2014-05-05 15:58:33 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/258373002/170045
6 years, 7 months ago (2014-05-05 15:59:08 UTC) #18
Fady Samuel
The CQ bit was checked by fsamuel@chromium.org
6 years, 7 months ago (2014-05-05 16:36:53 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/258373002/190001
6 years, 7 months ago (2014-05-05 16:37:29 UTC) #20
Fady Samuel
The CQ bit was checked by fsamuel@chromium.org
6 years, 7 months ago (2014-05-05 18:36:31 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/258373002/200001
6 years, 7 months ago (2014-05-05 18:37:16 UTC) #22
Fady Samuel
6 years, 7 months ago (2014-05-05 21:01:00 UTC) #23
michaelbai
lgtm for android_webview
6 years, 7 months ago (2014-05-05 21:04:40 UTC) #24
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-05 21:56:47 UTC) #25
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #2). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-06 01:40:45 UTC) #26
commit-bot: I haz the power
6 years, 7 months ago (2014-05-06 03:31:34 UTC) #27
Message was sent while issue was closed.
Change committed as 268391

Powered by Google App Engine
This is Rietveld 408576698