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

Side by Side Diff: components/sync/engine_impl/sync_manager_impl.h

Issue 2644373003: Revert of [Sync] Make directory types registration explicit in ModelTypeRegistry (Closed)
Patch Set: Created 3 years, 11 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 COMPONENTS_SYNC_ENGINE_IMPL_SYNC_MANAGER_IMPL_H_ 5 #ifndef COMPONENTS_SYNC_ENGINE_IMPL_SYNC_MANAGER_IMPL_H_
6 #define COMPONENTS_SYNC_ENGINE_IMPL_SYNC_MANAGER_IMPL_H_ 6 #define COMPONENTS_SYNC_ENGINE_IMPL_SYNC_MANAGER_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 // SyncManager implementation. 65 // SyncManager implementation.
66 void Init(InitArgs* args) override; 66 void Init(InitArgs* args) override;
67 ModelTypeSet InitialSyncEndedTypes() override; 67 ModelTypeSet InitialSyncEndedTypes() override;
68 ModelTypeSet GetTypesWithEmptyProgressMarkerToken( 68 ModelTypeSet GetTypesWithEmptyProgressMarkerToken(
69 ModelTypeSet types) override; 69 ModelTypeSet types) override;
70 void PurgePartiallySyncedTypes() override; 70 void PurgePartiallySyncedTypes() override;
71 void PurgeDisabledTypes(ModelTypeSet to_purge, 71 void PurgeDisabledTypes(ModelTypeSet to_purge,
72 ModelTypeSet to_journal, 72 ModelTypeSet to_journal,
73 ModelTypeSet to_unapply) override; 73 ModelTypeSet to_unapply) override;
74 void UpdateCredentials(const SyncCredentials& credentials) override; 74 void UpdateCredentials(const SyncCredentials& credentials) override;
75 void StartSyncingNormally(base::Time last_poll_time) override; 75 void StartSyncingNormally(const ModelSafeRoutingInfo& routing_info,
76 void StartConfiguration() override; 76 base::Time last_poll_time) override;
77 void ConfigureSyncer(ConfigureReason reason, 77 void ConfigureSyncer(ConfigureReason reason,
78 ModelTypeSet to_download, 78 ModelTypeSet to_download,
79 const ModelSafeRoutingInfo& new_routing_info,
79 const base::Closure& ready_task, 80 const base::Closure& ready_task,
80 const base::Closure& retry_task) override; 81 const base::Closure& retry_task) override;
81 void SetInvalidatorEnabled(bool invalidator_enabled) override; 82 void SetInvalidatorEnabled(bool invalidator_enabled) override;
82 void OnIncomingInvalidation( 83 void OnIncomingInvalidation(
83 ModelType type, 84 ModelType type,
84 std::unique_ptr<InvalidationInterface> invalidation) override; 85 std::unique_ptr<InvalidationInterface> invalidation) override;
85 void AddObserver(SyncManager::Observer* observer) override; 86 void AddObserver(SyncManager::Observer* observer) override;
86 void RemoveObserver(SyncManager::Observer* observer) override; 87 void RemoveObserver(SyncManager::Observer* observer) override;
87 SyncStatus GetDetailedStatus() const override; 88 SyncStatus GetDetailedStatus() const override;
88 void SaveChanges() override; 89 void SaveChanges() override;
89 void ShutdownOnSyncThread(ShutdownReason reason) override; 90 void ShutdownOnSyncThread(ShutdownReason reason) override;
90 UserShare* GetUserShare() override; 91 UserShare* GetUserShare() override;
91 ModelTypeConnector* GetModelTypeConnector() override;
92 std::unique_ptr<ModelTypeConnector> GetModelTypeConnectorProxy() override; 92 std::unique_ptr<ModelTypeConnector> GetModelTypeConnectorProxy() override;
93 const std::string cache_guid() override; 93 const std::string cache_guid() override;
94 bool ReceivedExperiment(Experiments* experiments) override; 94 bool ReceivedExperiment(Experiments* experiments) override;
95 bool HasUnsyncedItems() override; 95 bool HasUnsyncedItems() override;
96 SyncEncryptionHandler* GetEncryptionHandler() override; 96 SyncEncryptionHandler* GetEncryptionHandler() override;
97 std::vector<std::unique_ptr<ProtocolEvent>> GetBufferedProtocolEvents() 97 std::vector<std::unique_ptr<ProtocolEvent>> GetBufferedProtocolEvents()
98 override; 98 override;
99 void RegisterDirectoryTypeDebugInfoObserver( 99 void RegisterDirectoryTypeDebugInfoObserver(
100 TypeDebugInfoObserver* observer) override; 100 TypeDebugInfoObserver* observer) override;
101 void UnregisterDirectoryTypeDebugInfoObserver( 101 void UnregisterDirectoryTypeDebugInfoObserver(
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 std::unique_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_; 323 std::unique_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_;
324 324
325 base::WeakPtrFactory<SyncManagerImpl> weak_ptr_factory_; 325 base::WeakPtrFactory<SyncManagerImpl> weak_ptr_factory_;
326 326
327 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl); 327 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl);
328 }; 328 };
329 329
330 } // namespace syncer 330 } // namespace syncer
331 331
332 #endif // COMPONENTS_SYNC_ENGINE_IMPL_SYNC_MANAGER_IMPL_H_ 332 #endif // COMPONENTS_SYNC_ENGINE_IMPL_SYNC_MANAGER_IMPL_H_
OLDNEW
« no previous file with comments | « components/sync/engine_impl/model_type_registry_unittest.cc ('k') | components/sync/engine_impl/sync_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698