| 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_SYNC_FILE_SYSTEM_REMOTE_FILE_SYNC_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_REMOTE_FILE_SYNC_SERVICE_H_ |
| 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_REMOTE_FILE_SYNC_SERVICE_H_ | 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_REMOTE_FILE_SYNC_SERVICE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 // returned by the last OnRemoteServiceStateUpdated notification. | 185 // returned by the last OnRemoteServiceStateUpdated notification. |
| 186 virtual RemoteServiceState GetCurrentState() const = 0; | 186 virtual RemoteServiceState GetCurrentState() const = 0; |
| 187 | 187 |
| 188 // Returns all origins along with an arbitrary string description of their | 188 // Returns all origins along with an arbitrary string description of their |
| 189 // corresponding sync statuses. | 189 // corresponding sync statuses. |
| 190 virtual void GetOriginStatusMap(OriginStatusMap* status_map) = 0; | 190 virtual void GetOriginStatusMap(OriginStatusMap* status_map) = 0; |
| 191 | 191 |
| 192 // Returns file metadata for |origin|. | 192 // Returns file metadata for |origin|. |
| 193 virtual scoped_ptr<base::ListValue> DumpFiles(const GURL& origin) = 0; | 193 virtual scoped_ptr<base::ListValue> DumpFiles(const GURL& origin) = 0; |
| 194 | 194 |
| 195 // Returns the dump of internal database. |
| 196 virtual scoped_ptr<base::ListValue> DumpDatabase() = 0; |
| 197 |
| 195 // Enables or disables the background sync. | 198 // Enables or disables the background sync. |
| 196 // Setting this to false should disable the synchronization (and make | 199 // Setting this to false should disable the synchronization (and make |
| 197 // the service state to REMOTE_SERVICE_DISABLED), while setting this to | 200 // the service state to REMOTE_SERVICE_DISABLED), while setting this to |
| 198 // true does not necessarily mean the service is actually turned on | 201 // true does not necessarily mean the service is actually turned on |
| 199 // (for example if Chrome is offline the service state will become | 202 // (for example if Chrome is offline the service state will become |
| 200 // REMOTE_SERVICE_TEMPORARY_UNAVAILABLE). | 203 // REMOTE_SERVICE_TEMPORARY_UNAVAILABLE). |
| 201 virtual void SetSyncEnabled(bool enabled) = 0; | 204 virtual void SetSyncEnabled(bool enabled) = 0; |
| 202 | 205 |
| 203 // Sets the conflict resolution policy. Returns SYNC_STATUS_OK on success, | 206 // Sets the conflict resolution policy. Returns SYNC_STATUS_OK on success, |
| 204 // or returns an error code if the given policy is not supported or had | 207 // or returns an error code if the given policy is not supported or had |
| (...skipping 17 matching lines...) Expand all Loading... |
| 222 const std::string& id, | 225 const std::string& id, |
| 223 const DownloadVersionCallback& callback) = 0; | 226 const DownloadVersionCallback& callback) = 0; |
| 224 | 227 |
| 225 private: | 228 private: |
| 226 DISALLOW_COPY_AND_ASSIGN(RemoteFileSyncService); | 229 DISALLOW_COPY_AND_ASSIGN(RemoteFileSyncService); |
| 227 }; | 230 }; |
| 228 | 231 |
| 229 } // namespace sync_file_system | 232 } // namespace sync_file_system |
| 230 | 233 |
| 231 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_REMOTE_FILE_SYNC_SERVICE_H_ | 234 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_REMOTE_FILE_SYNC_SERVICE_H_ |
| OLD | NEW |