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

Side by Side Diff: sync/internal_api/sync_manager_impl.h

Issue 10905045: [Sync] Pass ModelTypeSet by value everywhere (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync to head Created 8 years, 3 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
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 SYNC_INTERNAL_API_SYNC_MANAGER_H_ 5 #ifndef SYNC_INTERNAL_API_SYNC_MANAGER_H_
6 #define SYNC_INTERNAL_API_SYNC_MANAGER_H_ 6 #define SYNC_INTERNAL_API_SYNC_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 Encryptor* encryptor, 79 Encryptor* encryptor,
80 UnrecoverableErrorHandler* unrecoverable_error_handler, 80 UnrecoverableErrorHandler* unrecoverable_error_handler,
81 ReportUnrecoverableErrorFunction 81 ReportUnrecoverableErrorFunction
82 report_unrecoverable_error_function) OVERRIDE; 82 report_unrecoverable_error_function) OVERRIDE;
83 virtual void ThrowUnrecoverableError() OVERRIDE; 83 virtual void ThrowUnrecoverableError() OVERRIDE;
84 virtual ModelTypeSet InitialSyncEndedTypes() OVERRIDE; 84 virtual ModelTypeSet InitialSyncEndedTypes() OVERRIDE;
85 virtual ModelTypeSet GetTypesWithEmptyProgressMarkerToken( 85 virtual ModelTypeSet GetTypesWithEmptyProgressMarkerToken(
86 ModelTypeSet types) OVERRIDE; 86 ModelTypeSet types) OVERRIDE;
87 virtual bool PurgePartiallySyncedTypes() OVERRIDE; 87 virtual bool PurgePartiallySyncedTypes() OVERRIDE;
88 virtual void UpdateCredentials(const SyncCredentials& credentials) OVERRIDE; 88 virtual void UpdateCredentials(const SyncCredentials& credentials) OVERRIDE;
89 virtual void UpdateEnabledTypes( 89 virtual void UpdateEnabledTypes(ModelTypeSet enabled_types) OVERRIDE;
90 const ModelTypeSet& enabled_types) OVERRIDE;
91 virtual void RegisterInvalidationHandler( 90 virtual void RegisterInvalidationHandler(
92 InvalidationHandler* handler) OVERRIDE; 91 InvalidationHandler* handler) OVERRIDE;
93 virtual void UpdateRegisteredInvalidationIds( 92 virtual void UpdateRegisteredInvalidationIds(
94 InvalidationHandler* handler, 93 InvalidationHandler* handler,
95 const ObjectIdSet& ids) OVERRIDE; 94 const ObjectIdSet& ids) OVERRIDE;
96 virtual void UnregisterInvalidationHandler( 95 virtual void UnregisterInvalidationHandler(
97 InvalidationHandler* handler) OVERRIDE; 96 InvalidationHandler* handler) OVERRIDE;
98 virtual void StartSyncingNormally( 97 virtual void StartSyncingNormally(
99 const ModelSafeRoutingInfo& routing_info) OVERRIDE; 98 const ModelSafeRoutingInfo& routing_info) OVERRIDE;
100 virtual void ConfigureSyncer( 99 virtual void ConfigureSyncer(
101 ConfigureReason reason, 100 ConfigureReason reason,
102 const ModelTypeSet& types_to_config, 101 ModelTypeSet types_to_config,
103 const ModelSafeRoutingInfo& new_routing_info, 102 const ModelSafeRoutingInfo& new_routing_info,
104 const base::Closure& ready_task, 103 const base::Closure& ready_task,
105 const base::Closure& retry_task) OVERRIDE; 104 const base::Closure& retry_task) OVERRIDE;
106 virtual void AddObserver(SyncManager::Observer* observer) OVERRIDE; 105 virtual void AddObserver(SyncManager::Observer* observer) OVERRIDE;
107 virtual void RemoveObserver(SyncManager::Observer* observer) OVERRIDE; 106 virtual void RemoveObserver(SyncManager::Observer* observer) OVERRIDE;
108 virtual SyncStatus GetDetailedStatus() const OVERRIDE; 107 virtual SyncStatus GetDetailedStatus() const OVERRIDE;
109 virtual void SaveChanges() OVERRIDE; 108 virtual void SaveChanges() OVERRIDE;
110 virtual void StopSyncingForShutdown(const base::Closure& callback) OVERRIDE; 109 virtual void StopSyncingForShutdown(const base::Closure& callback) OVERRIDE;
111 virtual void ShutdownOnSyncThread() OVERRIDE; 110 virtual void ShutdownOnSyncThread() OVERRIDE;
112 virtual UserShare* GetUserShare() OVERRIDE; 111 virtual UserShare* GetUserShare() OVERRIDE;
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 // changing passphrases, and in general handles sync-specific interactions 381 // changing passphrases, and in general handles sync-specific interactions
383 // with the cryptographer. 382 // with the cryptographer.
384 scoped_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_; 383 scoped_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_;
385 384
386 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl); 385 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl);
387 }; 386 };
388 387
389 } // namespace syncer 388 } // namespace syncer
390 389
391 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_ 390 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_
OLDNEW
« no previous file with comments | « sync/internal_api/public/test/fake_sync_manager.h ('k') | sync/internal_api/sync_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698