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 489 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
500 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; | 500 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; |
501 | 501 |
502 // For quota handlings for FileIO API. | 502 // For quota handlings for FileIO API. |
503 typedef base::Callback<void (int64)> AvailableSpaceCallback; | 503 typedef base::Callback<void (int64)> AvailableSpaceCallback; |
504 virtual void QueryAvailableSpace(const GURL& origin, | 504 virtual void QueryAvailableSpace(const GURL& origin, |
505 quota::StorageType type, | 505 quota::StorageType type, |
506 const AvailableSpaceCallback& callback) = 0; | 506 const AvailableSpaceCallback& callback) = 0; |
507 virtual void WillUpdateFile(const GURL& file_path) = 0; | 507 virtual void WillUpdateFile(const GURL& file_path) = 0; |
508 virtual void DidUpdateFile(const GURL& file_path, int64_t delta) = 0; | 508 virtual void DidUpdateFile(const GURL& file_path, int64_t delta) = 0; |
509 | 509 |
| 510 virtual base::PlatformFileError OpenFile( |
| 511 const ::ppapi::PepperFilePath& path, |
| 512 int flags, |
| 513 base::PlatformFile* file) = 0; |
| 514 virtual base::PlatformFileError RenameFile( |
| 515 const ::ppapi::PepperFilePath& from_path, |
| 516 const ::ppapi::PepperFilePath& to_path) = 0; |
| 517 virtual base::PlatformFileError DeleteFileOrDir( |
| 518 const ::ppapi::PepperFilePath& path, |
| 519 bool recursive) = 0; |
| 520 virtual base::PlatformFileError CreateDir( |
| 521 const ::ppapi::PepperFilePath& path) = 0; |
| 522 virtual base::PlatformFileError QueryFile( |
| 523 const ::ppapi::PepperFilePath& path, |
| 524 base::PlatformFileInfo* info) = 0; |
| 525 virtual base::PlatformFileError GetDirContents( |
| 526 const ::ppapi::PepperFilePath& path, |
| 527 ::ppapi::DirContents* contents) = 0; |
| 528 virtual base::PlatformFileError CreateTemporaryFile( |
| 529 base::PlatformFile* file) = 0; |
| 530 |
510 // Synchronously returns the platform file path for a filesystem URL. | 531 // Synchronously returns the platform file path for a filesystem URL. |
511 virtual void SyncGetFileSystemPlatformPath(const GURL& url, | 532 virtual void SyncGetFileSystemPlatformPath(const GURL& url, |
512 FilePath* platform_path) = 0; | 533 FilePath* platform_path) = 0; |
513 | 534 |
514 // Returns a MessageLoopProxy instance associated with the message loop | 535 // Returns a MessageLoopProxy instance associated with the message loop |
515 // of the file thread in this renderer. | 536 // of the file thread in this renderer. |
516 virtual scoped_refptr<base::MessageLoopProxy> | 537 virtual scoped_refptr<base::MessageLoopProxy> |
517 GetFileThreadMessageLoopProxy() = 0; | 538 GetFileThreadMessageLoopProxy() = 0; |
518 | 539 |
519 // For PPB_TCPSocket_Private. | 540 // For PPB_TCPSocket_Private. |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
670 // Returns restrictions on local data handled by the plug-in. | 691 // Returns restrictions on local data handled by the plug-in. |
671 virtual PP_FlashLSORestrictions GetLocalDataRestrictions( | 692 virtual PP_FlashLSORestrictions GetLocalDataRestrictions( |
672 const GURL& document_url, | 693 const GURL& document_url, |
673 const GURL& plugin_url) = 0; | 694 const GURL& plugin_url) = 0; |
674 }; | 695 }; |
675 | 696 |
676 } // namespace ppapi | 697 } // namespace ppapi |
677 } // namespace webkit | 698 } // namespace webkit |
678 | 699 |
679 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 700 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
OLD | NEW |