| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <list> | 9 #include <list> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 SigninManager* signin, // Service takes ownership. | 153 SigninManager* signin, // Service takes ownership. |
| 154 const std::string& cros_user); | 154 const std::string& cros_user); |
| 155 virtual ~ProfileSyncService(); | 155 virtual ~ProfileSyncService(); |
| 156 | 156 |
| 157 // Initializes the object. This should be called every time an object of this | 157 // Initializes the object. This should be called every time an object of this |
| 158 // class is constructed. | 158 // class is constructed. |
| 159 void Initialize(); | 159 void Initialize(); |
| 160 | 160 |
| 161 void RegisterAuthNotifications(); | 161 void RegisterAuthNotifications(); |
| 162 | 162 |
| 163 // Return whether all sync tokens are loaded and | 163 // Same as AreCredentialsAvailable(false). |
| 164 // available for the backend to start up. | |
| 165 bool AreCredentialsAvailable(); | 164 bool AreCredentialsAvailable(); |
| 166 | 165 |
| 166 // Return whether all sync tokens are loaded and available for the backend to |
| 167 // start up. Also checks for OAuth login token if |check_oauth_login_token| is |
| 168 // true. |
| 169 bool AreCredentialsAvailable(bool check_oauth_login_token); |
| 170 |
| 167 // Registers a data type controller with the sync service. This | 171 // Registers a data type controller with the sync service. This |
| 168 // makes the data type controller available for use, it does not | 172 // makes the data type controller available for use, it does not |
| 169 // enable or activate the synchronization of the data type (see | 173 // enable or activate the synchronization of the data type (see |
| 170 // ActivateDataType). Takes ownership of the pointer. | 174 // ActivateDataType). Takes ownership of the pointer. |
| 171 void RegisterDataTypeController( | 175 void RegisterDataTypeController( |
| 172 browser_sync::DataTypeController* data_type_controller); | 176 browser_sync::DataTypeController* data_type_controller); |
| 173 | 177 |
| 174 // Returns the session model associator associated with this type, but only if | 178 // Returns the session model associator associated with this type, but only if |
| 175 // the associator is running. If it is doing anything else, it will return | 179 // the associator is running. If it is doing anything else, it will return |
| 176 // null. | 180 // null. |
| (...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 704 FailedDatatypesHandler failed_datatypes_handler_; | 708 FailedDatatypesHandler failed_datatypes_handler_; |
| 705 | 709 |
| 706 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 710 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
| 707 }; | 711 }; |
| 708 | 712 |
| 709 bool ShouldShowActionOnUI( | 713 bool ShouldShowActionOnUI( |
| 710 const browser_sync::SyncProtocolError& error); | 714 const browser_sync::SyncProtocolError& error); |
| 711 | 715 |
| 712 | 716 |
| 713 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 717 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
| OLD | NEW |