| Index: content/browser/browser_plugin/browser_plugin_guest.cc
|
| diff --git a/content/browser/browser_plugin/browser_plugin_guest.cc b/content/browser/browser_plugin/browser_plugin_guest.cc
|
| index 86c3144be0facce626bb6bdd73a4a607d189416c..d86409c5f6fbbf11e9001e1da33ed11db5fe2159 100644
|
| --- a/content/browser/browser_plugin/browser_plugin_guest.cc
|
| +++ b/content/browser/browser_plugin/browser_plugin_guest.cc
|
| @@ -39,11 +39,11 @@ namespace {
|
| const int kGuestHangTimeoutMs = 5000;
|
| }
|
|
|
| -BrowserPluginGuest::BrowserPluginGuest(int instance_id,
|
| - WebContentsImpl* web_contents,
|
| - RenderViewHost* render_view_host,
|
| - bool focused,
|
| - bool visible)
|
| +BrowserPluginGuest::BrowserPluginGuest(
|
| + int instance_id,
|
| + WebContentsImpl* web_contents,
|
| + RenderViewHost* render_view_host,
|
| + const BrowserPluginHostMsg_CreateGuest_Params& params)
|
| : WebContentsObserver(web_contents),
|
| embedder_web_contents_(NULL),
|
| instance_id_(instance_id),
|
| @@ -54,8 +54,8 @@ BrowserPluginGuest::BrowserPluginGuest(int instance_id,
|
| pending_update_counter_(0),
|
| guest_hang_timeout_(
|
| base::TimeDelta::FromMilliseconds(kGuestHangTimeoutMs)),
|
| - focused_(focused),
|
| - visible_(visible) {
|
| + focused_(params.focused),
|
| + visible_(params.visible) {
|
| DCHECK(web_contents);
|
| // |render_view_host| manages the ownership of this BrowserPluginGuestHelper.
|
| new BrowserPluginGuestHelper(this, render_view_host);
|
| @@ -73,18 +73,16 @@ BrowserPluginGuest* BrowserPluginGuest::Create(
|
| int instance_id,
|
| WebContentsImpl* web_contents,
|
| content::RenderViewHost* render_view_host,
|
| - bool focused,
|
| - bool visible) {
|
| + const BrowserPluginHostMsg_CreateGuest_Params& params) {
|
| RecordAction(UserMetricsAction("BrowserPlugin.Guest.Create"));
|
| if (factory_) {
|
| return factory_->CreateBrowserPluginGuest(instance_id,
|
| web_contents,
|
| render_view_host,
|
| - focused,
|
| - visible);
|
| + params);
|
| }
|
| return new BrowserPluginGuest(
|
| - instance_id, web_contents, render_view_host, focused, visible);
|
| + instance_id, web_contents, render_view_host, params);
|
| }
|
|
|
| void BrowserPluginGuest::Observe(int type,
|
|
|