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 WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 17 matching lines...) Expand all Loading... |
28 #include "ppapi/c/private/ppb_flash.h" | 28 #include "ppapi/c/private/ppb_flash.h" |
29 #include "ppapi/c/private/ppb_udp_socket_private.h" | 29 #include "ppapi/c/private/ppb_udp_socket_private.h" |
30 #include "ppapi/shared_impl/dir_contents.h" | 30 #include "ppapi/shared_impl/dir_contents.h" |
31 #include "ui/gfx/size.h" | 31 #include "ui/gfx/size.h" |
32 #include "webkit/fileapi/file_system_types.h" | 32 #include "webkit/fileapi/file_system_types.h" |
33 #include "webkit/glue/clipboard_client.h" | 33 #include "webkit/glue/clipboard_client.h" |
34 #include "webkit/quota/quota_types.h" | 34 #include "webkit/quota/quota_types.h" |
35 | 35 |
36 class GURL; | 36 class GURL; |
37 class SkBitmap; | 37 class SkBitmap; |
| 38 class SkCanvas; |
38 class TransportDIB; | 39 class TransportDIB; |
39 struct PP_HostResolver_Private_Hint; | 40 struct PP_HostResolver_Private_Hint; |
40 struct PP_NetAddress_Private; | 41 struct PP_NetAddress_Private; |
41 | 42 |
42 namespace base { | 43 namespace base { |
43 class MessageLoopProxy; | 44 class MessageLoopProxy; |
44 class Time; | 45 class Time; |
45 } | 46 } |
46 | 47 |
47 namespace fileapi { | 48 namespace fileapi { |
(...skipping 15 matching lines...) Expand all Loading... |
63 struct DeviceRefData; | 64 struct DeviceRefData; |
64 struct HostPortPair; | 65 struct HostPortPair; |
65 struct Preferences; | 66 struct Preferences; |
66 | 67 |
67 namespace thunk { | 68 namespace thunk { |
68 class ResourceCreationAPI; | 69 class ResourceCreationAPI; |
69 } | 70 } |
70 | 71 |
71 } // namespace ppapi | 72 } // namespace ppapi |
72 | 73 |
73 namespace skia { | |
74 class PlatformCanvas; | |
75 } | |
76 | |
77 namespace WebKit { | 74 namespace WebKit { |
78 class WebGamepads; | 75 class WebGamepads; |
79 class WebPlugin; | 76 class WebPlugin; |
80 struct WebCompositionUnderline; | 77 struct WebCompositionUnderline; |
81 struct WebCursorInfo; | 78 struct WebCursorInfo; |
82 } | 79 } |
83 | 80 |
84 namespace webkit_glue { | 81 namespace webkit_glue { |
85 class ClipboardClient; | 82 class ClipboardClient; |
86 class P2PTransport; | 83 class P2PTransport; |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 virtual void RemoveInstance(PP_Instance instance) = 0; | 150 virtual void RemoveInstance(PP_Instance instance) = 0; |
154 }; | 151 }; |
155 | 152 |
156 // Represents an image. This is to allow the browser layer to supply a correct | 153 // Represents an image. This is to allow the browser layer to supply a correct |
157 // image representation. In Chrome, this will be a TransportDIB. | 154 // image representation. In Chrome, this will be a TransportDIB. |
158 class PlatformImage2D { | 155 class PlatformImage2D { |
159 public: | 156 public: |
160 virtual ~PlatformImage2D() {} | 157 virtual ~PlatformImage2D() {} |
161 | 158 |
162 // Caller will own the returned pointer, returns NULL on failure. | 159 // Caller will own the returned pointer, returns NULL on failure. |
163 virtual skia::PlatformCanvas* Map() = 0; | 160 virtual SkCanvas* Map() = 0; |
164 | 161 |
165 // Returns the platform-specific shared memory handle of the data backing | 162 // Returns the platform-specific shared memory handle of the data backing |
166 // this image. This is used by PPAPI proxying to send the image to the | 163 // this image. This is used by PPAPI proxying to send the image to the |
167 // out-of-process plugin. On success, the size in bytes will be placed into | 164 // out-of-process plugin. On success, the size in bytes will be placed into |
168 // |*bytes_count|. Returns 0 on failure. | 165 // |*bytes_count|. Returns 0 on failure. |
169 virtual intptr_t GetSharedMemoryHandle(uint32* byte_count) const = 0; | 166 virtual intptr_t GetSharedMemoryHandle(uint32* byte_count) const = 0; |
170 | 167 |
171 virtual TransportDIB* GetTransportDIB() const = 0; | 168 virtual TransportDIB* GetTransportDIB() const = 0; |
172 }; | 169 }; |
173 | 170 |
(...skipping 501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
675 // Returns restrictions on local data handled by the plug-in. | 672 // Returns restrictions on local data handled by the plug-in. |
676 virtual PP_FlashLSORestrictions GetLocalDataRestrictions( | 673 virtual PP_FlashLSORestrictions GetLocalDataRestrictions( |
677 const GURL& document_url, | 674 const GURL& document_url, |
678 const GURL& plugin_url) = 0; | 675 const GURL& plugin_url) = 0; |
679 }; | 676 }; |
680 | 677 |
681 } // namespace ppapi | 678 } // namespace ppapi |
682 } // namespace webkit | 679 } // namespace webkit |
683 | 680 |
684 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 681 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
OLD | NEW |