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

Side by Side Diff: components/sync/driver/sync_service.h

Issue 2533083002: [Sync] SyncEngine refactor part 1: interfaces. (Closed)
Patch Set: Rebase. Created 4 years 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/driver/sync_frontend.cc ('k') | components/sync/engine/fake_sync_engine.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_SYNC_SERVICE_H_ 5 #ifndef COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_H_
6 #define COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_H_ 6 #define COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 // Used by tests. 193 // Used by tests.
194 virtual bool IsSetupInProgress() const = 0; 194 virtual bool IsSetupInProgress() const = 0;
195 195
196 // Whether the data types active for the current mode have finished 196 // Whether the data types active for the current mode have finished
197 // configuration. 197 // configuration.
198 virtual bool ConfigurationDone() const = 0; 198 virtual bool ConfigurationDone() const = 0;
199 199
200 virtual const GoogleServiceAuthError& GetAuthError() const = 0; 200 virtual const GoogleServiceAuthError& GetAuthError() const = 0;
201 virtual bool HasUnrecoverableError() const = 0; 201 virtual bool HasUnrecoverableError() const = 0;
202 202
203 // Returns true if the SyncBackendHost has told us it's ready to accept 203 // Returns true if the SyncEngine has told us it's ready to accept changes.
204 // changes. This should only be used for sync's internal configuration logic
205 // (such as deciding when to prompt for an encryption passphrase).
206 virtual bool IsBackendInitialized() const = 0; 204 virtual bool IsBackendInitialized() const = 0;
207 205
208 // Return the active OpenTabsUIDelegate. If open/proxy tabs is not enabled or 206 // Return the active OpenTabsUIDelegate. If open/proxy tabs is not enabled or
209 // not currently syncing, returns nullptr. 207 // not currently syncing, returns nullptr.
210 virtual sync_sessions::OpenTabsUIDelegate* GetOpenTabsUIDelegate() = 0; 208 virtual sync_sessions::OpenTabsUIDelegate* GetOpenTabsUIDelegate() = 0;
211 209
212 // Returns true if OnPassphraseRequired has been called for decryption and 210 // Returns true if OnPassphraseRequired has been called for decryption and
213 // we have an encrypted data type enabled. 211 // we have an encrypted data type enabled.
214 virtual bool IsPassphraseRequiredForDecryption() const = 0; 212 virtual bool IsPassphraseRequiredForDecryption() const = 0;
215 213
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 protected: 326 protected:
329 SyncService() {} 327 SyncService() {}
330 328
331 private: 329 private:
332 DISALLOW_COPY_AND_ASSIGN(SyncService); 330 DISALLOW_COPY_AND_ASSIGN(SyncService);
333 }; 331 };
334 332
335 } // namespace syncer 333 } // namespace syncer
336 334
337 #endif // COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_H_ 335 #endif // COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_H_
OLDNEW
« no previous file with comments | « components/sync/driver/sync_frontend.cc ('k') | components/sync/engine/fake_sync_engine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698