| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "app/surface/transport_dib.h" | 12 #include "app/surface/transport_dib.h" |
| 13 #include "base/file_path.h" | |
| 14 #include "base/ref_counted.h" | 13 #include "base/ref_counted.h" |
| 14 #include "base/scoped_ptr.h" |
| 15 #include "base/weak_ptr.h" | 15 #include "base/weak_ptr.h" |
| 16 #include "chrome/renderer/plugin_channel_host.h" | |
| 17 #include "gfx/native_widget_types.h" | 16 #include "gfx/native_widget_types.h" |
| 18 #include "gfx/rect.h" | 17 #include "gfx/rect.h" |
| 19 #include "googleurl/src/gurl.h" | 18 #include "googleurl/src/gurl.h" |
| 20 #include "gpu/command_buffer/common/command_buffer.h" | 19 #include "ipc/ipc_channel.h" |
| 21 #include "ipc/ipc_message.h" | 20 #include "ipc/ipc_message.h" |
| 22 #include "skia/ext/platform_canvas.h" | |
| 23 #include "webkit/glue/plugins/webplugin.h" | |
| 24 #include "webkit/glue/plugins/webplugininfo.h" | 21 #include "webkit/glue/plugins/webplugininfo.h" |
| 25 #include "webkit/glue/plugins/webplugin_delegate.h" | 22 #include "webkit/glue/plugins/webplugin_delegate.h" |
| 26 | 23 |
| 27 #if defined(OS_MACOSX) | 24 #if defined(OS_MACOSX) |
| 28 #include "base/hash_tables.h" | 25 #include "base/hash_tables.h" |
| 29 #include "base/linked_ptr.h" | 26 #include "base/linked_ptr.h" |
| 30 #endif | 27 #endif |
| 31 | 28 |
| 32 class CommandBufferProxy; | 29 class CommandBufferProxy; |
| 33 struct NPObject; | 30 struct NPObject; |
| 34 class NPObjectStub; | 31 class NPObjectStub; |
| 35 struct NPVariant_Param; | 32 struct NPVariant_Param; |
| 33 class PluginChannelHost; |
| 36 struct PluginHostMsg_URLRequest_Params; | 34 struct PluginHostMsg_URLRequest_Params; |
| 37 class RenderView; | 35 class RenderView; |
| 38 class SkBitmap; | 36 class SkBitmap; |
| 39 | 37 |
| 40 namespace base { | 38 namespace base { |
| 41 class SharedMemory; | 39 class SharedMemory; |
| 42 class WaitableEvent; | 40 class WaitableEvent; |
| 43 } | 41 } |
| 44 | 42 |
| 43 namespace skia { |
| 44 class PlatformCanvas; |
| 45 } |
| 46 |
| 47 namespace webkit_glue { |
| 48 class WebPlugin; |
| 49 } |
| 50 |
| 45 // An implementation of WebPluginDelegate that proxies all calls to | 51 // An implementation of WebPluginDelegate that proxies all calls to |
| 46 // the plugin process. | 52 // the plugin process. |
| 47 class WebPluginDelegateProxy | 53 class WebPluginDelegateProxy |
| 48 : public webkit_glue::WebPluginDelegate, | 54 : public webkit_glue::WebPluginDelegate, |
| 49 public IPC::Channel::Listener, | 55 public IPC::Channel::Listener, |
| 50 public IPC::Message::Sender, | 56 public IPC::Message::Sender, |
| 51 public base::SupportsWeakPtr<WebPluginDelegateProxy> { | 57 public base::SupportsWeakPtr<WebPluginDelegateProxy> { |
| 52 public: | 58 public: |
| 53 WebPluginDelegateProxy(const std::string& mime_type, | 59 WebPluginDelegateProxy(const std::string& mime_type, |
| 54 const base::WeakPtr<RenderView>& render_view); | 60 const base::WeakPtr<RenderView>& render_view); |
| (...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 // This lets us know which portion of the backing store has been painted into. | 267 // This lets us know which portion of the backing store has been painted into. |
| 262 gfx::Rect backing_store_painted_; | 268 gfx::Rect backing_store_painted_; |
| 263 | 269 |
| 264 // The url of the main frame hosting the plugin. | 270 // The url of the main frame hosting the plugin. |
| 265 GURL page_url_; | 271 GURL page_url_; |
| 266 | 272 |
| 267 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateProxy); | 273 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateProxy); |
| 268 }; | 274 }; |
| 269 | 275 |
| 270 #endif // CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ | 276 #endif // CHROME_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ |
| OLD | NEW |