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

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

Issue 2504433002: [Sync] Return nullptr for OpenTabsUIDelegate when PROXY_TABS is disabled. (Closed)
Patch Set: Gave test case an appropriate name. Created 4 years, 1 month 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/browser_sync/profile_sync_service_unittest.cc ('k') | no next file » | 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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 SyncBackendHost has told us it's ready to accept
204 // changes. This should only be used for sync's internal configuration logic 204 // changes. This should only be used for sync's internal configuration logic
205 // (such as deciding when to prompt for an encryption passphrase). 205 // (such as 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 sessions is not enabled or not 208 // Return the active OpenTabsUIDelegate. If open/proxy tabs is not enabled or
209 // 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
216 // Returns the time the current explicit passphrase (if any), was set. 216 // Returns the time the current explicit passphrase (if any), was set.
217 // If no secondary passphrase is in use, or no time is available, returns an 217 // If no secondary passphrase is in use, or no time is available, returns an
218 // unset base::Time. 218 // unset base::Time.
219 virtual base::Time GetExplicitPassphraseTime() const = 0; 219 virtual base::Time GetExplicitPassphraseTime() const = 0;
(...skipping 108 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
« no previous file with comments | « components/browser_sync/profile_sync_service_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698