Chromium Code Reviews| 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 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 417 typedef base::Callback<void (base::PlatformFileError, base::PassPlatformFile)> | 417 typedef base::Callback<void (base::PlatformFileError, base::PassPlatformFile)> |
| 418 AsyncOpenFileCallback; | 418 AsyncOpenFileCallback; |
| 419 virtual bool AsyncOpenFile(const FilePath& path, | 419 virtual bool AsyncOpenFile(const FilePath& path, |
| 420 int flags, | 420 int flags, |
| 421 const AsyncOpenFileCallback& callback) = 0; | 421 const AsyncOpenFileCallback& callback) = 0; |
| 422 virtual bool AsyncOpenFileSystemURL( | 422 virtual bool AsyncOpenFileSystemURL( |
| 423 const GURL& path, | 423 const GURL& path, |
| 424 int flags, | 424 int flags, |
| 425 const AsyncOpenFileCallback& callback) = 0; | 425 const AsyncOpenFileCallback& callback) = 0; |
| 426 | 426 |
| 427 // Retrieves a callback for doing clean-up task for closing filesystem URL. | |
| 428 virtual base::Callback<void (base::PlatformFileError)> | |
|
yzshen1
2012/06/28 20:14:17
It seems more intuitive to have such an interface:
kinaba
2012/06/29 09:28:33
No reason to object. Done.
| |
| 429 GetCloseFileSystemURLCallback(const GURL& path) = 0; | |
| 430 | |
| 427 virtual bool OpenFileSystem( | 431 virtual bool OpenFileSystem( |
| 428 const GURL& url, | 432 const GURL& url, |
| 429 fileapi::FileSystemType type, | 433 fileapi::FileSystemType type, |
| 430 long long size, | 434 long long size, |
| 431 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; | 435 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; |
| 432 virtual bool MakeDirectory( | 436 virtual bool MakeDirectory( |
| 433 const GURL& path, | 437 const GURL& path, |
| 434 bool recursive, | 438 bool recursive, |
| 435 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; | 439 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; |
| 436 virtual bool Query(const GURL& path, | 440 virtual bool Query(const GURL& path, |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 648 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0; | 652 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0; |
| 649 | 653 |
| 650 // Returns a Device ID | 654 // Returns a Device ID |
| 651 virtual std::string GetDeviceID() = 0; | 655 virtual std::string GetDeviceID() = 0; |
| 652 }; | 656 }; |
| 653 | 657 |
| 654 } // namespace ppapi | 658 } // namespace ppapi |
| 655 } // namespace webkit | 659 } // namespace webkit |
| 656 | 660 |
| 657 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 661 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
| OLD | NEW |