| 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_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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 #include "webkit/plugins/npapi/webplugin_delegate.h" | 21 #include "webkit/plugins/npapi/webplugin_delegate.h" |
| 22 #include "webkit/plugins/webplugininfo.h" | 22 #include "webkit/plugins/webplugininfo.h" |
| 23 | 23 |
| 24 #if defined(OS_MACOSX) | 24 #if defined(OS_MACOSX) |
| 25 #include "base/hash_tables.h" | 25 #include "base/hash_tables.h" |
| 26 #include "base/memory/linked_ptr.h" | 26 #include "base/memory/linked_ptr.h" |
| 27 #endif | 27 #endif |
| 28 | 28 |
| 29 struct NPObject; | 29 struct NPObject; |
| 30 class NPObjectStub; | 30 class NPObjectStub; |
| 31 class PluginChannelHost; | |
| 32 struct PluginHostMsg_URLRequest_Params; | 31 struct PluginHostMsg_URLRequest_Params; |
| 33 class SkBitmap; | 32 class SkBitmap; |
| 34 | 33 |
| 35 namespace base { | 34 namespace base { |
| 36 class WaitableEvent; | 35 class WaitableEvent; |
| 37 } | 36 } |
| 38 | 37 |
| 39 namespace skia { | 38 namespace skia { |
| 40 class PlatformCanvas; | 39 class PlatformCanvas; |
| 41 } | 40 } |
| 42 | 41 |
| 43 namespace webkit { | 42 namespace webkit { |
| 44 namespace npapi { | 43 namespace npapi { |
| 45 class WebPlugin; | 44 class WebPlugin; |
| 46 } | 45 } |
| 47 } | 46 } |
| 48 | 47 |
| 49 namespace content { | 48 namespace content { |
| 49 class PluginChannelHost; |
| 50 class RenderViewImpl; | 50 class RenderViewImpl; |
| 51 | 51 |
| 52 // An implementation of WebPluginDelegate that proxies all calls to | 52 // An implementation of WebPluginDelegate that proxies all calls to |
| 53 // the plugin process. | 53 // the plugin process. |
| 54 class WebPluginDelegateProxy | 54 class WebPluginDelegateProxy |
| 55 : public webkit::npapi::WebPluginDelegate, | 55 : public webkit::npapi::WebPluginDelegate, |
| 56 public IPC::Listener, | 56 public IPC::Listener, |
| 57 public IPC::Sender, | 57 public IPC::Sender, |
| 58 public base::SupportsWeakPtr<WebPluginDelegateProxy> { | 58 public base::SupportsWeakPtr<WebPluginDelegateProxy> { |
| 59 public: | 59 public: |
| (...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 325 | 325 |
| 326 // The url of the main frame hosting the plugin. | 326 // The url of the main frame hosting the plugin. |
| 327 GURL page_url_; | 327 GURL page_url_; |
| 328 | 328 |
| 329 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateProxy); | 329 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateProxy); |
| 330 }; | 330 }; |
| 331 | 331 |
| 332 } // namespace content | 332 } // namespace content |
| 333 | 333 |
| 334 #endif // CONTENT_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ | 334 #endif // CONTENT_RENDERER_WEBPLUGIN_DELEGATE_PROXY_H_ |
| OLD | NEW |