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

Unified Diff: content/renderer/browser_plugin/browser_plugin_manager_impl.h

Issue 10830072: Browser Plugin: New Implementation (Renderer Side) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed leaky Persistents in BrowserPlugin Created 8 years, 5 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/renderer/browser_plugin/browser_plugin_manager_impl.h
diff --git a/content/renderer/browser_plugin/browser_plugin_manager_impl.h b/content/renderer/browser_plugin/browser_plugin_manager_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..ce18a4960d79c90aa3a916e908cf5bd647af272a
--- /dev/null
+++ b/content/renderer/browser_plugin/browser_plugin_manager_impl.h
@@ -0,0 +1,46 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_IMPL_H_
+#define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_IMPL_H_
+
+#include "content/renderer/browser_plugin/browser_plugin_manager.h"
+#include "googleurl/src/gurl.h"
+
+struct BrowserPluginMsg_UpdateRect_Params;
+
+namespace content {
+namespace browser_plugin {
+
+class BrowserPluginManagerImpl : public BrowserPluginManager {
+ public:
+ BrowserPluginManagerImpl();
+ virtual ~BrowserPluginManagerImpl();
+
+ // BrowserPluginManager implementation.
+ virtual BrowserPlugin* CreateBrowserPlugin(
+ RenderViewImpl* render_view,
+ WebKit::WebFrame* frame,
+ const WebKit::WebPluginParams& params) OVERRIDE;
+
+ // IPC::Sender implementation.
+ virtual bool Send(IPC::Message* msg) OVERRIDE;
+
+ // RenderProcessObserver override. Call on render thread.
Charlie Reis 2012/08/01 23:20:51 As above, we should enforce this.
+ virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE;
+ private:
+ void OnUpdateRect(int instance_id,
+ int message_id,
+ const BrowserPluginMsg_UpdateRect_Params& params);
+ void OnGuestCrashed(int instance_id);
+ void OnUpdateURL(int instance_id, const GURL& url);
+ void OnAdvanceFocus(int instance_id, bool reverse);
+
+ DISALLOW_COPY_AND_ASSIGN(BrowserPluginManagerImpl);
+};
+
+} // namespace browser_plugin
+} // namespace content
+
+#endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698