| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_IMPL_H_ |
| 6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_IMPL_H_ | 6 #define CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_IMPL_H_ |
| 7 | 7 |
| 8 #include "content/renderer/browser_plugin/browser_plugin_manager.h" | 8 #include "content/renderer/browser_plugin/browser_plugin_manager.h" |
| 9 #include "googleurl/src/gurl.h" | 9 #include "googleurl/src/gurl.h" |
| 10 | 10 |
| 11 struct BrowserPlugin_SwapInfo; |
| 11 struct BrowserPluginMsg_UpdateRect_Params; | 12 struct BrowserPluginMsg_UpdateRect_Params; |
| 12 | 13 |
| 14 namespace gfx { |
| 15 class Size; |
| 16 } |
| 17 |
| 13 namespace content { | 18 namespace content { |
| 14 | 19 |
| 15 class BrowserPluginManagerImpl : public BrowserPluginManager { | 20 class BrowserPluginManagerImpl : public BrowserPluginManager { |
| 16 public: | 21 public: |
| 17 BrowserPluginManagerImpl(); | 22 BrowserPluginManagerImpl(); |
| 18 virtual ~BrowserPluginManagerImpl(); | 23 virtual ~BrowserPluginManagerImpl(); |
| 19 | 24 |
| 25 |
| 20 // BrowserPluginManager implementation. | 26 // BrowserPluginManager implementation. |
| 21 virtual BrowserPlugin* CreateBrowserPlugin( | 27 virtual BrowserPlugin* CreateBrowserPlugin( |
| 22 RenderViewImpl* render_view, | 28 RenderViewImpl* render_view, |
| 23 WebKit::WebFrame* frame, | 29 WebKit::WebFrame* frame, |
| 24 const WebKit::WebPluginParams& params) OVERRIDE; | 30 const WebKit::WebPluginParams& params) OVERRIDE; |
| 31 virtual void SignalTextureProviderIsReady(int instance_id) OVERRIDE; |
| 25 | 32 |
| 26 // IPC::Sender implementation. | 33 // IPC::Sender implementation. |
| 27 virtual bool Send(IPC::Message* msg) OVERRIDE; | 34 virtual bool Send(IPC::Message* msg) OVERRIDE; |
| 28 | 35 |
| 29 // RenderProcessObserver override. Call on render thread. | 36 // RenderProcessObserver override. Call on render thread. |
| 30 virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE; | 37 virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE; |
| 31 private: | 38 private: |
| 32 void OnUpdateRect(int instance_id, | 39 void OnUpdateRect(int instance_id, |
| 33 int message_id, | 40 int message_id, |
| 34 const BrowserPluginMsg_UpdateRect_Params& params); | 41 const BrowserPluginMsg_UpdateRect_Params& params); |
| 35 void OnGuestCrashed(int instance_id); | 42 void OnGuestCrashed(int instance_id); |
| 36 void OnDidNavigate(int instance_id, const GURL& url); | 43 void OnDidNavigate(int instance_id, const GURL& url); |
| 37 void OnAdvanceFocus(int instance_id, bool reverse); | 44 void OnAdvanceFocus(int instance_id, bool reverse); |
| 45 void OnBuffersSwapped(int instance_id, |
| 46 uint64 surface_handle, |
| 47 const BrowserPlugin_SwapInfo& info); |
| 48 void OnSurfaceResize(int instance_id, const gfx::Size& size); |
| 38 | 49 |
| 39 DISALLOW_COPY_AND_ASSIGN(BrowserPluginManagerImpl); | 50 DISALLOW_COPY_AND_ASSIGN(BrowserPluginManagerImpl); |
| 40 }; | 51 }; |
| 41 | 52 |
| 42 } // namespace content | 53 } // namespace content |
| 43 | 54 |
| 44 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_IMPL_H_ | 55 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_IMPL_H_ |
| OLD | NEW |