| 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 // Sends an async IPC to notify that a plugin closed a file. |
| 428 virtual bool AsyncNotifyCloseFileSystemURL(const GURL& path) = 0; |
| 429 |
| 427 virtual bool OpenFileSystem( | 430 virtual bool OpenFileSystem( |
| 428 const GURL& url, | 431 const GURL& url, |
| 429 fileapi::FileSystemType type, | 432 fileapi::FileSystemType type, |
| 430 long long size, | 433 long long size, |
| 431 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; | 434 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; |
| 432 virtual bool MakeDirectory( | 435 virtual bool MakeDirectory( |
| 433 const GURL& path, | 436 const GURL& path, |
| 434 bool recursive, | 437 bool recursive, |
| 435 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; | 438 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; |
| 436 virtual bool Query(const GURL& path, | 439 virtual bool Query(const GURL& path, |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 646 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0; | 649 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0; |
| 647 | 650 |
| 648 // Returns a Device ID | 651 // Returns a Device ID |
| 649 virtual std::string GetDeviceID() = 0; | 652 virtual std::string GetDeviceID() = 0; |
| 650 }; | 653 }; |
| 651 | 654 |
| 652 } // namespace ppapi | 655 } // namespace ppapi |
| 653 } // namespace webkit | 656 } // namespace webkit |
| 654 | 657 |
| 655 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 658 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
| OLD | NEW |