OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_WEBPLUGIN_DELEGATE_PROXY_H_ | 5 #ifndef CONTENT_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ |
6 #define CONTENT_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ | 6 #define CONTENT_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
| 15 #include "base/message_loop_helpers.h" |
15 #include "googleurl/src/gurl.h" | 16 #include "googleurl/src/gurl.h" |
16 #include "ipc/ipc_channel.h" | 17 #include "ipc/ipc_channel.h" |
17 #include "ipc/ipc_message.h" | 18 #include "ipc/ipc_message.h" |
18 #include "ui/gfx/native_widget_types.h" | 19 #include "ui/gfx/native_widget_types.h" |
19 #include "ui/gfx/rect.h" | 20 #include "ui/gfx/rect.h" |
20 #include "ui/gfx/surface/transport_dib.h" | 21 #include "ui/gfx/surface/transport_dib.h" |
21 #include "webkit/plugins/npapi/webplugin_delegate.h" | 22 #include "webkit/plugins/npapi/webplugin_delegate.h" |
22 #include "webkit/plugins/webplugininfo.h" | 23 #include "webkit/plugins/webplugininfo.h" |
23 | 24 |
24 #if defined(OS_MACOSX) | 25 #if defined(OS_MACOSX) |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 virtual void DidFinishManualLoading() OVERRIDE; | 126 virtual void DidFinishManualLoading() OVERRIDE; |
126 virtual void DidManualLoadFail() OVERRIDE; | 127 virtual void DidManualLoadFail() OVERRIDE; |
127 virtual webkit::npapi::WebPluginResourceClient* CreateResourceClient( | 128 virtual webkit::npapi::WebPluginResourceClient* CreateResourceClient( |
128 unsigned long resource_id, const GURL& url, int notify_id) OVERRIDE; | 129 unsigned long resource_id, const GURL& url, int notify_id) OVERRIDE; |
129 virtual webkit::npapi::WebPluginResourceClient* CreateSeekableResourceClient( | 130 virtual webkit::npapi::WebPluginResourceClient* CreateSeekableResourceClient( |
130 unsigned long resource_id, int range_request_id) OVERRIDE; | 131 unsigned long resource_id, int range_request_id) OVERRIDE; |
131 | 132 |
132 gfx::PluginWindowHandle GetPluginWindowHandle(); | 133 gfx::PluginWindowHandle GetPluginWindowHandle(); |
133 | 134 |
134 protected: | 135 protected: |
135 template<class WebPluginDelegateProxy> friend class DeleteTask; | 136 friend class base::DeleteHelper<WebPluginDelegateProxy>; |
136 virtual ~WebPluginDelegateProxy(); | 137 virtual ~WebPluginDelegateProxy(); |
137 | 138 |
138 private: | 139 private: |
139 struct SharedBitmap { | 140 struct SharedBitmap { |
140 SharedBitmap(); | 141 SharedBitmap(); |
141 ~SharedBitmap(); | 142 ~SharedBitmap(); |
142 | 143 |
143 scoped_ptr<TransportDIB> dib; | 144 scoped_ptr<TransportDIB> dib; |
144 scoped_ptr<skia::PlatformCanvas> canvas; | 145 scoped_ptr<skia::PlatformCanvas> canvas; |
145 }; | 146 }; |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 // back-buffer. | 322 // back-buffer. |
322 gfx::Rect front_buffer_diff_; | 323 gfx::Rect front_buffer_diff_; |
323 | 324 |
324 // The url of the main frame hosting the plugin. | 325 // The url of the main frame hosting the plugin. |
325 GURL page_url_; | 326 GURL page_url_; |
326 | 327 |
327 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateProxy); | 328 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateProxy); |
328 }; | 329 }; |
329 | 330 |
330 #endif // CONTENT_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ | 331 #endif // CONTENT_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ |
OLD | NEW |