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

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
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.
skym 2016/12/02 20:54:55 SyncEngine actually works great here. Could probab
maxbogue 2016/12/02 23:59:27 Removed the second sentence.
204 // changes. This should only be used for sync's internal configuration logic 204 // This should only be used for sync's internal configuration logic (such as
205 // (such as deciding when to prompt for an encryption passphrase). 205 // deciding when to prompt for an encryption passphrase).
206 virtual bool IsBackendInitialized() const = 0; 206 virtual bool IsBackendInitialized() const = 0;
207 207
208 // Return the active OpenTabsUIDelegate. If open/proxy tabs is not enabled or 208 // Return the active OpenTabsUIDelegate. If open/proxy tabs is not enabled or
209 // not currently syncing, returns nullptr. 209 // not currently syncing, returns nullptr.
210 virtual sync_sessions::OpenTabsUIDelegate* GetOpenTabsUIDelegate() = 0; 210 virtual sync_sessions::OpenTabsUIDelegate* GetOpenTabsUIDelegate() = 0;
211 211
212 // Returns true if OnPassphraseRequired has been called for decryption and 212 // Returns true if OnPassphraseRequired has been called for decryption and
213 // we have an encrypted data type enabled. 213 // we have an encrypted data type enabled.
214 virtual bool IsPassphraseRequiredForDecryption() const = 0; 214 virtual bool IsPassphraseRequiredForDecryption() const = 0;
215 215
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
328 protected: 328 protected:
329 SyncService() {} 329 SyncService() {}
330 330
331 private: 331 private:
332 DISALLOW_COPY_AND_ASSIGN(SyncService); 332 DISALLOW_COPY_AND_ASSIGN(SyncService);
333 }; 333 };
334 334
335 } // namespace syncer 335 } // namespace syncer
336 336
337 #endif // COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_H_ 337 #endif // COMPONENTS_SYNC_DRIVER_SYNC_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698