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

Issue 272573005: <webview>: Move NewWindow API to chrome (Closed)

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

Description

<webview>: Move NewWindow API to chrome This CL moves the New Window API and navigation to chrome. This CL removes a lot of unnecessary content APIs for BrowserPlugin now that permissions no longer live in content. Up next, in a separate CL will be a huge cleanup that removes all WebContentsDelegate code out of BrowserPluginGuest and into WebViewGuest. This should significantly reduce the size of the BrowserPlugin content API. BUG=364141, 330264 TBR=kenrb@chromium.org for trivial browser_plugin_messages.h change. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=271703

Patch Set 1 #

Patch Set 2 : Tests pass. Continuing work #

Patch Set 3 : More cleanup #

Patch Set 4 : Cleanup and fix tests #

Total comments: 20

Patch Set 5 : Addressed Istiaque's comments #

Total comments: 4

Patch Set 6 : Addressed nits #

Patch Set 7 : Merged with ToT #

Patch Set 8 : Fix content_browsertests build #

Patch Set 9 : Fixed crashing in debug tests #

Patch Set 10 : Merge with ToT #

Patch Set 11 : Merge with ToT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+840 lines, -843 lines) Patch
M chrome/browser/apps/web_view_interactive_browsertest.cc View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/chrome_content_browser_client.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/devtools/devtools_targets_ui.cc View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/identity/identity_apitest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/identity/web_auth_flow.cc View 1 2 3 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/guest_view/ad_view/ad_view_guest.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/guest_view/ad_view/ad_view_guest.cc View 1 2 3 4 1 chunk +5 lines, -4 lines 0 comments Download
M chrome/browser/guest_view/guest_view.h View 1 2 3 4 1 chunk +17 lines, -4 lines 0 comments Download
M chrome/browser/guest_view/guest_view_base.h View 1 2 3 4 5 chunks +29 lines, -10 lines 0 comments Download
M chrome/browser/guest_view/guest_view_base.cc View 1 2 3 4 6 chunks +24 lines, -18 lines 0 comments Download
M chrome/browser/guest_view/guest_view_manager.cc View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/guest_view/web_view/javascript_dialog_helper.cc View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/guest_view/web_view/plugin_permission_helper.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/guest_view/web_view/web_view_constants.h View 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/guest_view/web_view/web_view_constants.cc View 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/guest_view/web_view/web_view_guest.h View 1 2 3 4 5 6 9 chunks +75 lines, -20 lines 0 comments Download
M chrome/browser/guest_view/web_view/web_view_guest.cc View 1 2 3 4 5 6 22 chunks +354 lines, -138 lines 0 comments Download
M chrome/browser/guest_view/web_view/web_view_permission_types.h View 1 2 2 chunks +10 lines, -4 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest.h View 1 2 3 4 5 6 5 chunks +2 lines, -62 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_guest.cc View 1 2 3 4 5 6 15 chunks +49 lines, -366 lines 0 comments Download
A content/browser/browser_plugin/test_browser_plugin_guest_delegate.h View 1 2 3 4 5 6 7 8 1 chunk +45 lines, -0 lines 0 comments Download
A content/browser/browser_plugin/test_browser_plugin_guest_delegate.cc View 1 2 3 4 5 6 7 8 1 chunk +54 lines, -0 lines 0 comments Download
M content/browser/browser_plugin/test_guest_manager.cc View 1 2 3 4 4 chunks +17 lines, -6 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +17 lines, -37 lines 0 comments Download
M content/common/browser_plugin/browser_plugin_constants.h View 1 2 3 4 3 chunks +0 lines, -35 lines 0 comments Download
M content/common/browser_plugin/browser_plugin_constants.cc View 1 2 3 4 3 chunks +0 lines, -36 lines 0 comments Download
M content/common/browser_plugin/browser_plugin_messages.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M content/content_common.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -1 line 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M content/public/browser/browser_plugin_guest_delegate.h View 1 2 3 4 5 6 8 chunks +82 lines, -37 lines 0 comments Download
M content/public/browser/browser_plugin_guest_delegate.cc View 1 2 3 4 5 6 2 chunks +6 lines, -12 lines 0 comments Download
M content/public/browser/content_browser_client.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M content/public/browser/web_contents.h View 1 2 3 4 2 chunks +6 lines, -9 lines 0 comments Download
M content/public/browser/web_contents.cc View 2 chunks +2 lines, -0 lines 0 comments Download
D content/public/common/browser_plugin_permission_type.h View 1 2 1 chunk +0 lines, -21 lines 0 comments Download

Messages

