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

Unified Diff: content/browser/guest_render_view_host_observer.h

Issue 9609008: Implemented Browser Plugin (NOT FOR REVIEW) (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Merged with Tip-of-Tree Created 8 years, 9 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/guest_render_view_host_observer.h
diff --git a/content/browser/guest_render_view_host_observer.h b/content/browser/guest_render_view_host_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..0b81adc5778134d947b218ca1c4c13681305994a
--- /dev/null
+++ b/content/browser/guest_render_view_host_observer.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_GUEST_RENDER_VIEW_HOST_OBSERVER_H_
+#define CONTENT_BROWSER_GUEST_RENDER_VIEW_HOST_OBSERVER_H_
+#pragma once
+
+#include "content/browser/renderer_host/browser_plugin_message_filter.h"
+#include "content/public/browser/render_view_host.h"
+#include "content/public/browser/render_view_host_observer.h"
+
+class CONTENT_EXPORT GuestRenderViewHostObserver :
+ public content::RenderViewHostObserver {
+ public:
+ virtual ~GuestRenderViewHostObserver();
+
+ static GuestRenderViewHostObserver* Create(
+ BrowserPluginMessageFilter* filter,
+ content::RenderViewHost* render_view_host,
+ int routing_id,
+ int instance_id);
+
+ private:
+ GuestRenderViewHostObserver(BrowserPluginMessageFilter* filter,
+ content::RenderViewHost* render_view_host,
+ int host_routing_id,
+ int instance_id);
+
+ void RequestPluginChannel();
+
+ virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
+
+ void OnMsgRenderViewReady();
+
+ void OnMsgResizeGuest(int width, int height);
+
+ // IPC message handlers.
+ void OnRendererPluginChannelCreated(const IPC::ChannelHandle& handle);
+
+ BrowserPluginMessageFilter* filter_;
+
+ int host_routing_id_;
+
+ int instance_id_;
+
+ DISALLOW_COPY_AND_ASSIGN(GuestRenderViewHostObserver);
+};
+
+#endif // CONTENT_BROWSER_GUEST_RENDER_VIEW_HOST_OBSERVER_H_
+
« no previous file with comments | « chrome/browser/renderer_host/plugin_info_message_filter.cc ('k') | content/browser/guest_render_view_host_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698