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

Side by Side Diff: components/sync/engine/fake_sync_engine.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 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
37 void StartSyncingWithServer() override; 35 void StartSyncingWithServer() override;
38 36
39 void SetEncryptionPassphrase(const std::string& passphrase, 37 void SetEncryptionPassphrase(const std::string& passphrase,
40 bool is_explicit) override; 38 bool is_explicit) override;
41 39
42 bool SetDecryptionPassphrase(const std::string& passphrase) override; 40 bool SetDecryptionPassphrase(const std::string& passphrase) override;
43 41
44 void StopSyncingForShutdown() override; 42 void StopSyncingForShutdown() override;
45 43
46 void Shutdown(ShutdownReason reason) override; 44 void Shutdown(ShutdownReason reason) override;
47 45
48 void ConfigureDataTypes(ConfigureParams params) override; 46 void ConfigureDataTypes(ConfigureParams params) override;
49 47
50 void RegisterDirectoryDataType(ModelType type, ModelSafeGroup group) override;
51
52 void UnregisterDirectoryDataType(ModelType type) override;
53
54 void EnableEncryptEverything() override; 48 void EnableEncryptEverything() override;
55 49
56 void ActivateDirectoryDataType(ModelType type, 50 void ActivateDirectoryDataType(ModelType type,
57 ModelSafeGroup group, 51 ModelSafeGroup group,
58 ChangeProcessor* change_processor) override; 52 ChangeProcessor* change_processor) override;
59 void DeactivateDirectoryDataType(ModelType type) override; 53 void DeactivateDirectoryDataType(ModelType type) override;
60 54
61 void ActivateNonBlockingDataType(ModelType type, 55 void ActivateNonBlockingDataType(ModelType type,
62 std::unique_ptr<ActivationContext>) override; 56 std::unique_ptr<ActivationContext>) override;
63 void DeactivateNonBlockingDataType(ModelType type) override; 57 void DeactivateNonBlockingDataType(ModelType type) override;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 89
96 void set_fail_initial_download(bool should_fail); 90 void set_fail_initial_download(bool should_fail);
97 91
98 private: 92 private:
99 bool fail_initial_download_; 93 bool fail_initial_download_;
100 }; 94 };
101 95
102 } // namespace syncer 96 } // namespace syncer
103 97
104 #endif // COMPONENTS_SYNC_ENGINE_FAKE_SYNC_ENGINE_H_ 98 #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