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_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 #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 "content/common/npobject_stub.h" |
13 #include "googleurl/src/gurl.h" | 14 #include "googleurl/src/gurl.h" |
14 #include "ipc/ipc_channel.h" | 15 #include "ipc/ipc_channel.h" |
15 #include "third_party/npapi/bindings/npapi.h" | 16 #include "third_party/npapi/bindings/npapi.h" |
16 #include "ui/gfx/native_widget_types.h" | 17 #include "ui/gfx/native_widget_types.h" |
17 #include "ui/gfx/rect.h" | 18 #include "ui/gfx/rect.h" |
18 | 19 |
19 class PluginChannel; | 20 class PluginChannel; |
20 class WebPluginProxy; | 21 class WebPluginProxy; |
21 struct PluginMsg_Init_Params; | 22 struct PluginMsg_Init_Params; |
22 struct PluginMsg_DidReceiveResponseParams; | 23 struct PluginMsg_DidReceiveResponseParams; |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 void OnHandleURLRequestReply(unsigned long resource_id, | 107 void OnHandleURLRequestReply(unsigned long resource_id, |
107 const GURL& url, | 108 const GURL& url, |
108 int notify_id); | 109 int notify_id); |
109 void OnHTTPRangeRequestReply(unsigned long resource_id, int range_request_id); | 110 void OnHTTPRangeRequestReply(unsigned long resource_id, int range_request_id); |
110 | 111 |
111 std::string mime_type_; | 112 std::string mime_type_; |
112 int instance_id_; | 113 int instance_id_; |
113 | 114 |
114 scoped_refptr<PluginChannel> channel_; | 115 scoped_refptr<PluginChannel> channel_; |
115 | 116 |
| 117 base::WeakPtr<NPObjectStub> plugin_scriptable_object_; |
116 webkit::npapi::WebPluginDelegateImpl* delegate_; | 118 webkit::npapi::WebPluginDelegateImpl* delegate_; |
117 WebPluginProxy* webplugin_; | 119 WebPluginProxy* webplugin_; |
118 bool in_destructor_; | 120 bool in_destructor_; |
119 | 121 |
120 // The url of the main frame hosting the plugin. | 122 // The url of the main frame hosting the plugin. |
121 GURL page_url_; | 123 GURL page_url_; |
122 | 124 |
123 #if defined(ENABLE_GPU) | 125 #if defined(ENABLE_GPU) |
124 #if defined(OS_MACOSX) | 126 #if defined(OS_MACOSX) |
125 // If this is a GPU-accelerated plug-in, we need to be able to receive a fake | 127 // If this is a GPU-accelerated plug-in, we need to be able to receive a fake |
126 // window handle which is used for subsequent communication back to the | 128 // window handle which is used for subsequent communication back to the |
127 // browser. | 129 // browser. |
128 void OnSetFakeAcceleratedSurfaceWindowHandle(gfx::PluginWindowHandle window); | 130 void OnSetFakeAcceleratedSurfaceWindowHandle(gfx::PluginWindowHandle window); |
129 #endif | 131 #endif |
130 #endif | 132 #endif |
131 | 133 |
132 DISALLOW_IMPLICIT_CONSTRUCTORS(WebPluginDelegateStub); | 134 DISALLOW_IMPLICIT_CONSTRUCTORS(WebPluginDelegateStub); |
133 }; | 135 }; |
134 | 136 |
135 #endif // CONTENT_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ | 137 #endif // CONTENT_PLUGIN_WEBPLUGIN_DELEGATE_STUB_H_ |
OLD | NEW |