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" | |
10 #include "ui/gfx/size.h" | 9 #include "ui/gfx/size.h" |
11 | 10 |
12 struct BrowserPluginMsg_UpdateRect_Params; | 11 struct BrowserPluginMsg_UpdateRect_Params; |
13 class WebCursor; | 12 class WebCursor; |
14 | 13 |
15 namespace gfx { | 14 namespace gfx { |
16 class Point; | 15 class Point; |
17 } | 16 } |
18 | 17 |
19 namespace content { | 18 namespace content { |
20 | 19 |
21 class BrowserPluginManagerImpl : public BrowserPluginManager { | 20 class BrowserPluginManagerImpl : public BrowserPluginManager { |
22 public: | 21 public: |
23 BrowserPluginManagerImpl(RenderViewImpl* render_view); | 22 explicit BrowserPluginManagerImpl(RenderViewImpl* render_view); |
24 | 23 |
25 // BrowserPluginManager implementation. | 24 // BrowserPluginManager implementation. |
26 virtual BrowserPlugin* CreateBrowserPlugin( | 25 virtual BrowserPlugin* CreateBrowserPlugin( |
27 RenderViewImpl* render_view, | 26 RenderViewImpl* render_view, |
28 WebKit::WebFrame* frame, | 27 WebKit::WebFrame* frame, |
29 const WebKit::WebPluginParams& params) OVERRIDE; | 28 const WebKit::WebPluginParams& params) OVERRIDE; |
30 virtual void AllocateInstanceID(BrowserPlugin* browser_plugin) OVERRIDE; | 29 virtual void AllocateInstanceID(BrowserPlugin* browser_plugin) OVERRIDE; |
31 | 30 |
32 // IPC::Sender implementation. | 31 // IPC::Sender implementation. |
33 virtual bool Send(IPC::Message* msg) OVERRIDE; | 32 virtual bool Send(IPC::Message* msg) OVERRIDE; |
(...skipping 19 matching lines...) Expand all Loading... |
53 int gpu_host_id); | 52 int gpu_host_id); |
54 | 53 |
55 int browser_plugin_instance_id_counter_; | 54 int browser_plugin_instance_id_counter_; |
56 IDMap<BrowserPlugin> pending_allocate_guest_instance_id_requests_; | 55 IDMap<BrowserPlugin> pending_allocate_guest_instance_id_requests_; |
57 | 56 |
58 DISALLOW_COPY_AND_ASSIGN(BrowserPluginManagerImpl); | 57 DISALLOW_COPY_AND_ASSIGN(BrowserPluginManagerImpl); |
59 }; | 58 }; |
60 | 59 |
61 } // namespace content | 60 } // namespace content |
62 | 61 |
63 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_IMPL_H_ | 62 #endif // CONTENT_RENDERER_BROWSER_PLUGIN_BROWSER_PLUGIN_MANAGER_IMPL_H_ |
OLD | NEW |