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