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 455 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
466 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; | 466 fileapi::FileSystemCallbackDispatcher* dispatcher) = 0; |
467 | 467 |
468 // For quota handlings for FileIO API. | 468 // For quota handlings for FileIO API. |
469 typedef base::Callback<void (int64)> AvailableSpaceCallback; | 469 typedef base::Callback<void (int64)> AvailableSpaceCallback; |
470 virtual void QueryAvailableSpace(const GURL& origin, | 470 virtual void QueryAvailableSpace(const GURL& origin, |
471 quota::StorageType type, | 471 quota::StorageType type, |
472 const AvailableSpaceCallback& callback) = 0; | 472 const AvailableSpaceCallback& callback) = 0; |
473 virtual void WillUpdateFile(const GURL& file_path) = 0; | 473 virtual void WillUpdateFile(const GURL& file_path) = 0; |
474 virtual void DidUpdateFile(const GURL& file_path, int64_t delta) = 0; | 474 virtual void DidUpdateFile(const GURL& file_path, int64_t delta) = 0; |
475 | 475 |
476 virtual base::PlatformFileError OpenFile( | |
yzshen1
2012/11/21 00:38:59
Please also change the mock.
raymes
2012/11/21 22:44:53
Done.
| |
477 const ::ppapi::PepperFilePath& path, | |
478 int flags, | |
479 base::PlatformFile* file) = 0; | |
480 virtual base::PlatformFileError RenameFile( | |
481 const ::ppapi::PepperFilePath& from_path, | |
482 const ::ppapi::PepperFilePath& to_path) = 0; | |
483 virtual base::PlatformFileError DeleteFileOrDir( | |
484 const ::ppapi::PepperFilePath& path, | |
485 bool recursive) = 0; | |
486 virtual base::PlatformFileError CreateDir( | |
487 const ::ppapi::PepperFilePath& path) = 0; | |
488 virtual base::PlatformFileError QueryFile( | |
489 const ::ppapi::PepperFilePath& path, | |
490 base::PlatformFileInfo* info) = 0; | |
491 virtual base::PlatformFileError GetDirContents( | |
492 const ::ppapi::PepperFilePath& path, | |
493 ::ppapi::DirContents* contents) = 0; | |
494 virtual base::PlatformFileError CreateTemporaryFile( | |
495 base::PlatformFile* file) = 0; | |
496 | |
497 // Synchronously returns the platform file path for a filesystem URL. | 476 // Synchronously returns the platform file path for a filesystem URL. |
498 virtual void SyncGetFileSystemPlatformPath(const GURL& url, | 477 virtual void SyncGetFileSystemPlatformPath(const GURL& url, |
499 FilePath* platform_path) = 0; | 478 FilePath* platform_path) = 0; |
500 | 479 |
501 // Returns a MessageLoopProxy instance associated with the message loop | 480 // Returns a MessageLoopProxy instance associated with the message loop |
502 // of the file thread in this renderer. | 481 // of the file thread in this renderer. |
503 virtual scoped_refptr<base::MessageLoopProxy> | 482 virtual scoped_refptr<base::MessageLoopProxy> |
504 GetFileThreadMessageLoopProxy() = 0; | 483 GetFileThreadMessageLoopProxy() = 0; |
505 | 484 |
506 // For PPB_TCPSocket_Private. | 485 // For PPB_TCPSocket_Private. |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
664 // Returns restrictions on local data handled by the plug-in. | 643 // Returns restrictions on local data handled by the plug-in. |
665 virtual PP_FlashLSORestrictions GetLocalDataRestrictions( | 644 virtual PP_FlashLSORestrictions GetLocalDataRestrictions( |
666 const GURL& document_url, | 645 const GURL& document_url, |
667 const GURL& plugin_url) = 0; | 646 const GURL& plugin_url) = 0; |
668 }; | 647 }; |
669 | 648 |
670 } // namespace ppapi | 649 } // namespace ppapi |
671 } // namespace webkit | 650 } // namespace webkit |
672 | 651 |
673 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 652 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
OLD | NEW |