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

Unified Diff: content/browser/browser_plugin/browser_plugin_embedder.cc

Issue 11361052: Browser Plugin: Implement autosize (Embedder-side code) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: BrowserPluginHostMsg_AutoSize_Params had an int instead of bool for enable: fixed Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/browser_plugin/browser_plugin_embedder.cc
diff --git a/content/browser/browser_plugin/browser_plugin_embedder.cc b/content/browser/browser_plugin/browser_plugin_embedder.cc
index abdde143de2e21e2cbeac70838a506ff710fb414..b47ce55a91d07ffb2a2a526222c67876f5cb55cc 100644
--- a/content/browser/browser_plugin/browser_plugin_embedder.cc
+++ b/content/browser/browser_plugin/browser_plugin_embedder.cc
@@ -78,12 +78,10 @@ void BrowserPluginEmbedder::AddGuest(int instance_id,
guest_web_contents_by_instance_id_[instance_id] = guest_web_contents;
}
-void BrowserPluginEmbedder::CreateGuest(RenderViewHost* render_view_host,
- int instance_id,
- std::string storage_partition_id,
- bool persist_storage,
- bool focused,
- bool visible) {
+void BrowserPluginEmbedder::CreateGuest(
+ RenderViewHost* render_view_host,
+ int instance_id,
+ const BrowserPluginHostMsg_CreateGuest_Params& params) {
WebContentsImpl* guest_web_contents = NULL;
BrowserPluginGuest* guest = GetGuestByInstanceID(instance_id);
CHECK(!guest);
@@ -94,8 +92,7 @@ void BrowserPluginEmbedder::CreateGuest(RenderViewHost* render_view_host,
web_contents()->GetBrowserContext(),
host,
instance_id,
- focused,
- visible);
+ params);
guest = guest_web_contents->GetBrowserPluginGuest();
guest->set_embedder_web_contents(

Powered by Google App Engine
This is Rietveld 408576698