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_DRIVE_FILE_SYNC_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_FILE_SYNC_SERVICE_H_ |
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_FILE_SYNC_SERVICE_H_ | 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_FILE_SYNC_SERVICE_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 | 73 |
74 // RemoteFileSyncService overrides. | 74 // RemoteFileSyncService overrides. |
75 virtual void AddServiceObserver(Observer* observer) OVERRIDE; | 75 virtual void AddServiceObserver(Observer* observer) OVERRIDE; |
76 virtual void AddFileStatusObserver(FileStatusObserver* observer) OVERRIDE; | 76 virtual void AddFileStatusObserver(FileStatusObserver* observer) OVERRIDE; |
77 virtual void RegisterOriginForTrackingChanges( | 77 virtual void RegisterOriginForTrackingChanges( |
78 const GURL& origin, | 78 const GURL& origin, |
79 const SyncStatusCallback& callback) OVERRIDE; | 79 const SyncStatusCallback& callback) OVERRIDE; |
80 virtual void UnregisterOriginForTrackingChanges( | 80 virtual void UnregisterOriginForTrackingChanges( |
81 const GURL& origin, | 81 const GURL& origin, |
82 const SyncStatusCallback& callback) OVERRIDE; | 82 const SyncStatusCallback& callback) OVERRIDE; |
| 83 virtual void EnableOriginForTrackingChanges( |
| 84 const GURL& origin, |
| 85 const SyncStatusCallback& callback) OVERRIDE; |
| 86 virtual void DisableOriginForTrackingChanges( |
| 87 const GURL& origin, |
| 88 const SyncStatusCallback& callback) OVERRIDE; |
83 virtual void DeleteOriginDirectory( | 89 virtual void DeleteOriginDirectory( |
84 const GURL& origin, | 90 const GURL& origin, |
85 const SyncStatusCallback& callback) OVERRIDE; | 91 const SyncStatusCallback& callback) OVERRIDE; |
86 virtual void ProcessRemoteChange(const SyncFileCallback& callback) OVERRIDE; | 92 virtual void ProcessRemoteChange(const SyncFileCallback& callback) OVERRIDE; |
87 virtual void SetRemoteChangeProcessor( | 93 virtual void SetRemoteChangeProcessor( |
88 RemoteChangeProcessor* processor) OVERRIDE; | 94 RemoteChangeProcessor* processor) OVERRIDE; |
89 virtual LocalChangeProcessor* GetLocalChangeProcessor() OVERRIDE; | 95 virtual LocalChangeProcessor* GetLocalChangeProcessor() OVERRIDE; |
90 virtual bool IsConflicting(const fileapi::FileSystemURL& url) OVERRIDE; | 96 virtual bool IsConflicting(const fileapi::FileSystemURL& url) OVERRIDE; |
91 virtual void GetRemoteFileMetadata( | 97 virtual void GetRemoteFileMetadata( |
92 const fileapi::FileSystemURL& url, | 98 const fileapi::FileSystemURL& url, |
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 SyncStatusCode status); | 271 SyncStatusCode status); |
266 void StartOverLocalSync( | 272 void StartOverLocalSync( |
267 scoped_ptr<ApplyLocalChangeParam> param, | 273 scoped_ptr<ApplyLocalChangeParam> param, |
268 SyncStatusCode status); | 274 SyncStatusCode status); |
269 void ResolveConflictToRemoteForLocalSync( | 275 void ResolveConflictToRemoteForLocalSync( |
270 scoped_ptr<ApplyLocalChangeParam> param); | 276 scoped_ptr<ApplyLocalChangeParam> param); |
271 | 277 |
272 void DidInitializeMetadataStore(scoped_ptr<TaskToken> token, | 278 void DidInitializeMetadataStore(scoped_ptr<TaskToken> token, |
273 SyncStatusCode status, | 279 SyncStatusCode status, |
274 bool created); | 280 bool created); |
275 void UnregisterInactiveExtensionsIds(); | 281 void UpdateRegisteredOrigins(); |
276 | 282 |
277 void GetSyncRootDirectory(scoped_ptr<TaskToken> token, | 283 void GetSyncRootDirectory(scoped_ptr<TaskToken> token, |
278 const ResourceIdCallback& callback); | 284 const ResourceIdCallback& callback); |
279 void DidGetSyncRootDirectory(scoped_ptr<TaskToken> token, | 285 void DidGetSyncRootDirectory(scoped_ptr<TaskToken> token, |
280 const ResourceIdCallback& callback, | 286 const ResourceIdCallback& callback, |
281 google_apis::GDataErrorCode error, | 287 google_apis::GDataErrorCode error, |
282 const std::string& sync_root_resource_id); | 288 const std::string& sync_root_resource_id); |
283 void DidGetSyncRootForRegisterOrigin( | 289 void DidGetSyncRootForRegisterOrigin( |
284 const GURL& origin, | 290 const GURL& origin, |
285 const SyncStatusCallback& callback, | 291 const SyncStatusCallback& callback, |
(...skipping 16 matching lines...) Expand all Loading... |
302 const GURL& origin, | 308 const GURL& origin, |
303 const std::string& resource_id, | 309 const std::string& resource_id, |
304 google_apis::GDataErrorCode error, | 310 google_apis::GDataErrorCode error, |
305 int64 largest_changestamp); | 311 int64 largest_changestamp); |
306 void DidGetDirectoryContentForBatchSync( | 312 void DidGetDirectoryContentForBatchSync( |
307 scoped_ptr<TaskToken> token, | 313 scoped_ptr<TaskToken> token, |
308 const GURL& origin, | 314 const GURL& origin, |
309 int64 largest_changestamp, | 315 int64 largest_changestamp, |
310 google_apis::GDataErrorCode error, | 316 google_apis::GDataErrorCode error, |
311 scoped_ptr<google_apis::ResourceList> feed); | 317 scoped_ptr<google_apis::ResourceList> feed); |
312 void DidRemoveOriginOnMetadataStore( | 318 void DidChangeOriginOnMetadataStore( |
313 scoped_ptr<TaskToken> token, | 319 scoped_ptr<TaskToken> token, |
314 const SyncStatusCallback& callback, | 320 const SyncStatusCallback& callback, |
315 SyncStatusCode status); | 321 SyncStatusCode status); |
316 | 322 |
317 // Remote synchronization related methods. | 323 // Remote synchronization related methods. |
318 void DidPrepareForProcessRemoteChange( | 324 void DidPrepareForProcessRemoteChange( |
319 scoped_ptr<ProcessRemoteChangeParam> param, | 325 scoped_ptr<ProcessRemoteChangeParam> param, |
320 SyncStatusCode status, | 326 SyncStatusCode status, |
321 const SyncFileMetadata& metadata, | 327 const SyncFileMetadata& metadata, |
322 const FileChangeList& changes); | 328 const FileChangeList& changes); |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
492 // Use WeakPtrFactory instead of SupportsWeakPtr to revoke the weak pointer | 498 // Use WeakPtrFactory instead of SupportsWeakPtr to revoke the weak pointer |
493 // in |token_|. | 499 // in |token_|. |
494 base::WeakPtrFactory<DriveFileSyncService> weak_factory_; | 500 base::WeakPtrFactory<DriveFileSyncService> weak_factory_; |
495 | 501 |
496 DISALLOW_COPY_AND_ASSIGN(DriveFileSyncService); | 502 DISALLOW_COPY_AND_ASSIGN(DriveFileSyncService); |
497 }; | 503 }; |
498 | 504 |
499 } // namespace sync_file_system | 505 } // namespace sync_file_system |
500 | 506 |
501 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_FILE_SYNC_SERVICE_H_ | 507 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_FILE_SYNC_SERVICE_H_ |
OLD | NEW |