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 #include "ui/gfx/size.h" | 10 #include "ui/gfx/size.h" |
11 | 11 |
12 struct BrowserPluginMsg_UpdateRect_Params; | 12 struct BrowserPluginMsg_UpdateRect_Params; |
13 class WebCursor; | 13 class WebCursor; |
14 | 14 |
15 namespace gfx { | 15 namespace gfx { |
16 class Point; | 16 class Point; |
17 } | 17 } |
18 | 18 |
| 19 namespace gpu { |
| 20 struct Mailbox; |
| 21 } |
| 22 |
19 namespace content { | 23 namespace content { |
20 | 24 |
21 class BrowserPluginManagerImpl : public BrowserPluginManager { | 25 class BrowserPluginManagerImpl : public BrowserPluginManager { |
22 public: | 26 public: |
23 BrowserPluginManagerImpl(RenderViewImpl* render_view); | 27 BrowserPluginManagerImpl(RenderViewImpl* render_view); |
24 | 28 |
25 // BrowserPluginManager implementation. | 29 // BrowserPluginManager implementation. |
26 virtual BrowserPlugin* CreateBrowserPlugin( | 30 virtual BrowserPlugin* CreateBrowserPlugin( |
27 RenderViewImpl* render_view, | 31 RenderViewImpl* render_view, |
28 WebKit::WebFrame* frame, | 32 WebKit::WebFrame* frame, |
(...skipping 10 matching lines...) Expand all Loading... |
39 | 43 |
40 void OnAllocateInstanceIDACK(const IPC::Message& message, | 44 void OnAllocateInstanceIDACK(const IPC::Message& message, |
41 int request_id, | 45 int request_id, |
42 int instance_id); | 46 int instance_id); |
43 void OnPluginAtPositionRequest(const IPC::Message& message, | 47 void OnPluginAtPositionRequest(const IPC::Message& message, |
44 int request_id, | 48 int request_id, |
45 const gfx::Point& position); | 49 const gfx::Point& position); |
46 void OnUnhandledSwap(const IPC::Message& message, | 50 void OnUnhandledSwap(const IPC::Message& message, |
47 int instance_id, | 51 int instance_id, |
48 const gfx::Size& size, | 52 const gfx::Size& size, |
49 std::string mailbox_name, | 53 gpu::Mailbox mailbox_name, |
50 int gpu_route_id, | 54 int gpu_route_id, |
51 int gpu_host_id); | 55 int gpu_host_id); |
52 | 56 |
53 int request_id_counter_; | 57 int request_id_counter_; |
54 IDMap<BrowserPlugin> pending_allocate_instance_id_requests_; | 58 IDMap<BrowserPlugin> pending_allocate_instance_id_requests_; |
55 | 59 |
56 DISALLOW_COPY_AND_ASSIGN(BrowserPluginManagerImpl); | 60 DISALLOW_COPY_AND_ASSIGN(BrowserPluginManagerImpl); |
57 }; | 61 }; |
58 | 62 |
59 } // namespace content | 63 } // namespace content |
60 | 64 |
61 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_IMPL_H_ | 65 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_IMPL_H_ |
OLD | NEW |