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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 const GURL& new_file_path, | 94 const GURL& new_file_path, |
95 fileapi::FileSystemCallbackDispatcher* dispatcher); | 95 fileapi::FileSystemCallbackDispatcher* dispatcher); |
96 virtual bool ReadDirectory( | 96 virtual bool ReadDirectory( |
97 const GURL& directory_path, | 97 const GURL& directory_path, |
98 fileapi::FileSystemCallbackDispatcher* dispatcher); | 98 fileapi::FileSystemCallbackDispatcher* dispatcher); |
99 virtual void QueryAvailableSpace(const GURL& origin, | 99 virtual void QueryAvailableSpace(const GURL& origin, |
100 quota::StorageType type, | 100 quota::StorageType type, |
101 const AvailableSpaceCallback& callback); | 101 const AvailableSpaceCallback& callback); |
102 virtual void WillUpdateFile(const GURL& file_path); | 102 virtual void WillUpdateFile(const GURL& file_path); |
103 virtual void DidUpdateFile(const GURL& file_path, int64_t delta); | 103 virtual void DidUpdateFile(const GURL& file_path, int64_t delta); |
| 104 virtual base::PlatformFileError OpenFile( |
| 105 const ::ppapi::PepperFilePath& path, |
| 106 int flags, |
| 107 base::PlatformFile* file); |
| 108 virtual base::PlatformFileError RenameFile( |
| 109 const ::ppapi::PepperFilePath& from_path, |
| 110 const ::ppapi::PepperFilePath& to_path); |
| 111 virtual base::PlatformFileError DeleteFileOrDir( |
| 112 const ::ppapi::PepperFilePath& path, |
| 113 bool recursive); |
| 114 virtual base::PlatformFileError CreateDir( |
| 115 const ::ppapi::PepperFilePath& path); |
| 116 virtual base::PlatformFileError QueryFile( |
| 117 const ::ppapi::PepperFilePath& path, |
| 118 base::PlatformFileInfo* info); |
| 119 virtual base::PlatformFileError GetDirContents( |
| 120 const ::ppapi::PepperFilePath& path, |
| 121 ::ppapi::DirContents* contents); |
| 122 virtual base::PlatformFileError CreateTemporaryFile( |
| 123 base::PlatformFile* file); |
104 virtual void SyncGetFileSystemPlatformPath(const GURL& url, | 124 virtual void SyncGetFileSystemPlatformPath(const GURL& url, |
105 FilePath* platform_path); | 125 FilePath* platform_path); |
106 virtual scoped_refptr<base::MessageLoopProxy> | 126 virtual scoped_refptr<base::MessageLoopProxy> |
107 GetFileThreadMessageLoopProxy(); | 127 GetFileThreadMessageLoopProxy(); |
108 virtual uint32 TCPSocketCreate(); | 128 virtual uint32 TCPSocketCreate(); |
109 virtual void TCPSocketConnect(PPB_TCPSocket_Private_Impl* socket, | 129 virtual void TCPSocketConnect(PPB_TCPSocket_Private_Impl* socket, |
110 uint32 socket_id, | 130 uint32 socket_id, |
111 const std::string& host, | 131 const std::string& host, |
112 uint16_t port); | 132 uint16_t port); |
113 virtual void TCPSocketConnectWithNetAddress( | 133 virtual void TCPSocketConnectWithNetAddress( |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 virtual void StopEnumerateDevices(int request_id); | 207 virtual void StopEnumerateDevices(int request_id); |
188 virtual PP_FlashLSORestrictions GetLocalDataRestrictions( | 208 virtual PP_FlashLSORestrictions GetLocalDataRestrictions( |
189 const GURL& document_url, | 209 const GURL& document_url, |
190 const GURL& plugin_url); | 210 const GURL& plugin_url); |
191 }; | 211 }; |
192 | 212 |
193 } // namespace ppapi | 213 } // namespace ppapi |
194 } // namespace webkit | 214 } // namespace webkit |
195 | 215 |
196 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ | 216 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ |
OLD | NEW |