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

Side by Side Diff: content/browser/browser_plugin/guest_render_view_host_observer.h

Issue 9924026: Browser side implementation of browser plugin (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Updated RenderProcessHostImpl Created 8 years, 8 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_BROWSER_PLUGIN_GUEST_RENDER_VIEW_HOST_OBSERVER_H_
6 #define CONTENT_BROWSER_BROWSER_PLUGIN_GUEST_RENDER_VIEW_HOST_OBSERVER_H_
7 #pragma once
8
9 #include "content/browser/browser_plugin/renderer_host/browser_plugin_message_fi lter.h"
10 #include "content/public/browser/render_view_host.h"
11 #include "content/public/browser/render_view_host_observer.h"
12
13 class GuestRenderViewHostObserver : public content::RenderViewHostObserver {
14 public:
15 virtual ~GuestRenderViewHostObserver();
16
17 static GuestRenderViewHostObserver* Create(
18 BrowserPluginMessageFilter* filter,
19 content::RenderViewHost* render_view_host,
20 int routing_id,
21 int instance_id);
22
23 private:
24 GuestRenderViewHostObserver(BrowserPluginMessageFilter* filter,
25 content::RenderViewHost* render_view_host,
26 int host_routing_id,
27 int instance_id);
28
29 void RequestPluginChannel();
30
31 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE;
32
33 void OnMsgRenderViewReady();
34
35 void OnMsgResizeGuest(int width, int height);
36
37 // IPC message handlers.
38 void OnRendererPluginChannelCreated(const IPC::ChannelHandle& handle);
39
40 BrowserPluginMessageFilter* filter_;
41
42 int host_routing_id_;
43
44 int instance_id_;
45
46 DISALLOW_COPY_AND_ASSIGN(GuestRenderViewHostObserver);
47 };
48
49 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_GUEST_RENDER_VIEW_HOST_OBSERVER_H_
50
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698