Index: content/renderer/browser_plugin/browser_plugin.h |
diff --git a/content/renderer/browser_plugin/browser_plugin.h b/content/renderer/browser_plugin/browser_plugin.h |
index 925ee2384b34edb3cb4f6f097f4e85f258a6bb38..34f1123eaab9efbd48c30c4d456e8efef1a119f3 100644 |
--- a/content/renderer/browser_plugin/browser_plugin.h |
+++ b/content/renderer/browser_plugin/browser_plugin.h |
@@ -40,6 +40,8 @@ class CONTENT_EXPORT BrowserPlugin : |
return browser_plugin_manager_.get(); |
} |
+ void AttachToPlugin(int instance_id); |
+ |
bool OnMessageReceived(const IPC::Message& msg); |
// Update Browser Plugin's DOM Node attribute |attribute_name| with the value |
@@ -252,6 +254,8 @@ class CONTENT_EXPORT BrowserPlugin : |
void OnUpdateRect(int instance_id, |
const BrowserPluginMsg_UpdateRect_Params& params); |
+ void MaybeAttach(); |
+ |
// This is the browser-process-allocated instance ID that uniquely identifies |
// a guest WebContents. |
int guest_instance_id_; |
@@ -287,6 +291,9 @@ class CONTENT_EXPORT BrowserPlugin : |
gfx::Size last_view_size_; |
bool mouse_locked_; |
+ bool attach_called_; |
+ bool seen_src_; |
+ int pending_instance_id_; |
// BrowserPlugin outlives RenderViewImpl in Chrome Apps and so we need to |
// store the BrowserPlugin's BrowserPluginManager in a member variable to |