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

Issue 444813002: Remove BrowserPlugin's -internal-attach method (Closed)

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

Description

Remove BrowserPlugin's -internal-attach method This CL exposes a much simpler content/public method: void RenderView::AttachToBrowserPlugin(blink::WebNode&) This removes BrowserPlugin's usage of NPAPI method bindings. This will hopefully help us move towards using OOPIFs. BUG=330264 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=291261

Patch Set 1 #

Patch Set 2 : Diff against autosize #

Patch Set 3 : Work in Progress: Still broken #

Patch Set 4 : All tests pass #

Total comments: 2

Patch Set 5 : Move AttachToBrowserPlugin to RenderFrame #

Total comments: 8

Patch Set 6 : Rebased #

Patch Set 7 : Updated #

Total comments: 18

Patch Set 8 : #

Total comments: 2

Patch Set 9 : Updated comment #

Total comments: 5

Patch Set 10 : BPID for routing #

Patch Set 11 : Cleanup #

Patch Set 12 : More cleanup #

Patch Set 13 : Implemented reattachment #

Patch Set 14 : Updated #

Patch Set 15 : Fix content_browsertests #

Patch Set 16 : Cleanup #

Patch Set 17 : Rebased #

Patch Set 18 : Don't crash on tear down #

Unified diffs Side-by-side diffs Delta from patch set Stats (+718 lines, -579 lines) Patch
M chrome/browser/apps/web_view_interactive_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/extensions/api/guest_view/guest_view_internal_api.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/guest_view/extension_options/extension_options_guest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +7 lines, -7 lines 0 comments Download
M chrome/browser/guest_view/web_view/web_view_guest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +11 lines, -11 lines 0 comments Download
M chrome/browser/renderer_host/chrome_extension_message_filter.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/chrome_extension_message_filter.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +22 lines, -0 lines 0 comments Download
M chrome/chrome_renderer.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/chrome_extension_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/chrome_extensions_dispatcher_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +5 lines, -0 lines 0 comments Download
A chrome/renderer/extensions/guest_view_internal_custom_bindings.h View 1 2 3 4 5 6 7 8 1 chunk +35 lines, -0 lines 0 comments Download
A chrome/renderer/extensions/guest_view_internal_custom_bindings.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +65 lines, -0 lines 0 comments Download
M chrome/renderer/resources/extensions/app_view.js View 1 2 3 4 5 6 7 2 chunks +13 lines, -9 lines 0 comments Download
M chrome/renderer/resources/extensions/extension_options.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 6 chunks +14 lines, -10 lines 0 comments Download
M chrome/renderer/resources/extensions/web_view.js View 1 2 3 22 chunks +75 lines, -65 lines 0 comments Download
M chrome/renderer/resources/extensions/web_view_events.js View 1 11 chunks +26 lines, -24 lines 0 comments Download
M chrome/renderer/resources/extensions/web_view_experimental.js View 3 chunks +3 lines, -3 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_embedder.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -3 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_embedder.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +8 lines, -10 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 6 chunks +13 lines, -20 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 28 chunks +61 lines, -51 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_message_filter.cc View 1 2 3 4 5 6 7 8 9 1 chunk +10 lines, -8 lines 0 comments Download
M content/browser/frame_host/render_widget_host_view_guest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +3 lines, -3 lines 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 1 chunk +1 line, -3 lines 0 comments Download
M content/common/browser_plugin/browser_plugin_messages.h View 1 2 3 4 5 6 7 8 9 8 chunks +40 lines, -41 lines 0 comments Download
M content/public/browser/browser_plugin_guest_delegate.h View 1 2 3 4 5 6 7 8 9 2 chunks +1 line, -5 lines 0 comments Download
M content/public/browser/browser_plugin_guest_delegate.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -4 lines 0 comments Download
M content/public/browser/browser_plugin_guest_manager.h View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -2 lines 0 comments Download
M content/public/renderer/render_frame.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +4 lines, -0 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin.h View 1 2 3 4 5 6 7 8 9 7 chunks +14 lines, -13 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin.cc View 1 2 3 4 5 6 7 8 9 10 11 12 31 chunks +70 lines, -77 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin_bindings.h View 2 chunks +0 lines, -3 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin_bindings.cc View 1 2 3 4 5 6 6 chunks +2 lines, -137 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +3 lines, -2 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin_manager.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +14 lines, -3 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin_manager.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +20 lines, -6 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin_manager_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +5 lines, -5 lines 0 comments Download
M content/renderer/browser_plugin/mock_browser_plugin_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +0 lines, -6 lines 0 comments Download
M content/renderer/browser_plugin/mock_browser_plugin_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +0 lines, -13 lines 0 comments Download
M content/renderer/child_frame_compositing_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +4 lines, -0 lines 0 comments Download
M extensions/browser/guest_view/app_view/app_view_guest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +2 lines, -2 lines 0 comments Download
M extensions/browser/guest_view/guest_view_base.h View 1 2 3 4 5 6 7 8 9 5 chunks +14 lines, -13 lines 0 comments Download
M extensions/browser/guest_view/guest_view_base.cc View 1 2 3 4 5 6 7 8 9 4 chunks +7 lines, -8 lines 0 comments Download
M extensions/browser/guest_view/guest_view_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +35 lines, -3 lines 0 comments Download
M extensions/browser/guest_view/guest_view_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 5 chunks +74 lines, -2 lines 0 comments Download
M extensions/renderer/script_context.h View 1 2 3 4 2 chunks +5 lines, -0 lines 0 comments Download
M extensions/renderer/script_context.cc View 1 2 3 4 5 6 7 2 chunks +8 lines, -2 lines 0 comments Download

