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

Side by Side Diff: components/sync/engine/fake_sync_engine.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_ENGINE_FAKE_SYNC_ENGINE_H_ 5 #ifndef COMPONENTS_SYNC_ENGINE_FAKE_SYNC_ENGINE_H_
6 #define COMPONENTS_SYNC_ENGINE_FAKE_SYNC_ENGINE_H_ 6 #define COMPONENTS_SYNC_ENGINE_FAKE_SYNC_ENGINE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 14 matching lines...) Expand all
25 public: 25 public:
26 FakeSyncEngine(); 26 FakeSyncEngine();
27 ~FakeSyncEngine() override; 27 ~FakeSyncEngine() override;
28 28
29 void Initialize(InitParams params) override; 29 void Initialize(InitParams params) override;
30 30
31 void TriggerRefresh(const ModelTypeSet& types) override; 31 void TriggerRefresh(const ModelTypeSet& types) override;
32 32
33 void UpdateCredentials(const SyncCredentials& credentials) override; 33 void UpdateCredentials(const SyncCredentials& credentials) override;
34 34
35 void StartConfiguration() override;
36
35 void StartSyncingWithServer() override; 37 void StartSyncingWithServer() override;
36 38
37 void SetEncryptionPassphrase(const std::string& passphrase, 39 void SetEncryptionPassphrase(const std::string& passphrase,
38 bool is_explicit) override; 40 bool is_explicit) override;
39 41
40 bool SetDecryptionPassphrase(const std::string& passphrase) override; 42 bool SetDecryptionPassphrase(const std::string& passphrase) override;
41 43
42 void StopSyncingForShutdown() override; 44 void StopSyncingForShutdown() override;
43 45
44 void Shutdown(ShutdownReason reason) override; 46 void Shutdown(ShutdownReason reason) override;
45 47
46 void ConfigureDataTypes(ConfigureParams params) override; 48 void ConfigureDataTypes(ConfigureParams params) override;
47 49
50 void RegisterDirectoryDataType(ModelType type, ModelSafeGroup group) override;
51
52 void UnregisterDirectoryDataType(ModelType type) override;
53
48 void EnableEncryptEverything() override; 54 void EnableEncryptEverything() override;
49 55
50 void ActivateDirectoryDataType(ModelType type, 56 void ActivateDirectoryDataType(ModelType type,
51 ModelSafeGroup group, 57 ModelSafeGroup group,
52 ChangeProcessor* change_processor) override; 58 ChangeProcessor* change_processor) override;
53 void DeactivateDirectoryDataType(ModelType type) override; 59 void DeactivateDirectoryDataType(ModelType type) override;
54 60
55 void ActivateNonBlockingDataType(ModelType type, 61 void ActivateNonBlockingDataType(ModelType type,
56 std::unique_ptr<ActivationContext>) override; 62 std::unique_ptr<ActivationContext>) override;
57 void DeactivateNonBlockingDataType(ModelType type) override; 63 void DeactivateNonBlockingDataType(ModelType type) override;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 95
90 void set_fail_initial_download(bool should_fail); 96 void set_fail_initial_download(bool should_fail);
91 97
92 private: 98 private:
93 bool fail_initial_download_; 99 bool fail_initial_download_;
94 }; 100 };
95 101
96 } // namespace syncer 102 } // namespace syncer
97 103
98 #endif // COMPONENTS_SYNC_ENGINE_FAKE_SYNC_ENGINE_H_ 104 #endif // COMPONENTS_SYNC_ENGINE_FAKE_SYNC_ENGINE_H_
OLDNEW
« no previous file with comments | « components/sync/engine/fake_model_type_connector.cc ('k') | components/sync/engine/fake_sync_engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698