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

Side by Side Diff: components/sync/driver/glue/sync_backend_host_impl.h

Issue 2641523004: [Sync] Make directory types registration explicit in ModelTypeRegistry (Closed)
Patch Set: Address comments 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_DRIVER_GLUE_SYNC_BACKEND_HOST_IMPL_H_ 5 #ifndef COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_IMPL_H_
6 #define COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_IMPL_H_ 6 #define COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 SyncClient* sync_client, 53 SyncClient* sync_client,
54 invalidation::InvalidationService* invalidator, 54 invalidation::InvalidationService* invalidator,
55 const base::WeakPtr<SyncPrefs>& sync_prefs, 55 const base::WeakPtr<SyncPrefs>& sync_prefs,
56 const base::FilePath& sync_data_folder); 56 const base::FilePath& sync_data_folder);
57 ~SyncBackendHostImpl() override; 57 ~SyncBackendHostImpl() override;
58 58
59 // SyncEngine implementation. 59 // SyncEngine implementation.
60 void Initialize(InitParams params) override; 60 void Initialize(InitParams params) override;
61 void TriggerRefresh(const ModelTypeSet& types) override; 61 void TriggerRefresh(const ModelTypeSet& types) override;
62 void UpdateCredentials(const SyncCredentials& credentials) override; 62 void UpdateCredentials(const SyncCredentials& credentials) override;
63 void StartConfiguration() override;
63 void StartSyncingWithServer() override; 64 void StartSyncingWithServer() override;
64 void SetEncryptionPassphrase(const std::string& passphrase, 65 void SetEncryptionPassphrase(const std::string& passphrase,
65 bool is_explicit) override; 66 bool is_explicit) override;
66 bool SetDecryptionPassphrase(const std::string& passphrase) override 67 bool SetDecryptionPassphrase(const std::string& passphrase) override
67 WARN_UNUSED_RESULT; 68 WARN_UNUSED_RESULT;
68 void StopSyncingForShutdown() override; 69 void StopSyncingForShutdown() override;
69 void Shutdown(ShutdownReason reason) override; 70 void Shutdown(ShutdownReason reason) override;
70 void ConfigureDataTypes(ConfigureParams params) override; 71 void ConfigureDataTypes(ConfigureParams params) override;
72 void RegisterDirectoryDataType(ModelType type, ModelSafeGroup group) override;
73 void UnregisterDirectoryDataType(ModelType type) override;
71 void ActivateDirectoryDataType(ModelType type, 74 void ActivateDirectoryDataType(ModelType type,
72 ModelSafeGroup group, 75 ModelSafeGroup group,
73 ChangeProcessor* change_processor) override; 76 ChangeProcessor* change_processor) override;
74 void DeactivateDirectoryDataType(ModelType type) override; 77 void DeactivateDirectoryDataType(ModelType type) override;
75 void ActivateNonBlockingDataType(ModelType type, 78 void ActivateNonBlockingDataType(ModelType type,
76 std::unique_ptr<ActivationContext>) override; 79 std::unique_ptr<ActivationContext>) override;
77 void DeactivateNonBlockingDataType(ModelType type) override; 80 void DeactivateNonBlockingDataType(ModelType type) override;
78 void EnableEncryptEverything() override; 81 void EnableEncryptEverything() override;
79 UserShare* GetUserShare() const override; 82 UserShare* GetUserShare() const override;
80 Status GetDetailedStatus() override; 83 Status GetDetailedStatus() override;
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 base::ThreadChecker thread_checker_; 298 base::ThreadChecker thread_checker_;
296 299
297 base::WeakPtrFactory<SyncBackendHostImpl> weak_ptr_factory_; 300 base::WeakPtrFactory<SyncBackendHostImpl> weak_ptr_factory_;
298 301
299 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostImpl); 302 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostImpl);
300 }; 303 };
301 304
302 } // namespace syncer 305 } // namespace syncer
303 306
304 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_IMPL_H_ 307 #endif // COMPONENTS_SYNC_DRIVER_GLUE_SYNC_BACKEND_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « components/sync/driver/glue/sync_backend_host_core.cc ('k') | components/sync/driver/glue/sync_backend_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698