| Index: content/browser/web_contents/web_contents_impl.h
|
| diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h
|
| index ac27895ee08215ea29dbfea498c1771beee607b6..9887bb64858f5df26545614325cfa16eeaf3bb56 100644
|
| --- a/content/browser/web_contents/web_contents_impl.h
|
| +++ b/content/browser/web_contents/web_contents_impl.h
|
| @@ -39,6 +39,8 @@ class WebContentsImpl;
|
| struct ViewMsg_PostMessage_Params;
|
|
|
| namespace content {
|
| +class BrowserPluginHostEmbedderRole;
|
| +class BrowserPluginHostGuestRole;
|
| class ColorChooser;
|
| class DownloadItem;
|
| class JavaScriptDialogCreator;
|
| @@ -152,6 +154,16 @@ class CONTENT_EXPORT WebContentsImpl
|
| // Expose the render manager for testing.
|
| RenderViewHostManager* GetRenderManagerForTesting();
|
|
|
| + // Adds browser plugin 'guest' role to this class.
|
| + content::BrowserPluginHostGuestRole* AddGuestRole(
|
| + int instance_id,
|
| + content::RenderProcessHost* render_process_host);
|
| + // Exposes guest/embedder role so browser plugin delegates are accessible from
|
| + // a WebContents instance. Having such (non-NULL) delegate indicates that the
|
| + // WebContents has assumed the corresponding (guest or embedder) role.
|
| + content::BrowserPluginHostGuestRole* GetGuestRole();
|
| + content::BrowserPluginHostEmbedderRole* GetEmbedderRole();
|
| +
|
| // content::WebContents ------------------------------------------------------
|
| virtual const base::PropertyBag* GetPropertyBag() const OVERRIDE;
|
| virtual base::PropertyBag* GetPropertyBag() OVERRIDE;
|
| @@ -519,6 +531,10 @@ class CONTENT_EXPORT WebContentsImpl
|
| void OnWebUISend(const GURL& source_url,
|
| const std::string& name,
|
| const base::ListValue& args);
|
| + void OnBrowserPluginNavigateGuest(int instance_id,
|
| + int64 frame_id,
|
| + std::string src,
|
| + gfx::Size size);
|
|
|
| // Changes the IsLoading state and notifies delegate as needed
|
| // |details| is used to provide details on the load that just finished
|
| @@ -675,7 +691,7 @@ class CONTENT_EXPORT WebContentsImpl
|
| java_bridge_dispatcher_host_manager_;
|
|
|
| // TODO(fsamuel): Remove this once upstreaming of the new browser plugin
|
| - // implmentation is complete.
|
| + // implementation is complete.
|
| // Manages the browser plugin instances hosted by this WebContents.
|
| scoped_ptr<content::old::BrowserPluginHost> old_browser_plugin_host_;
|
|
|
| @@ -794,6 +810,10 @@ class CONTENT_EXPORT WebContentsImpl
|
| // Color chooser that was opened by this tab.
|
| content::ColorChooser* color_chooser_;
|
|
|
| + // Roles for WebContents to act as guest and/or embedder.
|
| + scoped_ptr<content::BrowserPluginHostEmbedderRole> embedder_role_;
|
| + scoped_ptr<content::BrowserPluginHostGuestRole> guest_role_;
|
| +
|
| // This must be at the end, or else we might get notifications and use other
|
| // member variables that are gone.
|
| content::NotificationRegistrar registrar_;
|
|
|