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