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_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ | 5 #ifndef CONTENT_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ |
6 #define CONTENT_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ | 6 #define CONTENT_PLUGIN_WEBPLUGIN_DELEGATE_STUB_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 "content/common/npobject_stub.h" | 12 #include "content/common/npobject_stub.h" |
13 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
14 #include "ipc/ipc_listener.h" | 14 #include "ipc/ipc_listener.h" |
15 #include "ipc/ipc_sender.h" | 15 #include "ipc/ipc_sender.h" |
16 #include "third_party/npapi/bindings/npapi.h" | 16 #include "third_party/npapi/bindings/npapi.h" |
17 #include "ui/gfx/native_widget_types.h" | 17 #include "ui/gfx/native_widget_types.h" |
18 #include "ui/gfx/rect.h" | 18 #include "ui/gfx/rect.h" |
19 | 19 |
20 class PluginChannel; | |
21 class WebPluginProxy; | |
22 struct PluginMsg_Init_Params; | 20 struct PluginMsg_Init_Params; |
23 struct PluginMsg_DidReceiveResponseParams; | 21 struct PluginMsg_DidReceiveResponseParams; |
24 struct PluginMsg_UpdateGeometry_Param; | 22 struct PluginMsg_UpdateGeometry_Param; |
25 class WebCursor; | 23 class WebCursor; |
26 | 24 |
27 namespace WebKit { | 25 namespace WebKit { |
28 class WebInputEvent; | 26 class WebInputEvent; |
29 } | 27 } |
30 | 28 |
31 namespace webkit { | 29 namespace webkit { |
32 namespace npapi { | 30 namespace npapi { |
33 class WebPluginDelegateImpl; | 31 class WebPluginDelegateImpl; |
34 } | 32 } |
35 } | 33 } |
36 | 34 |
| 35 namespace content { |
| 36 class PluginChannel; |
| 37 class WebPluginProxy; |
| 38 |
37 // Converts the IPC messages from WebPluginDelegateProxy into calls to the | 39 // Converts the IPC messages from WebPluginDelegateProxy into calls to the |
38 // actual WebPluginDelegateImpl object. | 40 // actual WebPluginDelegateImpl object. |
39 class WebPluginDelegateStub : public IPC::Listener, | 41 class WebPluginDelegateStub : public IPC::Listener, |
40 public IPC::Sender, | 42 public IPC::Sender, |
41 public base::RefCounted<WebPluginDelegateStub> { | 43 public base::RefCounted<WebPluginDelegateStub> { |
42 public: | 44 public: |
43 WebPluginDelegateStub(const std::string& mime_type, int instance_id, | 45 WebPluginDelegateStub(const std::string& mime_type, int instance_id, |
44 PluginChannel* channel); | 46 PluginChannel* channel); |
45 | 47 |
46 // IPC::Listener implementation: | 48 // IPC::Listener implementation: |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 // If this is a GPU-accelerated plug-in, we need to be able to receive a fake | 129 // If this is a GPU-accelerated plug-in, we need to be able to receive a fake |
128 // window handle which is used for subsequent communication back to the | 130 // window handle which is used for subsequent communication back to the |
129 // browser. | 131 // browser. |
130 void OnSetFakeAcceleratedSurfaceWindowHandle(gfx::PluginWindowHandle window); | 132 void OnSetFakeAcceleratedSurfaceWindowHandle(gfx::PluginWindowHandle window); |
131 #endif | 133 #endif |
132 #endif | 134 #endif |
133 | 135 |
134 DISALLOW_IMPLICIT_CONSTRUCTORS(WebPluginDelegateStub); | 136 DISALLOW_IMPLICIT_CONSTRUCTORS(WebPluginDelegateStub); |
135 }; | 137 }; |
136 | 138 |
| 139 } // namespace content |
| 140 |
137 #endif // CONTENT_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ | 141 #endif // CONTENT_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ |
OLD | NEW |