| 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 #include <utility> | 10 #include <utility> |
| (...skipping 830 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 841 // Indicates if this is the first time sync is being configured. This value | 841 // Indicates if this is the first time sync is being configured. This value |
| 842 // is equal to !HasSyncSetupCompleted() at the time of OnBackendInitialized(). | 842 // is equal to !HasSyncSetupCompleted() at the time of OnBackendInitialized(). |
| 843 bool is_first_time_sync_configure_; | 843 bool is_first_time_sync_configure_; |
| 844 | 844 |
| 845 // List of available data type controllers. | 845 // List of available data type controllers. |
| 846 browser_sync::DataTypeController::TypeMap data_type_controllers_; | 846 browser_sync::DataTypeController::TypeMap data_type_controllers_; |
| 847 | 847 |
| 848 // Whether the SyncBackendHost has been initialized. | 848 // Whether the SyncBackendHost has been initialized. |
| 849 bool backend_initialized_; | 849 bool backend_initialized_; |
| 850 | 850 |
| 851 // Set when sync receives DISABLED_BY_ADMIN error from server. Prevents |
| 852 // ProfileSyncService from starting backend till browser restarted or user |
| 853 // signed out. |
| 854 bool sync_disabled_by_admin_; |
| 855 |
| 851 // Set to true if a signin has completed but we're still waiting for the | 856 // Set to true if a signin has completed but we're still waiting for the |
| 852 // backend to refresh its credentials. | 857 // backend to refresh its credentials. |
| 853 bool is_auth_in_progress_; | 858 bool is_auth_in_progress_; |
| 854 | 859 |
| 855 // Encapsulates user signin - used to set/get the user's authenticated | 860 // Encapsulates user signin - used to set/get the user's authenticated |
| 856 // email address. | 861 // email address. |
| 857 SigninManagerBase* signin_; | 862 SigninManagerBase* signin_; |
| 858 | 863 |
| 859 // Information describing an unrecoverable error. | 864 // Information describing an unrecoverable error. |
| 860 UnrecoverableErrorReason unrecoverable_error_reason_; | 865 UnrecoverableErrorReason unrecoverable_error_reason_; |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 945 syncer::WeakHandle<syncer::DataTypeDebugInfoListener> debug_info_listener_; | 950 syncer::WeakHandle<syncer::DataTypeDebugInfoListener> debug_info_listener_; |
| 946 | 951 |
| 947 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 952 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
| 948 }; | 953 }; |
| 949 | 954 |
| 950 bool ShouldShowActionOnUI( | 955 bool ShouldShowActionOnUI( |
| 951 const syncer::SyncProtocolError& error); | 956 const syncer::SyncProtocolError& error); |
| 952 | 957 |
| 953 | 958 |
| 954 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 959 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
| OLD | NEW |