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_LOCAL_FILE_SYNC_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_FILE_SYNC_SERVICE_H_ |
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_FILE_SYNC_SERVICE_H_ | 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_FILE_SYNC_SERVICE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 | 101 |
102 // RemoteChangeProcessor overrides. | 102 // RemoteChangeProcessor overrides. |
103 virtual void PrepareForProcessRemoteChange( | 103 virtual void PrepareForProcessRemoteChange( |
104 const fileapi::FileSystemURL& url, | 104 const fileapi::FileSystemURL& url, |
105 const PrepareChangeCallback& callback) OVERRIDE; | 105 const PrepareChangeCallback& callback) OVERRIDE; |
106 virtual void ApplyRemoteChange( | 106 virtual void ApplyRemoteChange( |
107 const fileapi::FileChange& change, | 107 const fileapi::FileChange& change, |
108 const FilePath& local_path, | 108 const FilePath& local_path, |
109 const fileapi::FileSystemURL& url, | 109 const fileapi::FileSystemURL& url, |
110 const fileapi::SyncStatusCallback& callback) OVERRIDE; | 110 const fileapi::SyncStatusCallback& callback) OVERRIDE; |
| 111 virtual void ClearLocalChanges( |
| 112 const fileapi::FileSystemURL& url, |
| 113 const base::Closure& completion_callback) OVERRIDE; |
111 virtual void RecordFakeLocalChange( | 114 virtual void RecordFakeLocalChange( |
112 const fileapi::FileSystemURL& url, | 115 const fileapi::FileSystemURL& url, |
113 const fileapi::FileChange& change, | 116 const fileapi::FileChange& change, |
114 const fileapi::SyncStatusCallback& callback) OVERRIDE; | 117 const fileapi::SyncStatusCallback& callback) OVERRIDE; |
115 | 118 |
116 // LocalOriginChangeObserver override. | 119 // LocalOriginChangeObserver override. |
117 virtual void OnChangesAvailableInOrigins( | 120 virtual void OnChangesAvailableInOrigins( |
118 const std::set<GURL>& origins) OVERRIDE; | 121 const std::set<GURL>& origins) OVERRIDE; |
119 | 122 |
120 private: | 123 private: |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 fileapi::SyncFileCallback local_sync_callback_; | 180 fileapi::SyncFileCallback local_sync_callback_; |
178 | 181 |
179 ObserverList<Observer> change_observers_; | 182 ObserverList<Observer> change_observers_; |
180 | 183 |
181 DISALLOW_COPY_AND_ASSIGN(LocalFileSyncService); | 184 DISALLOW_COPY_AND_ASSIGN(LocalFileSyncService); |
182 }; | 185 }; |
183 | 186 |
184 } // namespace sync_file_system | 187 } // namespace sync_file_system |
185 | 188 |
186 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_FILE_SYNC_SERVICE_H_ | 189 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_FILE_SYNC_SERVICE_H_ |
OLD | NEW |