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 <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 // enable or activate the synchronization of the data type (see | 262 // enable or activate the synchronization of the data type (see |
263 // ActivateDataType). Takes ownership of the pointer. | 263 // ActivateDataType). Takes ownership of the pointer. |
264 void RegisterDataTypeController( | 264 void RegisterDataTypeController( |
265 browser_sync::DataTypeController* data_type_controller); | 265 browser_sync::DataTypeController* data_type_controller); |
266 | 266 |
267 // Returns the session model associator associated with this type, but only if | 267 // Returns the session model associator associated with this type, but only if |
268 // the associator is running. If it is doing anything else, it will return | 268 // the associator is running. If it is doing anything else, it will return |
269 // null. | 269 // null. |
270 // TODO(zea): Figure out a better way to expose this to the UI elements that | 270 // TODO(zea): Figure out a better way to expose this to the UI elements that |
271 // need it. | 271 // need it. |
272 browser_sync::SessionModelAssociator* GetSessionModelAssociator(); | 272 virtual browser_sync::SessionModelAssociator* GetSessionModelAssociator(); |
273 | 273 |
274 // Returns sync's representation of the local device info. | 274 // Returns sync's representation of the local device info. |
275 // Return value is an empty scoped_ptr if the device info is unavailable. | 275 // Return value is an empty scoped_ptr if the device info is unavailable. |
276 virtual scoped_ptr<browser_sync::DeviceInfo> GetLocalDeviceInfo() const; | 276 virtual scoped_ptr<browser_sync::DeviceInfo> GetLocalDeviceInfo() const; |
277 | 277 |
278 // Returns sync's representation of the device info for a client identified | 278 // Returns sync's representation of the device info for a client identified |
279 // by |client_id|. Return value is an empty scoped ptr if the device info | 279 // by |client_id|. Return value is an empty scoped ptr if the device info |
280 // is unavailable. | 280 // is unavailable. |
281 virtual scoped_ptr<browser_sync::DeviceInfo> GetDeviceInfo( | 281 virtual scoped_ptr<browser_sync::DeviceInfo> GetDeviceInfo( |
282 const std::string& client_id) const; | 282 const std::string& client_id) const; |
(...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
947 net::BackoffEntry request_access_token_backoff_; | 947 net::BackoffEntry request_access_token_backoff_; |
948 | 948 |
949 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 949 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
950 }; | 950 }; |
951 | 951 |
952 bool ShouldShowActionOnUI( | 952 bool ShouldShowActionOnUI( |
953 const syncer::SyncProtocolError& error); | 953 const syncer::SyncProtocolError& error); |
954 | 954 |
955 | 955 |
956 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 956 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
OLD | NEW |