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 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 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 virtual bool AsyncOpenFile(const FilePath& path, | 281 virtual bool AsyncOpenFile(const FilePath& path, |
282 int flags, | 282 int flags, |
283 AsyncOpenFileCallback* callback) = 0; | 283 AsyncOpenFileCallback* callback) = 0; |
284 | 284 |
285 virtual bool OpenFileSystem( | 285 virtual bool OpenFileSystem( |
286 const GURL& url, | 286 const GURL& url, |
287 fileapi::FileSystemType type, | 287 fileapi::FileSystemType type, |
288 long long size, | 288 long long size, |
289 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; | 289 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; |
290 virtual bool MakeDirectory( | 290 virtual bool MakeDirectory( |
291 const FilePath& path, | 291 const GURL& path, |
292 bool recursive, | 292 bool recursive, |
293 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; | 293 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; |
294 virtual bool Query(const FilePath& path, | 294 virtual bool Query(const GURL& path, |
295 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; | 295 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; |
296 virtual bool Touch(const FilePath& path, | 296 virtual bool Touch(const GURL& path, |
297 const base::Time& last_access_time, | 297 const base::Time& last_access_time, |
298 const base::Time& last_modified_time, | 298 const base::Time& last_modified_time, |
299 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; | 299 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; |
300 virtual bool Delete(const FilePath& path, | 300 virtual bool Delete(const GURL& path, |
301 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; | 301 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; |
302 virtual bool Rename(const FilePath& file_path, | 302 virtual bool Rename(const GURL& file_path, |
303 const FilePath& new_file_path, | 303 const GURL& new_file_path, |
304 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; | 304 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; |
305 virtual bool ReadDirectory( | 305 virtual bool ReadDirectory( |
306 const FilePath& directory_path, | 306 const GURL& directory_path, |
307 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; | 307 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; |
308 | 308 |
309 virtual base::PlatformFileError OpenFile(const PepperFilePath& path, | 309 virtual base::PlatformFileError OpenFile(const PepperFilePath& path, |
310 int flags, | 310 int flags, |
311 base::PlatformFile* file) = 0; | 311 base::PlatformFile* file) = 0; |
312 virtual base::PlatformFileError RenameFile(const PepperFilePath& from_path, | 312 virtual base::PlatformFileError RenameFile(const PepperFilePath& from_path, |
313 const PepperFilePath& to_path) = 0; | 313 const PepperFilePath& to_path) = 0; |
314 virtual base::PlatformFileError DeleteFileOrDir(const PepperFilePath& path, | 314 virtual base::PlatformFileError DeleteFileOrDir(const PepperFilePath& path, |
315 bool recursive) = 0; | 315 bool recursive) = 0; |
316 virtual base::PlatformFileError CreateDir(const PepperFilePath& path) = 0; | 316 virtual base::PlatformFileError CreateDir(const PepperFilePath& path) = 0; |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 virtual P2PSocketDispatcher* GetP2PSocketDispatcher() = 0; | 377 virtual P2PSocketDispatcher* GetP2PSocketDispatcher() = 0; |
378 | 378 |
379 // Creates P2PTransport object. | 379 // Creates P2PTransport object. |
380 virtual webkit_glue::P2PTransport* CreateP2PTransport() = 0; | 380 virtual webkit_glue::P2PTransport* CreateP2PTransport() = 0; |
381 }; | 381 }; |
382 | 382 |
383 } // namespace ppapi | 383 } // namespace ppapi |
384 } // namespace webkit | 384 } // namespace webkit |
385 | 385 |
386 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 386 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
OLD | NEW |