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

Unified Diff: content/renderer/render_view_impl.h

Issue 11416074: Browser Plugin: Simplified BrowserPluginManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup 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/renderer/render_view_impl.h
diff --git a/content/renderer/render_view_impl.h b/content/renderer/render_view_impl.h
index f15fa740b578bd7b5eb93fdc0f5854c518828c51..9b7c85134c10aaadb4aabcff6b9f421847f3dd88 100644
--- a/content/renderer/render_view_impl.h
+++ b/content/renderer/render_view_impl.h
@@ -137,6 +137,7 @@ class WebHitTestResult;
}
namespace content {
+class BrowserPluginManager;
class DeviceOrientationDispatcher;
class DevToolsAgent;
class DocumentState;
@@ -264,6 +265,9 @@ class CONTENT_EXPORT RenderViewImpl
}
#endif
+ // Lazily initialize this view's BrowserPluginManager and return it.
+ BrowserPluginManager* browser_plugin_manager();
+
// Functions to add and remove observers for this object.
void AddObserver(RenderViewObserver* observer);
void RemoveObserver(RenderViewObserver* observer);
@@ -1041,6 +1045,8 @@ class CONTENT_EXPORT RenderViewImpl
// This is used when a frame is going to be removed from the tree.
void SendUpdatedFrameTree(WebKit::WebFrame* exclude_frame_subtree);
+ bool has_browser_plugin_manager() const { return browser_plugin_manager_; }
Charlie Reis 2012/11/20 00:33:34 return !!browser_plugin_manager_;
Fady Samuel 2012/11/20 02:04:15 Deleted.
+
// Recursively creates a DOM frame tree starting with |frame|, based on
// |frame_tree|. For each node, the frame is navigated to the swapped out URL,
// the name (if present) is set on it, and all the subframes are created
@@ -1374,6 +1380,9 @@ class CONTENT_EXPORT RenderViewImpl
// MediaStream dispatcher attached to this view; lazily initialized.
MediaStreamDispatcher* media_stream_dispatcher_;
+ // BrowserPluginManager attached to this view; lazily initialized.
+ scoped_refptr<BrowserPluginManager> browser_plugin_manager_;
+
// MediaStreamImpl attached to this view; lazily initialized.
MediaStreamImpl* media_stream_impl_;

Powered by Google App Engine
This is Rietveld 408576698