Total messages: 42 (0 generated)
Fady Samuel
6 years, 7 months ago (2014-05-12 15:05:39 UTC) #1
lazyboy
https://chromiumcodereview.appspot.com/272573005/diff/60001/chrome/browser/guest_view/guest_view_base.cc File chrome/browser/guest_view/guest_view_base.cc (right): https://chromiumcodereview.appspot.com/272573005/diff/60001/chrome/browser/guest_view/guest_view_base.cc#newcode167 chrome/browser/guest_view/guest_view_base.cc:167: destruction_callback_.Run(guest_web_contents()); Will destruction_callback_ be always set? Prefer a DCHECK(!destruction_callback_.is_null()); ...
6 years, 7 months ago (2014-05-12 23:00:20 UTC) #2
Fady Samuel
PTAL https://chromiumcodereview.appspot.com/272573005/diff/60001/chrome/browser/guest_view/guest_view_base.cc File chrome/browser/guest_view/guest_view_base.cc (right): https://chromiumcodereview.appspot.com/272573005/diff/60001/chrome/browser/guest_view/guest_view_base.cc#newcode167 chrome/browser/guest_view/guest_view_base.cc:167: destruction_callback_.Run(guest_web_contents()); On 2014/05/12 23:00:20, lazyboy wrote: > Will ...
6 years, 7 months ago (2014-05-13 18:59:02 UTC) #3
lazyboy
lgtm
6 years, 7 months ago (2014-05-13 19:08:28 UTC) #4
Fady Samuel
Hi John, could you please take a look at the content/public changes? The additions to ...
6 years, 7 months ago (2014-05-13 19:12:09 UTC) #5
jam
(just looked at content/public) https://codereview.chromium.org/272573005/diff/80001/content/public/browser/browser_plugin_guest_delegate.h File content/public/browser/browser_plugin_guest_delegate.h (right): https://codereview.chromium.org/272573005/diff/80001/content/public/browser/browser_plugin_guest_delegate.h#newcode159 content/public/browser/browser_plugin_guest_delegate.h:159: const DestructionCallback& callback) {} can ...
6 years, 7 months ago (2014-05-13 21:38:24 UTC) #6
jam
(just looked at content/public) https://codereview.chromium.org/272573005/diff/80001/content/public/browser/browser_plugin_guest_delegate.h File content/public/browser/browser_plugin_guest_delegate.h (right): https://codereview.chromium.org/272573005/diff/80001/content/public/browser/browser_plugin_guest_delegate.h#newcode159 content/public/browser/browser_plugin_guest_delegate.h:159: const DestructionCallback& callback) {} can ...
6 years, 7 months ago (2014-05-13 21:38:24 UTC) #7
Fady Samuel
Addressed John's comments. PTAL https://codereview.chromium.org/272573005/diff/80001/content/public/browser/browser_plugin_guest_delegate.h File content/public/browser/browser_plugin_guest_delegate.h (right): https://codereview.chromium.org/272573005/diff/80001/content/public/browser/browser_plugin_guest_delegate.h#newcode159 content/public/browser/browser_plugin_guest_delegate.h:159: const DestructionCallback& callback) {} On ...
6 years, 7 months ago (2014-05-15 20:02:56 UTC) #8
Fady Samuel
Addressed John's comments. PTAL https://codereview.chromium.org/272573005/diff/80001/content/public/browser/browser_plugin_guest_delegate.h File content/public/browser/browser_plugin_guest_delegate.h (right): https://codereview.chromium.org/272573005/diff/80001/content/public/browser/browser_plugin_guest_delegate.h#newcode159 content/public/browser/browser_plugin_guest_delegate.h:159: const DestructionCallback& callback) {} On ...
6 years, 7 months ago (2014-05-15 20:02:56 UTC) #9
jam
lgtm
6 years, 7 months ago (2014-05-15 21:32:41 UTC) #10
Fady Samuel
The CQ bit was checked by fsamuel@chromium.org
6 years, 7 months ago (2014-05-15 22:12:26 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/272573005/100001
6 years, 7 months ago (2014-05-15 22:14:06 UTC) #12
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-15 23:15:49 UTC) #13
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-15 23:23:42 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_chromium_gn_compile_rel/builds/4788) chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/68009) linux_chromium_chromeos_rel ...
6 years, 7 months ago (2014-05-15 23:23:42 UTC) #15
fsamuel
The CQ bit was checked by fsamuel@google.com
6 years, 7 months ago (2014-05-15 23:31:47 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/272573005/120001
6 years, 7 months ago (2014-05-15 23:32:43 UTC) #17
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-16 02:57:38 UTC) #18
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-16 03:10:08 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_clang_dbg/builds/143073)
6 years, 7 months ago (2014-05-16 03:10:08 UTC) #20
Fady Samuel
The CQ bit was checked by fsamuel@chromium.org
6 years, 7 months ago (2014-05-16 11:14:41 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/272573005/140001
6 years, 7 months ago (2014-05-16 11:15:12 UTC) #22
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-16 13:00:32 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-16 13:24:43 UTC) #24
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chromeos_rel/builds/27804)
6 years, 7 months ago (2014-05-16 13:24:43 UTC) #25
Fady Samuel
The CQ bit was checked by fsamuel@chromium.org
6 years, 7 months ago (2014-05-16 14:36:59 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/272573005/160001
6 years, 7 months ago (2014-05-16 14:37:31 UTC) #27
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-16 18:15:51 UTC) #28
commit-bot: I haz the power
Failed to apply patch for chrome/browser/devtools/devtools_targets_ui.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 7 months ago (2014-05-16 18:15:51 UTC) #29
fsamuel
The CQ bit was checked by fsamuel@google.com
6 years, 7 months ago (2014-05-16 21:09:25 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/272573005/180001
6 years, 7 months ago (2014-05-16 21:10:41 UTC) #31
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-17 12:45:35 UTC) #32
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-17 17:43:19 UTC) #33
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/mac_chromium_rel/builds/29985)
6 years, 7 months ago (2014-05-17 17:43:19 UTC) #34
Fady Samuel
The CQ bit was checked by fsamuel@chromium.org
6 years, 7 months ago (2014-05-17 22:28:42 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/272573005/180001
6 years, 7 months ago (2014-05-17 22:29:04 UTC) #36
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-17 22:34:02 UTC) #37
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-17 22:38:42 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/mac_chromium_rel/builds/30032)
6 years, 7 months ago (2014-05-17 22:38:43 UTC) #39
fsamuel
The CQ bit was checked by fsamuel@google.com
6 years, 7 months ago (2014-05-20 14:53:03 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/272573005/200001
6 years, 7 months ago (2014-05-20 14:53:38 UTC) #41
commit-bot: I haz the power
6 years, 7 months ago (2014-05-20 17:59:09 UTC) #42
Message was sent while issue was closed.
Change committed as 271703

Powered by Google App Engine
This is Rietveld 408576698