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

Side by Side Diff: components/sync/engine/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
« no previous file with comments | « components/sync/engine/model_type_connector.h ('k') | components/sync/engine/sync_manager.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_SYNC_ENGINE_H_ 5 #ifndef COMPONENTS_SYNC_ENGINE_SYNC_ENGINE_H_
6 #define COMPONENTS_SYNC_ENGINE_SYNC_ENGINE_H_ 6 #define COMPONENTS_SYNC_ENGINE_SYNC_ENGINE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 // |saved_nigori_state| is optional nigori state to restore from a previous 88 // |saved_nigori_state| is optional nigori state to restore from a previous
89 // engine instance. May be null. 89 // engine instance. May be null.
90 virtual void Initialize(InitParams params) = 0; 90 virtual void Initialize(InitParams params) = 0;
91 91
92 // Inform the engine to trigger a sync cycle for |types|. 92 // Inform the engine to trigger a sync cycle for |types|.
93 virtual void TriggerRefresh(const ModelTypeSet& types) = 0; 93 virtual void TriggerRefresh(const ModelTypeSet& types) = 0;
94 94
95 // Updates the engine's SyncCredentials. 95 // Updates the engine's SyncCredentials.
96 virtual void UpdateCredentials(const SyncCredentials& credentials) = 0; 96 virtual void UpdateCredentials(const SyncCredentials& credentials) = 0;
97 97
98 // Switches sync engine into configuration mode. In this mode only initial
99 // data for newly enabled types is downloaded from server. No local changes
100 // are committed to server.
101 virtual void StartConfiguration() = 0;
102
103 // This starts the sync engine running a Syncer object to communicate with 98 // This starts the sync engine running a Syncer object to communicate with
104 // sync servers. Until this is called, no changes will leave or enter this 99 // sync servers. Until this is called, no changes will leave or enter this
105 // browser from the cloud / sync servers. 100 // browser from the cloud / sync servers.
106 virtual void StartSyncingWithServer() = 0; 101 virtual void StartSyncingWithServer() = 0;
107 102
108 // Asynchronously set a new passphrase for encryption. Note that it is an 103 // Asynchronously set a new passphrase for encryption. Note that it is an
109 // error to call SetEncryptionPassphrase under the following circumstances: 104 // error to call SetEncryptionPassphrase under the following circumstances:
110 // - An explicit passphrase has already been set 105 // - An explicit passphrase has already been set
111 // - |is_explicit| is true and we have pending keys. 106 // - |is_explicit| is true and we have pending keys.
112 // When |is_explicit| is false, a couple of things could happen: 107 // When |is_explicit| is false, a couple of things could happen:
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 // See SyncManager::OnCookieJarChanged. 196 // See SyncManager::OnCookieJarChanged.
202 virtual void OnCookieJarChanged(bool account_mismatch, bool empty_jar) = 0; 197 virtual void OnCookieJarChanged(bool account_mismatch, bool empty_jar) = 0;
203 198
204 private: 199 private:
205 DISALLOW_COPY_AND_ASSIGN(SyncEngine); 200 DISALLOW_COPY_AND_ASSIGN(SyncEngine);
206 }; 201 };
207 202
208 } // namespace syncer 203 } // namespace syncer
209 204
210 #endif // COMPONENTS_SYNC_ENGINE_SYNC_ENGINE_H_ 205 #endif // COMPONENTS_SYNC_ENGINE_SYNC_ENGINE_H_
OLDNEW
« no previous file with comments | « components/sync/engine/model_type_connector.h ('k') | components/sync/engine/sync_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698