OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ | 5 #ifndef CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ |
6 #define CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ | 6 #define CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "app/gfx/native_widget_types.h" | 11 #include "app/gfx/native_widget_types.h" |
12 #include "base/file_path.h" | 12 #include "base/file_path.h" |
13 #include "base/gfx/rect.h" | 13 #include "base/gfx/rect.h" |
14 #include "base/ref_counted.h" | 14 #include "base/ref_counted.h" |
15 #include "base/weak_ptr.h" | 15 #include "base/weak_ptr.h" |
16 #include "chrome/common/transport_dib.h" | 16 #include "chrome/common/transport_dib.h" |
17 #include "chrome/renderer/plugin_channel_host.h" | 17 #include "chrome/renderer/plugin_channel_host.h" |
18 #include "googleurl/src/gurl.h" | 18 #include "googleurl/src/gurl.h" |
| 19 #include "gpu/command_buffer/common/command_buffer.h" |
19 #include "ipc/ipc_message.h" | 20 #include "ipc/ipc_message.h" |
20 #include "skia/ext/platform_canvas.h" | 21 #include "skia/ext/platform_canvas.h" |
21 #include "webkit/glue/webplugin.h" | 22 #include "webkit/glue/webplugin.h" |
22 #include "webkit/glue/webplugininfo.h" | 23 #include "webkit/glue/webplugininfo.h" |
23 #include "webkit/glue/webplugin_delegate.h" | 24 #include "webkit/glue/webplugin_delegate.h" |
24 | 25 |
25 #if defined(OS_MACOSX) | 26 #if defined(OS_MACOSX) |
26 #include "base/hash_tables.h" | 27 #include "base/hash_tables.h" |
27 #include "base/linked_ptr.h" | 28 #include "base/linked_ptr.h" |
28 #endif | 29 #endif |
29 | 30 |
| 31 class CommandBufferProxy; |
30 struct NPObject; | 32 struct NPObject; |
31 class NPObjectStub; | 33 class NPObjectStub; |
32 struct NPVariant_Param; | 34 struct NPVariant_Param; |
33 struct PluginHostMsg_URLRequest_Params; | 35 struct PluginHostMsg_URLRequest_Params; |
34 class RenderView; | 36 class RenderView; |
35 class SkBitmap; | 37 class SkBitmap; |
36 | 38 |
37 namespace base { | 39 namespace base { |
38 class SharedMemory; | 40 class SharedMemory; |
39 class WaitableEvent; | 41 class WaitableEvent; |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 virtual void DidFinishManualLoading(); | 92 virtual void DidFinishManualLoading(); |
91 virtual void DidManualLoadFail(); | 93 virtual void DidManualLoadFail(); |
92 virtual void InstallMissingPlugin(); | 94 virtual void InstallMissingPlugin(); |
93 virtual webkit_glue::WebPluginResourceClient* CreateResourceClient( | 95 virtual webkit_glue::WebPluginResourceClient* CreateResourceClient( |
94 unsigned long resource_id, | 96 unsigned long resource_id, |
95 const GURL& url, | 97 const GURL& url, |
96 bool notify_needed, | 98 bool notify_needed, |
97 intptr_t notify_data, | 99 intptr_t notify_data, |
98 intptr_t existing_stream); | 100 intptr_t existing_stream); |
99 | 101 |
| 102 CommandBufferProxy* CreateCommandBuffer(); |
| 103 |
100 protected: | 104 protected: |
101 template<class WebPluginDelegateProxy> friend class DeleteTask; | 105 template<class WebPluginDelegateProxy> friend class DeleteTask; |
102 ~WebPluginDelegateProxy(); | 106 ~WebPluginDelegateProxy(); |
103 | 107 |
104 private: | 108 private: |
105 // Message handlers for messages that proxy WebPlugin methods, which | 109 // Message handlers for messages that proxy WebPlugin methods, which |
106 // we translate into calls to the real WebPlugin. | 110 // we translate into calls to the real WebPlugin. |
107 void OnSetWindow(gfx::PluginWindowHandle window); | 111 void OnSetWindow(gfx::PluginWindowHandle window); |
108 #if defined(OS_WIN) | 112 #if defined(OS_WIN) |
109 void OnSetWindowlessPumpEvent(HANDLE modal_loop_pump_messages_event); | 113 void OnSetWindowlessPumpEvent(HANDLE modal_loop_pump_messages_event); |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 // This lets us know which portion of the backing store has been painted into. | 226 // This lets us know which portion of the backing store has been painted into. |
223 gfx::Rect backing_store_painted_; | 227 gfx::Rect backing_store_painted_; |
224 | 228 |
225 // The url of the main frame hosting the plugin. | 229 // The url of the main frame hosting the plugin. |
226 GURL page_url_; | 230 GURL page_url_; |
227 | 231 |
228 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateProxy); | 232 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateProxy); |
229 }; | 233 }; |
230 | 234 |
231 #endif // CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ | 235 #endif // CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ |
OLD | NEW |