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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 | 70 |
71 // RemoteFileSyncService overrides. | 71 // RemoteFileSyncService overrides. |
72 virtual void AddServiceObserver(Observer* observer) OVERRIDE; | 72 virtual void AddServiceObserver(Observer* observer) OVERRIDE; |
73 virtual void AddFileStatusObserver(FileStatusObserver* observer) OVERRIDE; | 73 virtual void AddFileStatusObserver(FileStatusObserver* observer) OVERRIDE; |
74 virtual void RegisterOriginForTrackingChanges( | 74 virtual void RegisterOriginForTrackingChanges( |
75 const GURL& origin, | 75 const GURL& origin, |
76 const SyncStatusCallback& callback) OVERRIDE; | 76 const SyncStatusCallback& callback) OVERRIDE; |
77 virtual void UnregisterOriginForTrackingChanges( | 77 virtual void UnregisterOriginForTrackingChanges( |
78 const GURL& origin, | 78 const GURL& origin, |
79 const SyncStatusCallback& callback) OVERRIDE; | 79 const SyncStatusCallback& callback) OVERRIDE; |
| 80 virtual void DeleteOriginDirectory( |
| 81 const GURL& origin, |
| 82 const SyncStatusCallback& callback) OVERRIDE; |
80 virtual void ProcessRemoteChange( | 83 virtual void ProcessRemoteChange( |
81 RemoteChangeProcessor* processor, | 84 RemoteChangeProcessor* processor, |
82 const SyncFileCallback& callback) OVERRIDE; | 85 const SyncFileCallback& callback) OVERRIDE; |
83 virtual LocalChangeProcessor* GetLocalChangeProcessor() OVERRIDE; | 86 virtual LocalChangeProcessor* GetLocalChangeProcessor() OVERRIDE; |
84 virtual bool IsConflicting(const fileapi::FileSystemURL& url) OVERRIDE; | 87 virtual bool IsConflicting(const fileapi::FileSystemURL& url) OVERRIDE; |
85 virtual void GetRemoteFileMetadata( | 88 virtual void GetRemoteFileMetadata( |
86 const fileapi::FileSystemURL& url, | 89 const fileapi::FileSystemURL& url, |
87 const SyncFileMetadataCallback& callback) OVERRIDE; | 90 const SyncFileMetadataCallback& callback) OVERRIDE; |
88 virtual RemoteServiceState GetCurrentState() const OVERRIDE; | 91 virtual RemoteServiceState GetCurrentState() const OVERRIDE; |
89 virtual const char* GetServiceName() const OVERRIDE; | 92 virtual const char* GetServiceName() const OVERRIDE; |
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
263 const GURL& origin, | 266 const GURL& origin, |
264 const SyncStatusCallback& callback, | 267 const SyncStatusCallback& callback, |
265 SyncStatusCode status); | 268 SyncStatusCode status); |
266 void StartBatchSyncForOrigin(const GURL& origin, | 269 void StartBatchSyncForOrigin(const GURL& origin, |
267 const std::string& resource_id); | 270 const std::string& resource_id); |
268 void DidGetDirectoryForOrigin(scoped_ptr<TaskToken> token, | 271 void DidGetDirectoryForOrigin(scoped_ptr<TaskToken> token, |
269 const GURL& origin, | 272 const GURL& origin, |
270 const SyncStatusCallback& callback, | 273 const SyncStatusCallback& callback, |
271 google_apis::GDataErrorCode error, | 274 google_apis::GDataErrorCode error, |
272 const std::string& resource_id); | 275 const std::string& resource_id); |
| 276 void DidDeleteOriginDirectory(scoped_ptr<TaskToken> token, |
| 277 const SyncStatusCallback& callback, |
| 278 google_apis::GDataErrorCode error); |
273 void DidGetLargestChangeStampForBatchSync(scoped_ptr<TaskToken> token, | 279 void DidGetLargestChangeStampForBatchSync(scoped_ptr<TaskToken> token, |
274 const GURL& origin, | 280 const GURL& origin, |
275 const std::string& resource_id, | 281 const std::string& resource_id, |
276 google_apis::GDataErrorCode error, | 282 google_apis::GDataErrorCode error, |
277 int64 largest_changestamp); | 283 int64 largest_changestamp); |
278 void DidGetDirectoryContentForBatchSync( | 284 void DidGetDirectoryContentForBatchSync( |
279 scoped_ptr<TaskToken> token, | 285 scoped_ptr<TaskToken> token, |
280 const GURL& origin, | 286 const GURL& origin, |
281 int64 largest_changestamp, | 287 int64 largest_changestamp, |
282 google_apis::GDataErrorCode error, | 288 google_apis::GDataErrorCode error, |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
441 // Use WeakPtrFactory instead of SupportsWeakPtr to revoke the weak pointer | 447 // Use WeakPtrFactory instead of SupportsWeakPtr to revoke the weak pointer |
442 // in |token_|. | 448 // in |token_|. |
443 base::WeakPtrFactory<DriveFileSyncService> weak_factory_; | 449 base::WeakPtrFactory<DriveFileSyncService> weak_factory_; |
444 | 450 |
445 DISALLOW_COPY_AND_ASSIGN(DriveFileSyncService); | 451 DISALLOW_COPY_AND_ASSIGN(DriveFileSyncService); |
446 }; | 452 }; |
447 | 453 |
448 } // namespace sync_file_system | 454 } // namespace sync_file_system |
449 | 455 |
450 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_FILE_SYNC_SERVICE_H_ | 456 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_FILE_SYNC_SERVICE_H_ |
OLD | NEW |