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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_BROWSER_GUEST_RENDER_VIEW_HOST_OBSERVER_H_
6 #define CONTENT_BROWSER_GUEST_RENDER_VIEW_HOST_OBSERVER_H_
7 #pragma once
8
9 #include "content/browser/renderer_host/browser_plugin_message_filter.h"
10 #include "content/public/browser/render_view_host.h"
11 #include "content/public/browser/render_view_host_observer.h"
12
13 class CONTENT_EXPORT GuestRenderViewHostObserver :
14 public content::RenderViewHostObserver {
15 public:
16 virtual ~GuestRenderViewHostObserver();
17
18 static GuestRenderViewHostObserver* Create(
19 BrowserPluginMessageFilter* filter,
20 content::RenderViewHost* render_view_host,
21 int routing_id,
22 int instance_id);
23
24 private:
25 GuestRenderViewHostObserver(BrowserPluginMessageFilter* filter,
26 content::RenderViewHost* render_view_host,
27 int host_routing_id,
28 int instance_id);
29
30 void RequestPluginChannel();
31
32 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
33
34 void OnMsgRenderViewReady();
35
36 void OnMsgResizeGuest(int width, int height);
37
38 // IPC message handlers.
39 void OnRendererPluginChannelCreated(const IPC::ChannelHandle& handle);
40
41 BrowserPluginMessageFilter* filter_;
42
43 int host_routing_id_;
44
45 int instance_id_;
46
47 DISALLOW_COPY_AND_ASSIGN(GuestRenderViewHostObserver);
48 };
49
50 #endif // CONTENT_BROWSER_GUEST_RENDER_VIEW_HOST_OBSERVER_H_
51
OLDNEW
« 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