OLD | NEW |
(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 |
OLD | NEW |