OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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 WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_H_ | 5 #ifndef WEBKIT_GLUE_WEBPLUGIN_H_ |
6 #define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_H_ | 6 #define WEBKIT_GLUE_WEBPLUGIN_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "gfx/native_widget_types.h" | 12 #include "gfx/native_widget_types.h" |
13 #include "gfx/rect.h" | 13 #include "gfx/rect.h" |
14 | 14 |
15 // TODO(port): this typedef is obviously incorrect on non-Windows | 15 // TODO(port): this typedef is obviously incorrect on non-Windows |
16 // platforms, but now a lot of code now accidentally depends on them | 16 // platforms, but now a lot of code now accidentally depends on them |
17 // existing. #ifdef out these declarations and fix all the users. | 17 // existing. #ifdef out these declarations and fix all the users. |
18 typedef void* HANDLE; | 18 typedef void* HANDLE; |
19 | 19 |
20 class GURL; | 20 class GURL; |
21 struct NPObject; | 21 struct NPObject; |
22 | 22 |
23 namespace WebKit { | 23 namespace WebKit { |
24 class WebFrame; | 24 class WebFrame; |
25 } | 25 } |
26 | 26 |
27 namespace webkit { | 27 namespace webkit_glue { |
28 namespace npapi { | |
29 | 28 |
30 class WebPluginDelegate; | 29 class WebPluginDelegate; |
31 class WebPluginParentView; | 30 class WebPluginParentView; |
32 class WebPluginResourceClient; | 31 class WebPluginResourceClient; |
33 #if defined(OS_MACOSX) | 32 #if defined(OS_MACOSX) |
34 class WebPluginAcceleratedSurface; | 33 class WebPluginAcceleratedSurface; |
35 #endif | 34 #endif |
36 | 35 |
37 // Describes the new location for a plugin window. | 36 // Describes the new location for a plugin window. |
38 struct WebPluginGeometry { | 37 struct WebPluginGeometry { |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 uint32 last_modified, | 188 uint32 last_modified, |
190 bool request_is_seekable) = 0; | 189 bool request_is_seekable) = 0; |
191 virtual void DidReceiveData(const char* buffer, int length, | 190 virtual void DidReceiveData(const char* buffer, int length, |
192 int data_offset) = 0; | 191 int data_offset) = 0; |
193 virtual void DidFinishLoading() = 0; | 192 virtual void DidFinishLoading() = 0; |
194 virtual void DidFail() = 0; | 193 virtual void DidFail() = 0; |
195 virtual bool IsMultiByteResponseExpected() = 0; | 194 virtual bool IsMultiByteResponseExpected() = 0; |
196 virtual int ResourceId() = 0; | 195 virtual int ResourceId() = 0; |
197 }; | 196 }; |
198 | 197 |
199 } // namespace npapi | 198 } // namespace webkit_glue |
200 } // namespace webkit | |
201 | 199 |
202 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_H_ | 200 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_H_ |
OLD | NEW |