| 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 CHROME_BROWSER_EXTENSIONS_API_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_API_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_API_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_API_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_API_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/platform_file.h" | 10 #include "base/platform_file.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 // TODO(kinuko,calvinlo): Uncomment this or delete this class when | 28 // TODO(kinuko,calvinlo): Uncomment this or delete this class when |
| 29 // we decide if we want to revive this function. | 29 // we decide if we want to revive this function. |
| 30 // DECLARE_EXTENSION_FUNCTION("syncFileSystem.deleteFileSystem", | 30 // DECLARE_EXTENSION_FUNCTION("syncFileSystem.deleteFileSystem", |
| 31 // SYNCFILESYSTEM_DELETEFILESYSTEM) | 31 // SYNCFILESYSTEM_DELETEFILESYSTEM) |
| 32 | 32 |
| 33 protected: | 33 protected: |
| 34 virtual ~SyncFileSystemDeleteFileSystemFunction() {} | 34 virtual ~SyncFileSystemDeleteFileSystemFunction() {} |
| 35 virtual bool RunImpl() OVERRIDE; | 35 virtual bool RunImpl() OVERRIDE; |
| 36 | 36 |
| 37 private: | 37 private: |
| 38 void DidDeleteFileSystem(base::PlatformFileError error); | 38 void DidDeleteFileSystem(base::File::Error error); |
| 39 }; | 39 }; |
| 40 | 40 |
| 41 class SyncFileSystemGetFileStatusFunction | 41 class SyncFileSystemGetFileStatusFunction |
| 42 : public ChromeAsyncExtensionFunction { | 42 : public ChromeAsyncExtensionFunction { |
| 43 public: | 43 public: |
| 44 DECLARE_EXTENSION_FUNCTION("syncFileSystem.getFileStatus", | 44 DECLARE_EXTENSION_FUNCTION("syncFileSystem.getFileStatus", |
| 45 SYNCFILESYSTEM_GETFILESYNCSTATUS) | 45 SYNCFILESYSTEM_GETFILESYNCSTATUS) |
| 46 | 46 |
| 47 protected: | 47 protected: |
| 48 virtual ~SyncFileSystemGetFileStatusFunction() {} | 48 virtual ~SyncFileSystemGetFileStatusFunction() {} |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 virtual bool RunImpl() OVERRIDE; | 108 virtual bool RunImpl() OVERRIDE; |
| 109 | 109 |
| 110 private: | 110 private: |
| 111 typedef SyncFileSystemRequestFileSystemFunction self; | 111 typedef SyncFileSystemRequestFileSystemFunction self; |
| 112 | 112 |
| 113 // Returns the file system context for this extension. | 113 // Returns the file system context for this extension. |
| 114 fileapi::FileSystemContext* GetFileSystemContext(); | 114 fileapi::FileSystemContext* GetFileSystemContext(); |
| 115 | 115 |
| 116 void DidOpenFileSystem(const GURL& root_url, | 116 void DidOpenFileSystem(const GURL& root_url, |
| 117 const std::string& file_system_name, | 117 const std::string& file_system_name, |
| 118 base::PlatformFileError error); | 118 base::File::Error error); |
| 119 }; | 119 }; |
| 120 | 120 |
| 121 class SyncFileSystemSetConflictResolutionPolicyFunction | 121 class SyncFileSystemSetConflictResolutionPolicyFunction |
| 122 : public ChromeSyncExtensionFunction { | 122 : public ChromeSyncExtensionFunction { |
| 123 public: | 123 public: |
| 124 DECLARE_EXTENSION_FUNCTION("syncFileSystem.setConflictResolutionPolicy", | 124 DECLARE_EXTENSION_FUNCTION("syncFileSystem.setConflictResolutionPolicy", |
| 125 SYNCFILESYSTEM_SETCONFLICTRESOLUTIONPOLICY) | 125 SYNCFILESYSTEM_SETCONFLICTRESOLUTIONPOLICY) |
| 126 | 126 |
| 127 protected: | 127 protected: |
| 128 virtual ~SyncFileSystemSetConflictResolutionPolicyFunction() {} | 128 virtual ~SyncFileSystemSetConflictResolutionPolicyFunction() {} |
| (...skipping 18 matching lines...) Expand all Loading... |
| 147 SYNCFILESYSTEM_GETSERVICESTATUS) | 147 SYNCFILESYSTEM_GETSERVICESTATUS) |
| 148 | 148 |
| 149 protected: | 149 protected: |
| 150 virtual ~SyncFileSystemGetServiceStatusFunction() {} | 150 virtual ~SyncFileSystemGetServiceStatusFunction() {} |
| 151 virtual bool RunImpl() OVERRIDE; | 151 virtual bool RunImpl() OVERRIDE; |
| 152 }; | 152 }; |
| 153 | 153 |
| 154 } // namespace extensions | 154 } // namespace extensions |
| 155 | 155 |
| 156 #endif // CHROME_BROWSER_EXTENSIONS_API_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_API_H
_ | 156 #endif // CHROME_BROWSER_EXTENSIONS_API_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_API_H
_ |
| OLD | NEW |