| 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 protected: | 107 protected: |
| 108 virtual ~SyncFileSystemRequestFileSystemFunction() {} | 108 virtual ~SyncFileSystemRequestFileSystemFunction() {} |
| 109 virtual bool RunImpl() OVERRIDE; | 109 virtual bool RunImpl() OVERRIDE; |
| 110 | 110 |
| 111 private: | 111 private: |
| 112 typedef SyncFileSystemRequestFileSystemFunction self; | 112 typedef SyncFileSystemRequestFileSystemFunction self; |
| 113 | 113 |
| 114 // Returns the file system context for this extension. | 114 // Returns the file system context for this extension. |
| 115 fileapi::FileSystemContext* GetFileSystemContext(); | 115 fileapi::FileSystemContext* GetFileSystemContext(); |
| 116 | 116 |
| 117 void DidInitializeFileSystemContext(sync_file_system::SyncStatusCode status); | |
| 118 void DidOpenFileSystem(base::PlatformFileError error, | 117 void DidOpenFileSystem(base::PlatformFileError error, |
| 119 const std::string& file_system_name, | 118 const std::string& file_system_name, |
| 120 const GURL& root_url); | 119 const GURL& root_url); |
| 121 }; | 120 }; |
| 122 | 121 |
| 123 class SyncFileSystemSetConflictResolutionPolicyFunction | 122 class SyncFileSystemSetConflictResolutionPolicyFunction |
| 124 : public SyncExtensionFunction { | 123 : public SyncExtensionFunction { |
| 125 public: | 124 public: |
| 126 DECLARE_EXTENSION_FUNCTION("syncFileSystem.setConflictResolutionPolicy", | 125 DECLARE_EXTENSION_FUNCTION("syncFileSystem.setConflictResolutionPolicy", |
| 127 SYNCFILESYSTEM_SETCONFLICTRESOLUTIONPOLICY) | 126 SYNCFILESYSTEM_SETCONFLICTRESOLUTIONPOLICY) |
| (...skipping 10 matching lines...) Expand all Loading... |
| 138 SYNCFILESYSTEM_GETCONFLICTRESOLUTIONPOLICY) | 137 SYNCFILESYSTEM_GETCONFLICTRESOLUTIONPOLICY) |
| 139 | 138 |
| 140 protected: | 139 protected: |
| 141 virtual ~SyncFileSystemGetConflictResolutionPolicyFunction() {} | 140 virtual ~SyncFileSystemGetConflictResolutionPolicyFunction() {} |
| 142 virtual bool RunImpl() OVERRIDE; | 141 virtual bool RunImpl() OVERRIDE; |
| 143 }; | 142 }; |
| 144 | 143 |
| 145 } // namespace extensions | 144 } // namespace extensions |
| 146 | 145 |
| 147 #endif // CHROME_BROWSER_EXTENSIONS_API_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_API_H
_ | 146 #endif // CHROME_BROWSER_EXTENSIONS_API_SYNC_FILE_SYSTEM_SYNC_FILE_SYSTEM_API_H
_ |
| OLD | NEW |