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

Unified Diff: content/browser/browser_plugin/browser_plugin_host_helper.h

Issue 10377170: Browser Plugin: browser process side changes (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: fixed nit Created 8 years, 7 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/browser_plugin/browser_plugin_host_helper.h
diff --git a/content/browser/browser_plugin/browser_plugin_host_helper.h b/content/browser/browser_plugin/browser_plugin_host_helper.h
new file mode 100644
index 0000000000000000000000000000000000000000..f20ea2eca32fbd9541ca481b31cac461c4b60b35
--- /dev/null
+++ b/content/browser/browser_plugin/browser_plugin_host_helper.h
@@ -0,0 +1,51 @@
+// 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_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_HOST_HELPER_H__
+#define CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_HOST_HELPER_H__
+#pragma once
+
+#include <string>
+
+#include "content/public/browser/render_view_host_observer.h"
+
+namespace gfx {
+class Size;
+}
+
+namespace content {
+
+class BrowserPluginHost;
+
+// This class acts as a plumber helper for BrowserPluginHost. A lot
+// of messages coming from guests need to know the guest's RenderViewHost.
+// BrowserPluginHostHelper handles BrowserPluginHost messages and relays
+// them with their associated RenderViewHosts to BrowserPluginHost where they
+// will be handled.
+class BrowserPluginHostHelper : public RenderViewHostObserver {
+ public:
+ BrowserPluginHostHelper(BrowserPluginHost* browser_plugin_host,
+ RenderViewHost* render_view_host);
+ virtual ~BrowserPluginHostHelper();
+
+ private:
+ void OnConnectToChannel(const IPC::ChannelHandle& channel_handle);
+ void OnNavigateGuestFromEmbedder(int container_instance_id,
+ long long frame_id,
+ const std::string& src,
+ const gfx::Size& size);
+ void OnResizeGuest(int width, int height);
+
+ // RenderViewHostObserver implementation.
+ virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
+
+ BrowserPluginHost* browser_plugin_host_;
+
+ DISALLOW_COPY_AND_ASSIGN(BrowserPluginHostHelper);
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_HOST_HELPER_H__
+
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_host.cc ('k') | content/browser/browser_plugin/browser_plugin_host_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698