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

Issue 11748034: Browser Plugin: Refactor BrowserPluginEmbedder to allow creating guests with openers (Closed)

Created:
7 years, 11 months ago by Fady Samuel
Modified:
7 years, 11 months ago
Reviewers:
Charlie Reis, sadrul
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Browser Plugin: Refactor BrowserPluginEmbedder to allow creating guests with openers Changes: 1. Move most of logic in BrowserPluginEmbedder:OnCreateGuest to BrowserPluginEmbedder::CreateGuest. BrowserPluginEmbedder::CreateGuest takes in an opener guest and a routing ID. BrowserPluginEmbedder::OnCreateGuest calls CreateGuest with a NULL opener. 2. WebContentsImpl::CreateGuest now takes in a routing_id, and a base_web_contents. 3. WebContentsImpl::opener() is now a public accessor. 4. BrowserPluginEmbedder::GetGuestByInstanceID and BrowserPluginEmbedder::DestroyGuestByInstanceID are now public to allow a guest to take (temporary) "ownership" of another guest until it is attached to the embedder's DOM tree. BUG=140316 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175588

Patch Set 1 #

Total comments: 17

Patch Set 2 : Addressed comments and fixed nits #

Total comments: 1

Patch Set 3 : Fixed nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+150 lines, -111 lines) Patch
M content/browser/browser_plugin/browser_plugin_embedder.h View 1 2 2 chunks +17 lines, -4 lines 0 comments Download
M content/browser/browser_plugin/browser_plugin_embedder.cc View 1 4 chunks +120 lines, -105 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 1 chunk +6 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 chunks +7 lines, -2 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Fady Samuel
+sadrul Please take a look at the changes overall. +creis: for web_contents_impl changes and approval.
7 years, 11 months ago (2013-01-04 18:06:46 UTC) #1
Charlie Reis
Looks pretty good. https://codereview.chromium.org/11748034/diff/1/content/browser/browser_plugin/browser_plugin_embedder.cc File content/browser/browser_plugin/browser_plugin_embedder.cc (right): https://codereview.chromium.org/11748034/diff/1/content/browser/browser_plugin/browser_plugin_embedder.cc#newcode84 content/browser/browser_plugin/browser_plugin_embedder.cc:84: guest_site_instance = guest_opener->GetWebContents()->GetSiteInstance(); Yep, this looks ...
7 years, 11 months ago (2013-01-04 18:53:19 UTC) #2
sadrul
https://codereview.chromium.org/11748034/diff/1/content/browser/browser_plugin/browser_plugin_embedder.cc File content/browser/browser_plugin/browser_plugin_embedder.cc (right): https://codereview.chromium.org/11748034/diff/1/content/browser/browser_plugin/browser_plugin_embedder.cc#newcode117 content/browser/browser_plugin/browser_plugin_embedder.cc:117: web_contents()->GetBrowserContext(), Should you be using the browser-context of opener_web_contents ...
7 years, 11 months ago (2013-01-07 15:09:54 UTC) #3
Fady Samuel
PTAL https://codereview.chromium.org/11748034/diff/1/content/browser/browser_plugin/browser_plugin_embedder.cc File content/browser/browser_plugin/browser_plugin_embedder.cc (right): https://codereview.chromium.org/11748034/diff/1/content/browser/browser_plugin/browser_plugin_embedder.cc#newcode84 content/browser/browser_plugin/browser_plugin_embedder.cc:84: guest_site_instance = guest_opener->GetWebContents()->GetSiteInstance(); On 2013/01/04 18:53:19, creis wrote: ...
7 years, 11 months ago (2013-01-08 17:00:49 UTC) #4
Charlie Reis
LGTM. https://codereview.chromium.org/11748034/diff/1/content/browser/browser_plugin/browser_plugin_embedder.cc File content/browser/browser_plugin/browser_plugin_embedder.cc (right): https://codereview.chromium.org/11748034/diff/1/content/browser/browser_plugin/browser_plugin_embedder.cc#newcode117 content/browser/browser_plugin/browser_plugin_embedder.cc:117: web_contents()->GetBrowserContext(), On 2013/01/08 17:00:49, Fady Samuel wrote: > ...
7 years, 11 months ago (2013-01-08 21:13:52 UTC) #5
commit-bot: I haz the power
7 years, 11 months ago (2013-01-08 21:26:04 UTC) #6

Powered by Google App Engine
This is Rietveld 408576698