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

Unified Diff: content/browser/web_contents/web_contents_impl.h

Issue 10868012: Browser Plugin: New Implementation (Browser Side) (Closed) Base URL: http://git.chromium.org/chromium/src.git@master-trial-obrowser
Patch Set: Rename class as we agreed upon, keep correct type of instances (guest/embedder, not helpers) inside… Created 8 years, 4 months 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/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..856d91c537f823b4ca08cc4cf505f3f57bc0504b 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 BrowserPluginEmbedder;
+class BrowserPluginGuest;
class ColorChooser;
class DownloadItem;
class JavaScriptDialogCreator;
@@ -152,6 +154,15 @@ class CONTENT_EXPORT WebContentsImpl
// Expose the render manager for testing.
RenderViewHostManager* GetRenderManagerForTesting();
+ // Adds guest to this WebContents embedder.
+ content::BrowserPluginGuest* AddBrowserPluginGuest(int instance_id);
+ // Returns guest browser plugin object, NULL if this WebContents is not a
+ // guest.
+ content::BrowserPluginGuest* GetBrowserPluginGuest();
+ // Returns embedder browser plugin object, NULL if this WebContents is not an
+ // embedder.
+ content::BrowserPluginEmbedder* GetBrowserPluginEmbedder();
+
// content::WebContents ------------------------------------------------------
virtual const base::PropertyBag* GetPropertyBag() const OVERRIDE;
virtual base::PropertyBag* GetPropertyBag() OVERRIDE;
@@ -519,6 +530,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 +690,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 +809,11 @@ class CONTENT_EXPORT WebContentsImpl
// Color chooser that was opened by this tab.
content::ColorChooser* color_chooser_;
+ // Browser plugin embedder for WebContents.
Charlie Reis 2012/08/27 20:23:59 These comments are redundant with the class name.
lazyboy 2012/08/28 19:07:14 Done.
+ scoped_ptr<content::BrowserPluginEmbedder> browser_plugin_embedder_;
+ // Browser plugin guest for WebContents.
+ scoped_ptr<content::BrowserPluginGuest> browser_plugin_guest_;
+
// This must be at the end, or else we might get notifications and use other
// member variables that are gone.
content::NotificationRegistrar registrar_;

Powered by Google App Engine
This is Rietveld 408576698