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_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_IMPL_H_ |
| 6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_IMPL_H_ |
| 7 |
| 8 #include "content/renderer/browser_plugin/browser_plugin_manager.h" |
| 9 #include "googleurl/src/gurl.h" |
| 10 |
| 11 struct BrowserPluginMsg_UpdateRect_Params; |
| 12 |
| 13 namespace content { |
| 14 namespace browser_plugin { |
| 15 |
| 16 class BrowserPluginManagerImpl : public BrowserPluginManager { |
| 17 public: |
| 18 BrowserPluginManagerImpl(); |
| 19 virtual ~BrowserPluginManagerImpl(); |
| 20 |
| 21 // BrowserPluginManager implementation. |
| 22 virtual BrowserPlugin* CreateBrowserPlugin( |
| 23 RenderViewImpl* render_view, |
| 24 WebKit::WebFrame* frame, |
| 25 const WebKit::WebPluginParams& params) OVERRIDE; |
| 26 |
| 27 // IPC::Sender implementation. |
| 28 virtual bool Send(IPC::Message* msg) OVERRIDE; |
| 29 |
| 30 // RenderProcessObserver override. Call on render thread. |
| 31 virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE; |
| 32 private: |
| 33 void OnUpdateRect(int instance_id, |
| 34 int message_id, |
| 35 const BrowserPluginMsg_UpdateRect_Params& params); |
| 36 void OnGuestCrashed(int instance_id); |
| 37 void OnDidNavigate(int instance_id, const GURL& url); |
| 38 void OnAdvanceFocus(int instance_id, bool reverse); |
| 39 |
| 40 DISALLOW_COPY_AND_ASSIGN(BrowserPluginManagerImpl); |
| 41 }; |
| 42 |
| 43 } // namespace browser_plugin |
| 44 } // namespace content |
| 45 |
| 46 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_IMPL_H_ |
OLD | NEW |