Messages

Total messages: 35 (0 generated)
Fady Samuel
Hi Xi, This is my internal-attach patch which is based on Istiaque's patch. It finally ...
6 years, 4 months ago (2014-08-08 22:33:44 UTC) #1
Fady Samuel
https://codereview.chromium.org/444813002/diff/80001/chrome/renderer/extensions/guest_view_internal_custom_bindings.cc File chrome/renderer/extensions/guest_view_internal_custom_bindings.cc (right): https://codereview.chromium.org/444813002/diff/80001/chrome/renderer/extensions/guest_view_internal_custom_bindings.cc#newcode50 chrome/renderer/extensions/guest_view_internal_custom_bindings.cc:50: extra line
6 years, 4 months ago (2014-08-11 21:10:00 UTC) #2
Xi Han
lgtm with nit. https://codereview.chromium.org/444813002/diff/60001/chrome/browser/guest_view/guest_view_base.h File chrome/browser/guest_view/guest_view_base.h (right): https://codereview.chromium.org/444813002/diff/60001/chrome/browser/guest_view/guest_view_base.h#newcode307 chrome/browser/guest_view/guest_view_base.h:307: scoped_ptr<base::DictionaryValue> attach_params_; Please update the first ...
6 years, 4 months ago (2014-08-12 18:17:55 UTC) #3
Fady Samuel
Addressed nits: jochen@: chrome/browser chrome/renderer (not extensions) jam@: content/public kalman@: extension/renderer/* https://codereview.chromium.org/444813002/diff/60001/chrome/browser/guest_view/guest_view_base.h File chrome/browser/guest_view/guest_view_base.h (right): ...
6 years, 4 months ago (2014-08-13 22:24:40 UTC) #4
not at google - send to devlin
https://codereview.chromium.org/444813002/diff/120001/chrome/renderer/extensions/guest_view_internal_custom_bindings.cc File chrome/renderer/extensions/guest_view_internal_custom_bindings.cc (right): https://codereview.chromium.org/444813002/diff/120001/chrome/renderer/extensions/guest_view_internal_custom_bindings.cc#newcode32 chrome/renderer/extensions/guest_view_internal_custom_bindings.cc:32: content::RenderFrame* render_frame = context()->GetRenderFrame(); Nit: do this after argument ...
6 years, 4 months ago (2014-08-13 23:40:17 UTC) #5
Fady Samuel
Addressed kalman@'s comments https://codereview.chromium.org/444813002/diff/120001/chrome/renderer/extensions/guest_view_internal_custom_bindings.cc File chrome/renderer/extensions/guest_view_internal_custom_bindings.cc (right): https://codereview.chromium.org/444813002/diff/120001/chrome/renderer/extensions/guest_view_internal_custom_bindings.cc#newcode32 chrome/renderer/extensions/guest_view_internal_custom_bindings.cc:32: content::RenderFrame* render_frame = context()->GetRenderFrame(); On 2014/08/13 ...
6 years, 4 months ago (2014-08-14 19:41:18 UTC) #6
not at google - send to devlin
lgtm https://codereview.chromium.org/444813002/diff/140001/chrome/renderer/extensions/guest_view_internal_custom_bindings.h File chrome/renderer/extensions/guest_view_internal_custom_bindings.h (right): https://codereview.chromium.org/444813002/diff/140001/chrome/renderer/extensions/guest_view_internal_custom_bindings.h#newcode28 chrome/renderer/extensions/guest_view_internal_custom_bindings.h:28: // at the time of attachment. Could you ...
6 years, 4 months ago (2014-08-14 19:51:22 UTC) #7
Fady Samuel
Addressed nit. https://codereview.chromium.org/444813002/diff/140001/chrome/renderer/extensions/guest_view_internal_custom_bindings.h File chrome/renderer/extensions/guest_view_internal_custom_bindings.h (right): https://codereview.chromium.org/444813002/diff/140001/chrome/renderer/extensions/guest_view_internal_custom_bindings.h#newcode28 chrome/renderer/extensions/guest_view_internal_custom_bindings.h:28: // at the time of attachment. On ...
6 years, 4 months ago (2014-08-14 20:02:56 UTC) #8
jam
https://codereview.chromium.org/444813002/diff/160001/content/public/browser/browser_plugin_guest_manager.h File content/public/browser/browser_plugin_guest_manager.h (right): https://codereview.chromium.org/444813002/diff/160001/content/public/browser/browser_plugin_guest_manager.h#newcode45 content/public/browser/browser_plugin_guest_manager.h:45: // content/ vs chrome/ IDs, remove this. this is ...
6 years, 4 months ago (2014-08-15 17:41:04 UTC) #9
Fady Samuel
Hi John, I've removed the content API that does the ID translation. This CL now ...
6 years, 4 months ago (2014-08-16 23:24:30 UTC) #10
jam
On 2014/08/16 23:24:30, Fady Samuel wrote: > Hi John, > > I've removed the content ...
6 years, 4 months ago (2014-08-18 15:53:58 UTC) #11
Fady Samuel
On 2014/08/18 15:53:58, jam wrote: > On 2014/08/16 23:24:30, Fady Samuel wrote: > > Hi ...
6 years, 4 months ago (2014-08-18 17:10:43 UTC) #12
Fady Samuel
PTAL hanxi@: We can chat offline about what's going on. +kenrb@ for _messages.h
6 years, 4 months ago (2014-08-18 23:16:01 UTC) #13
kenrb
ipc lgtm
6 years, 4 months ago (2014-08-19 15:37:35 UTC) #14
Fady Samuel
PTAL hanxi@: Let's chat these new changes offline. jam@: Please review content API changes.
6 years, 4 months ago (2014-08-20 15:34:24 UTC) #15
jam
lgtm
6 years, 4 months ago (2014-08-20 23:29:20 UTC) #16
Fady Samuel
Xi: I'm CQ'ing this patch now because it's blocking progress on the PDF viewer. We ...
6 years, 4 months ago (2014-08-20 23:33:15 UTC) #17
Fady Samuel
The CQ bit was checked by fsamuel@chromium.org
6 years, 4 months ago (2014-08-20 23:33:21 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/444813002/260001
6 years, 4 months ago (2014-08-20 23:33:45 UTC) #19
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_gpu on tryserver.chromium.gpu ...
6 years, 4 months ago (2014-08-21 00:44:46 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-21 00:47:17 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu/builds/55363) mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/44497) ios_dbg_simulator ...
6 years, 4 months ago (2014-08-21 00:47:18 UTC) #22
Fady Samuel
The CQ bit was checked by fsamuel@chromium.org
6 years, 4 months ago (2014-08-21 16:47:12 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/444813002/280001
6 years, 4 months ago (2014-08-21 16:49:14 UTC) #24
Fady Samuel
The CQ bit was checked by fsamuel@chromium.org
6 years, 4 months ago (2014-08-21 17:59:42 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/444813002/320001
6 years, 4 months ago (2014-08-21 18:01:35 UTC) #26
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_gpu on tryserver.chromium.gpu ...
6 years, 4 months ago (2014-08-21 19:47:24 UTC) #27
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-21 19:50:37 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_swarming on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_swarming/builds/5703)
6 years, 4 months ago (2014-08-21 19:50:38 UTC) #29
Fady Samuel
The CQ bit was checked by fsamuel@chromium.org
6 years, 4 months ago (2014-08-21 20:01:35 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/444813002/340001
6 years, 4 months ago (2014-08-21 20:05:22 UTC) #31
Fady Samuel
The CQ bit was checked by fsamuel@chromium.org
6 years, 4 months ago (2014-08-21 21:16:08 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fsamuel@chromium.org/444813002/360001
6 years, 4 months ago (2014-08-21 21:27:14 UTC) #33
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_rel_swarming on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-21 23:39:47 UTC) #34
commit-bot: I haz the power
6 years, 4 months ago (2014-08-22 00:16:35 UTC) #35
Message was sent while issue was closed.
Committed patchset #18 (360001) as 291261

Powered by Google App Engine
This is Rietveld 408576698