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 | |
531 // Synchronously returns the platform file path for a filesystem URL. | 510 // Synchronously returns the platform file path for a filesystem URL. |
532 virtual void SyncGetFileSystemPlatformPath(const GURL& url, | 511 virtual void SyncGetFileSystemPlatformPath(const GURL& url, |
533 FilePath* platform_path) = 0; | 512 FilePath* platform_path) = 0; |
534 | 513 |
535 // Returns a MessageLoopProxy instance associated with the message loop | 514 // Returns a MessageLoopProxy instance associated with the message loop |
536 // of the file thread in this renderer. | 515 // of the file thread in this renderer. |
537 virtual scoped_refptr<base::MessageLoopProxy> | 516 virtual scoped_refptr<base::MessageLoopProxy> |
538 GetFileThreadMessageLoopProxy() = 0; | 517 GetFileThreadMessageLoopProxy() = 0; |
539 | 518 |
540 // For PPB_TCPSocket_Private. | 519 // For PPB_TCPSocket_Private. |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
691 // Returns restrictions on local data handled by the plug-in. | 670 // Returns restrictions on local data handled by the plug-in. |
692 virtual PP_FlashLSORestrictions GetLocalDataRestrictions( | 671 virtual PP_FlashLSORestrictions GetLocalDataRestrictions( |
693 const GURL& document_url, | 672 const GURL& document_url, |
694 const GURL& plugin_url) = 0; | 673 const GURL& plugin_url) = 0; |
695 }; | 674 }; |
696 | 675 |
697 } // namespace ppapi | 676 } // namespace ppapi |
698 } // namespace webkit | 677 } // namespace webkit |
699 | 678 |
700 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 679 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
OLD | NEW |