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 |
11 #include "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
12 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
13 #include "base/memory/weak_ptr.h" | 13 #include "base/memory/weak_ptr.h" |
14 #include "base/sequenced_task_runner_helpers.h" | 14 #include "base/sequenced_task_runner_helpers.h" |
15 #include "googleurl/src/gurl.h" | 15 #include "googleurl/src/gurl.h" |
16 #include "ipc/ipc_channel.h" | 16 #include "ipc/ipc_channel.h" |
17 #include "ipc/ipc_message.h" | 17 #include "ipc/ipc_message.h" |
18 #include "ui/gfx/native_widget_types.h" | 18 #include "ui/gfx/native_widget_types.h" |
19 #include "ui/gfx/rect.h" | 19 #include "ui/gfx/rect.h" |
20 #include "ui/surface/transport_dib.h" | 20 #include "ui/surface/transport_dib.h" |
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; | |
31 struct PluginHostMsg_URLRequest_Params; | 30 struct PluginHostMsg_URLRequest_Params; |
32 class SkBitmap; | 31 class SkBitmap; |
33 | 32 |
34 namespace base { | 33 namespace base { |
35 class WaitableEvent; | 34 class WaitableEvent; |
36 } | 35 } |
37 | 36 |
38 namespace skia { | 37 namespace skia { |
39 class PlatformCanvas; | 38 class PlatformCanvas; |
40 } | 39 } |
41 | 40 |
42 namespace webkit { | 41 namespace webkit { |
43 namespace npapi { | 42 namespace npapi { |
44 class WebPlugin; | 43 class WebPlugin; |
45 } | 44 } |
46 } | 45 } |
47 | 46 |
48 namespace content { | 47 namespace content { |
| 48 class NPObjectStub; |
49 class PluginChannelHost; | 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> { |
(...skipping 266 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 |