| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 | 93 |
| 94 // Unregisters |origin| to track remote side changes for the |origin|. | 94 // Unregisters |origin| to track remote side changes for the |origin|. |
| 95 // Upon completion, invokes |callback|. | 95 // Upon completion, invokes |callback|. |
| 96 // The caller may call this method again when the remote service state | 96 // The caller may call this method again when the remote service state |
| 97 // migrates to REMOTE_SERVICE_OK state if the error code returned via | 97 // migrates to REMOTE_SERVICE_OK state if the error code returned via |
| 98 // |callback| was retriable ones. | 98 // |callback| was retriable ones. |
| 99 virtual void UnregisterOriginForTrackingChanges( | 99 virtual void UnregisterOriginForTrackingChanges( |
| 100 const GURL& origin, | 100 const GURL& origin, |
| 101 const SyncStatusCallback& callback) = 0; | 101 const SyncStatusCallback& callback) = 0; |
| 102 | 102 |
| 103 virtual void EnableOriginForTrackingChanges( |
| 104 const GURL& origin, |
| 105 const SyncStatusCallback& callback) = 0; |
| 106 |
| 107 virtual void DisableOriginForTrackingChanges( |
| 108 const GURL& origin, |
| 109 const SyncStatusCallback& callback) = 0; |
| 110 |
| 103 // Deletes the |origin| directory from the remote backing service. | 111 // Deletes the |origin| directory from the remote backing service. |
| 104 virtual void DeleteOriginDirectory( | 112 virtual void DeleteOriginDirectory( |
| 105 const GURL& origin, | 113 const GURL& origin, |
| 106 const SyncStatusCallback& callback) = 0; | 114 const SyncStatusCallback& callback) = 0; |
| 107 | 115 |
| 108 // Called by the sync engine to process one remote change. | 116 // Called by the sync engine to process one remote change. |
| 109 // After a change is processed |callback| will be called (to return | 117 // After a change is processed |callback| will be called (to return |
| 110 // the control to the sync engine). | 118 // the control to the sync engine). |
| 111 // It is invalid to call this before calling SetRemoteChangeProcessor(). | 119 // It is invalid to call this before calling SetRemoteChangeProcessor(). |
| 112 virtual void ProcessRemoteChange(const SyncFileCallback& callback) = 0; | 120 virtual void ProcessRemoteChange(const SyncFileCallback& callback) = 0; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 // Gets the conflict resolution policy. | 160 // Gets the conflict resolution policy. |
| 153 virtual ConflictResolutionPolicy GetConflictResolutionPolicy() const = 0; | 161 virtual ConflictResolutionPolicy GetConflictResolutionPolicy() const = 0; |
| 154 | 162 |
| 155 private: | 163 private: |
| 156 DISALLOW_COPY_AND_ASSIGN(RemoteFileSyncService); | 164 DISALLOW_COPY_AND_ASSIGN(RemoteFileSyncService); |
| 157 }; | 165 }; |
| 158 | 166 |
| 159 } // namespace sync_file_system | 167 } // namespace sync_file_system |
| 160 | 168 |
| 161 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_REMOTE_FILE_SYNC_SERVICE_H_ | 169 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_REMOTE_FILE_SYNC_SERVICE_H_ |
| OLD | NEW |