| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
| 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 398 // Returns whether sync is enabled. Sync can be enabled/disabled both | 398 // Returns whether sync is enabled. Sync can be enabled/disabled both |
| 399 // at compile time (e.g., on a per-OS basis) or at run time (e.g., | 399 // at compile time (e.g., on a per-OS basis) or at run time (e.g., |
| 400 // command-line switches). | 400 // command-line switches). |
| 401 // Profile::IsSyncAccessible() is probably a better signal than this function. | 401 // Profile::IsSyncAccessible() is probably a better signal than this function. |
| 402 // This function can be called from any thread, and the implementation doesn't | 402 // This function can be called from any thread, and the implementation doesn't |
| 403 // assume it's running on the UI thread. | 403 // assume it's running on the UI thread. |
| 404 static bool IsSyncEnabled(); | 404 static bool IsSyncEnabled(); |
| 405 | 405 |
| 406 // Returns whether sync is managed, i.e. controlled by configuration | 406 // Returns whether sync is managed, i.e. controlled by configuration |
| 407 // management. If so, the user is not allowed to configure sync. | 407 // management. If so, the user is not allowed to configure sync. |
| 408 bool IsManaged() const; | 408 virtual bool IsManaged() const; |
| 409 | 409 |
| 410 // SigninGlobalError::AuthStatusProvider implementation. | 410 // SigninGlobalError::AuthStatusProvider implementation. |
| 411 virtual GoogleServiceAuthError GetAuthStatus() const OVERRIDE; | 411 virtual GoogleServiceAuthError GetAuthStatus() const OVERRIDE; |
| 412 | 412 |
| 413 // syncer::UnrecoverableErrorHandler implementation. | 413 // syncer::UnrecoverableErrorHandler implementation. |
| 414 virtual void OnUnrecoverableError( | 414 virtual void OnUnrecoverableError( |
| 415 const tracked_objects::Location& from_here, | 415 const tracked_objects::Location& from_here, |
| 416 const std::string& message) OVERRIDE; | 416 const std::string& message) OVERRIDE; |
| 417 | 417 |
| 418 // Called when a datatype wishes to disable itself due to having hit an | 418 // Called when a datatype wishes to disable itself due to having hit an |
| (...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 903 syncer::WeakHandle<syncer::DataTypeDebugInfoListener> debug_info_listener_; | 903 syncer::WeakHandle<syncer::DataTypeDebugInfoListener> debug_info_listener_; |
| 904 | 904 |
| 905 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 905 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
| 906 }; | 906 }; |
| 907 | 907 |
| 908 bool ShouldShowActionOnUI( | 908 bool ShouldShowActionOnUI( |
| 909 const syncer::SyncProtocolError& error); | 909 const syncer::SyncProtocolError& error); |
| 910 | 910 |
| 911 | 911 |
| 912 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 912 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
| OLD | NEW |