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

Issue 564973004: Move ContentWindow from BrowserPlugin To GuestView (Closed)

Created:
6 years, 3 months ago by Fady Samuel
Modified:
6 years, 3 months ago
CC:
chromium-reviews, mkwst+moarreviews-renderer_chromium.org, darin-cc_chromium.org, jam, extensions-reviews_chromium.org, chromium-apps-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Move ContentWindow from BrowserPlugin To GuestView This CL plumbs out the swapped out RenderView's routing ID out to the content embedder which then uses it to expose its contentWindow to an optional callback in the AttachGuest API Method. This patch also makes it fairly trivial to support a contentWindow in other GuestViews. BUG=330264 Committed: https://crrev.com/212c6daa34e6a5fd1a2754b08973d18d6d09246b Cr-Commit-Position: refs/heads/master@{#295477}

Patch Set 1 #

Total comments: 14

Patch Set 2 : Added additional comments #

Patch Set 3 : Addressed comments + fixed teardown bug #

Total comments: 4

Patch Set 4 : Addressed comments #

Patch Set 5 : Rebased + cleaned up browser_plugin_constants #

Patch Set 6 : More cleanup #

Unified diffs Side-by-side diffs Delta from patch set Stats (+218 lines, -130 lines) Patch
M content/browser/browser_plugin/browser_plugin_guest.cc View 4 chunks +8 lines, -11 lines 0 comments Download
M content/common/browser_plugin/browser_plugin_constants.h View 1 2 3 4 1 chunk +0 lines, -12 lines 0 comments Download
M content/common/browser_plugin/browser_plugin_constants.cc View 1 2 3 4 1 chunk +0 lines, -13 lines 0 comments Download
M content/common/browser_plugin/browser_plugin_messages.h View 1 chunk +0 lines, -6 lines 0 comments Download
M content/public/browser/browser_plugin_guest_delegate.h View 1 2 3 1 chunk +8 lines, -4 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin.h View 2 chunks +0 lines, -5 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin.cc View 4 chunks +0 lines, -20 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin_bindings.h View 1 2 3 4 5 1 chunk +0 lines, -5 lines 0 comments Download
M content/renderer/browser_plugin/browser_plugin_bindings.cc View 2 chunks +0 lines, -27 lines 0 comments Download
M extensions/browser/guest_view/guest_view_base.h View 1 2 3 3 chunks +9 lines, -2 lines 0 comments Download
M extensions/browser/guest_view/guest_view_base.cc View 1 2 3 5 chunks +12 lines, -2 lines 0 comments Download
M extensions/common/extension_messages.h View 1 chunk +6 lines, -0 lines 0 comments Download
M extensions/renderer/guest_view/guest_view_container.h View 1 2 3 chunks +24 lines, -3 lines 0 comments Download
M extensions/renderer/guest_view/guest_view_container.cc View 1 2 5 chunks +110 lines, -2 lines 0 comments Download
M extensions/renderer/guest_view/guest_view_internal_custom_bindings.cc View 1 2 3 chunks +26 lines, -13 lines 0 comments Download
M extensions/renderer/resources/web_view.js View 1 2 3 5 chunks +15 lines, -5 lines 0 comments Download

Messages

Total messages: 19 (4 generated)
Fady Samuel
6 years, 3 months ago (2014-09-16 23:37:45 UTC) #2
lazyboy
Sending comments, I'd defer to someone familiar with v8:: stuff in extensions for the relevant ...
6 years, 3 months ago (2014-09-17 18:24:01 UTC) #3
Fady Samuel
+rockot@: Would you be comfortable reviewing the GuestViewContainer::AttachGuest and GuestViewContainer::OnGuestAttached code? +creis@ could you please ...
6 years, 3 months ago (2014-09-17 20:25:47 UTC) #5
Ken Rockot(use gerrit already)
lgtm https://codereview.chromium.org/564973004/diff/40001/extensions/renderer/resources/web_view.js File extensions/renderer/resources/web_view.js (right): https://codereview.chromium.org/564973004/diff/40001/extensions/renderer/resources/web_view.js#newcode583 extensions/renderer/resources/web_view.js:583: this.contentWindow = w; nit: This indentation seems a ...
6 years, 3 months ago (2014-09-17 21:30:37 UTC) #6
Charlie Reis
Great, glad you're able to eliminate the NPObject. What implications are there for interacting with ...
6 years, 3 months ago (2014-09-17 21:46:43 UTC) #7
Fady Samuel
PTAL Charlie, Istiaque. https://codereview.chromium.org/564973004/diff/40001/content/public/browser/browser_plugin_guest_delegate.h File content/public/browser/browser_plugin_guest_delegate.h (right): https://codereview.chromium.org/564973004/diff/40001/content/public/browser/browser_plugin_guest_delegate.h#newcode32 content/public/browser/browser_plugin_guest_delegate.h:32: int element_instance_id) {} On 2014/09/17 21:46:43, ...
6 years, 3 months ago (2014-09-17 22:05:46 UTC) #8
Charlie Reis
Thanks. Did you see my other question? (What implications are there for interacting with the ...
6 years, 3 months ago (2014-09-17 22:13:21 UTC) #9
Fady Samuel
On 2014/09/17 22:13:21, Charlie Reis wrote: > Thanks. Did you see my other question? > ...
6 years, 3 months ago (2014-09-17 23:08:33 UTC) #10
Charlie Reis
On 2014/09/17 23:08:33, Fady Samuel wrote: > On 2014/09/17 22:13:21, Charlie Reis wrote: > > ...
6 years, 3 months ago (2014-09-17 23:38:59 UTC) #11
Fady Samuel
PTAL Istiaque +kenrb@ for *_messages.h
6 years, 3 months ago (2014-09-17 23:40:40 UTC) #13
lazyboy
lgtm
6 years, 3 months ago (2014-09-17 23:56:32 UTC) #14
kenrb
ipc lgtm
6 years, 3 months ago (2014-09-18 15:15:48 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/564973004/100001
6 years, 3 months ago (2014-09-18 15:17:47 UTC) #17
commit-bot: I haz the power
Committed patchset #6 (id:100001) as 26c714cbf3bc8d40d5806e060acae8f2a8251b5a
6 years, 3 months ago (2014-09-18 16:16:24 UTC) #18
commit-bot: I haz the power
6 years, 3 months ago (2014-09-18 16:17:10 UTC) #19
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/212c6daa34e6a5fd1a2754b08973d18d6d09246b
Cr-Commit-Position: refs/heads/master@{#295477}

Powered by Google App Engine
This is Rietveld 408576698