OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_LOCAL_FILE_SYNC_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_LOCAL_FILE_SYNC_SERVICE_H_ |
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_LOCAL_FILE_SYNC_SERVICE_H_ | 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_LOCAL_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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 // (crbug.com/324215), or deprecate the other if we keep doing so. | 116 // (crbug.com/324215), or deprecate the other if we keep doing so. |
117 void SetLocalChangeProcessorCallback( | 117 void SetLocalChangeProcessorCallback( |
118 const GetLocalChangeProcessorCallback& get_local_change_processor); | 118 const GetLocalChangeProcessorCallback& get_local_change_processor); |
119 | 119 |
120 // Returns true via |callback| if the given file |url| has local pending | 120 // Returns true via |callback| if the given file |url| has local pending |
121 // changes. | 121 // changes. |
122 void HasPendingLocalChanges( | 122 void HasPendingLocalChanges( |
123 const fileapi::FileSystemURL& url, | 123 const fileapi::FileSystemURL& url, |
124 const HasPendingLocalChangeCallback& callback); | 124 const HasPendingLocalChangeCallback& callback); |
125 | 125 |
126 void PromoteDemotedChanges(); | 126 void PromoteDemotedChanges(const base::Closure& callback); |
127 | 127 |
128 // Returns the metadata of a remote file pointed by |url|. | 128 // Returns the metadata of a remote file pointed by |url|. |
129 virtual void GetLocalFileMetadata( | 129 virtual void GetLocalFileMetadata( |
130 const fileapi::FileSystemURL& url, | 130 const fileapi::FileSystemURL& url, |
131 const SyncFileMetadataCallback& callback); | 131 const SyncFileMetadataCallback& callback); |
132 | 132 |
133 // RemoteChangeProcessor overrides. | 133 // RemoteChangeProcessor overrides. |
134 virtual void PrepareForProcessRemoteChange( | 134 virtual void PrepareForProcessRemoteChange( |
135 const fileapi::FileSystemURL& url, | 135 const fileapi::FileSystemURL& url, |
136 const PrepareChangeCallback& callback) OVERRIDE; | 136 const PrepareChangeCallback& callback) OVERRIDE; |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
251 GetLocalChangeProcessorCallback get_local_change_processor_; | 251 GetLocalChangeProcessorCallback get_local_change_processor_; |
252 | 252 |
253 ObserverList<Observer> change_observers_; | 253 ObserverList<Observer> change_observers_; |
254 | 254 |
255 DISALLOW_COPY_AND_ASSIGN(LocalFileSyncService); | 255 DISALLOW_COPY_AND_ASSIGN(LocalFileSyncService); |
256 }; | 256 }; |
257 | 257 |
258 } // namespace sync_file_system | 258 } // namespace sync_file_system |
259 | 259 |
260 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_LOCAL_FILE_SYNC_SERVICE_H_ | 260 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_LOCAL_LOCAL_FILE_SYNC_SERVICE_H_ |
OLD | NEW |