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_MOCK_PLUGIN_DELEGATE_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ |
6 #define WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ |
7 | 7 |
8 #include "webkit/plugins/ppapi/plugin_delegate.h" | 8 #include "webkit/plugins/ppapi/plugin_delegate.h" |
9 | 9 |
10 struct PP_NetAddress_Private; | 10 struct PP_NetAddress_Private; |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 const GURL& new_file_path, | 89 const GURL& new_file_path, |
90 fileapi::FileSystemCallbackDispatcher* dispatcher); | 90 fileapi::FileSystemCallbackDispatcher* dispatcher); |
91 virtual bool ReadDirectory( | 91 virtual bool ReadDirectory( |
92 const GURL& directory_path, | 92 const GURL& directory_path, |
93 fileapi::FileSystemCallbackDispatcher* dispatcher); | 93 fileapi::FileSystemCallbackDispatcher* dispatcher); |
94 virtual void QueryAvailableSpace(const GURL& origin, | 94 virtual void QueryAvailableSpace(const GURL& origin, |
95 quota::StorageType type, | 95 quota::StorageType type, |
96 const AvailableSpaceCallback& callback); | 96 const AvailableSpaceCallback& callback); |
97 virtual void WillUpdateFile(const GURL& file_path); | 97 virtual void WillUpdateFile(const GURL& file_path); |
98 virtual void DidUpdateFile(const GURL& file_path, int64_t delta); | 98 virtual void DidUpdateFile(const GURL& file_path, int64_t delta); |
99 virtual base::PlatformFileError OpenFile(const PepperFilePath& path, | 99 virtual base::PlatformFileError OpenFile( |
100 int flags, | 100 const ::ppapi::PepperFilePath& path, |
101 base::PlatformFile* file); | 101 int flags, |
102 virtual base::PlatformFileError RenameFile(const PepperFilePath& from_path, | 102 base::PlatformFile* file); |
103 const PepperFilePath& to_path); | 103 virtual base::PlatformFileError RenameFile( |
104 virtual base::PlatformFileError DeleteFileOrDir(const PepperFilePath& path, | 104 const ::ppapi::PepperFilePath& from_path, |
105 bool recursive); | 105 const ::ppapi::PepperFilePath& to_path); |
106 virtual base::PlatformFileError CreateDir(const PepperFilePath& path); | 106 virtual base::PlatformFileError DeleteFileOrDir( |
107 virtual base::PlatformFileError QueryFile(const PepperFilePath& path, | 107 const ::ppapi::PepperFilePath& path, |
108 base::PlatformFileInfo* info); | 108 bool recursive); |
109 virtual base::PlatformFileError GetDirContents(const PepperFilePath& path, | 109 virtual base::PlatformFileError CreateDir( |
110 DirContents* contents); | 110 const ::ppapi::PepperFilePath& path); |
| 111 virtual base::PlatformFileError QueryFile( |
| 112 const ::ppapi::PepperFilePath& path, |
| 113 base::PlatformFileInfo* info); |
| 114 virtual base::PlatformFileError GetDirContents( |
| 115 const ::ppapi::PepperFilePath& path, |
| 116 ::ppapi::DirContents* contents); |
111 virtual void SyncGetFileSystemPlatformPath(const GURL& url, | 117 virtual void SyncGetFileSystemPlatformPath(const GURL& url, |
112 FilePath* platform_path); | 118 FilePath* platform_path); |
113 virtual scoped_refptr<base::MessageLoopProxy> | 119 virtual scoped_refptr<base::MessageLoopProxy> |
114 GetFileThreadMessageLoopProxy(); | 120 GetFileThreadMessageLoopProxy(); |
115 virtual uint32 TCPSocketCreate(); | 121 virtual uint32 TCPSocketCreate(); |
116 virtual void TCPSocketConnect(PPB_TCPSocket_Private_Impl* socket, | 122 virtual void TCPSocketConnect(PPB_TCPSocket_Private_Impl* socket, |
117 uint32 socket_id, | 123 uint32 socket_id, |
118 const std::string& host, | 124 const std::string& host, |
119 uint16_t port); | 125 uint16_t port); |
120 virtual void TCPSocketConnectWithNetAddress( | 126 virtual void TCPSocketConnectWithNetAddress( |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 virtual int EnumerateDevices(PP_DeviceType_Dev type, | 201 virtual int EnumerateDevices(PP_DeviceType_Dev type, |
196 const EnumerateDevicesCallback& callback); | 202 const EnumerateDevicesCallback& callback); |
197 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const; | 203 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const; |
198 virtual std::string GetDeviceID(); | 204 virtual std::string GetDeviceID(); |
199 }; | 205 }; |
200 | 206 |
201 } // namespace ppapi | 207 } // namespace ppapi |
202 } // namespace webkit | 208 } // namespace webkit |
203 | 209 |
204 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ | 210 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ |
OLD | NEW |