Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(310)

Side by Side Diff: chrome/browser/sync_file_system/drive_file_sync_service.h

Issue 12744008: SyncFS: store disabled origins in DriveMetadataStore (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/drive_file_sync_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 // Use WeakPtrFactory instead of SupportsWeakPtr to revoke the weak pointer 502 // Use WeakPtrFactory instead of SupportsWeakPtr to revoke the weak pointer
497 // in |token_|. 503 // in |token_|.
498 base::WeakPtrFactory<DriveFileSyncService> weak_factory_; 504 base::WeakPtrFactory<DriveFileSyncService> weak_factory_;
499 505
500 DISALLOW_COPY_AND_ASSIGN(DriveFileSyncService); 506 DISALLOW_COPY_AND_ASSIGN(DriveFileSyncService);
501 }; 507 };
502 508
503 } // namespace sync_file_system 509 } // namespace sync_file_system
504 510
505 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_FILE_SYNC_SERVICE_H_ 511 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_FILE_SYNC_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/drive_file_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698