| 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 457 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 468 // When a file is successfully opened, |callback| is invoked with | 468 // When a file is successfully opened, |callback| is invoked with |
| 469 // PLATFORM_FILE_OK, the opened file handle, and a callback function for | 469 // PLATFORM_FILE_OK, the opened file handle, and a callback function for |
| 470 // notifying that the file is closed. When the users of this function | 470 // notifying that the file is closed. When the users of this function |
| 471 // finished using the file, they must close the file handle and then must call | 471 // finished using the file, they must close the file handle and then must call |
| 472 // the supplied callback function. | 472 // the supplied callback function. |
| 473 typedef base::Callback<void (base::PlatformFileError)> | 473 typedef base::Callback<void (base::PlatformFileError)> |
| 474 NotifyCloseFileCallback; | 474 NotifyCloseFileCallback; |
| 475 typedef base::Callback< | 475 typedef base::Callback< |
| 476 void (base::PlatformFileError, | 476 void (base::PlatformFileError, |
| 477 base::PassPlatformFile, | 477 base::PassPlatformFile, |
| 478 quota::QuotaPolicy, |
| 478 const NotifyCloseFileCallback&)> AsyncOpenFileSystemURLCallback; | 479 const NotifyCloseFileCallback&)> AsyncOpenFileSystemURLCallback; |
| 479 virtual bool AsyncOpenFileSystemURL( | 480 virtual bool AsyncOpenFileSystemURL( |
| 480 const GURL& path, | 481 const GURL& path, |
| 481 int flags, | 482 int flags, |
| 482 const AsyncOpenFileSystemURLCallback& callback) = 0; | 483 const AsyncOpenFileSystemURLCallback& callback) = 0; |
| 483 | 484 |
| 484 virtual bool OpenFileSystem( | 485 virtual bool OpenFileSystem( |
| 485 const GURL& origin_url, | 486 const GURL& origin_url, |
| 486 fileapi::FileSystemType type, | 487 fileapi::FileSystemType type, |
| 487 long long size, | 488 long long size, |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 656 virtual IPC::PlatformFileForTransit ShareHandleWithRemote( | 657 virtual IPC::PlatformFileForTransit ShareHandleWithRemote( |
| 657 base::PlatformFile handle, | 658 base::PlatformFile handle, |
| 658 base::ProcessId target_process_id, | 659 base::ProcessId target_process_id, |
| 659 bool should_close_source) const = 0; | 660 bool should_close_source) const = 0; |
| 660 }; | 661 }; |
| 661 | 662 |
| 662 } // namespace ppapi | 663 } // namespace ppapi |
| 663 } // namespace webkit | 664 } // namespace webkit |
| 664 | 665 |
| 665 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 666 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
| OLD | NEW |