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