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 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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; |
283 | 283 |
284 // Gets the device info for all devices signed into the account associated | 284 // Gets the device info for all devices signed into the account associated |
285 // with this profile. | 285 // with this profile. |
286 virtual ScopedVector<browser_sync::DeviceInfo> GetAllSignedInDevices() const; | 286 virtual ScopedVector<browser_sync::DeviceInfo> GetAllSignedinDevices() const; |
287 | 287 |
288 // Fills state_map with a map of current data types that are possible to | 288 // Fills state_map with a map of current data types that are possible to |
289 // sync, as well as their states. | 289 // sync, as well as their states. |
290 void GetDataTypeControllerStates( | 290 void GetDataTypeControllerStates( |
291 browser_sync::DataTypeController::StateMap* state_map) const; | 291 browser_sync::DataTypeController::StateMap* state_map) const; |
292 | 292 |
293 // Disables sync for user. Use ShowLoginDialog to enable. | 293 // Disables sync for user. Use ShowLoginDialog to enable. |
294 virtual void DisableForUser(); | 294 virtual void DisableForUser(); |
295 | 295 |
296 // SyncFrontend implementation. | 296 // SyncFrontend implementation. |
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
945 net::BackoffEntry request_access_token_backoff_; | 945 net::BackoffEntry request_access_token_backoff_; |
946 | 946 |
947 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); | 947 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); |
948 }; | 948 }; |
949 | 949 |
950 bool ShouldShowActionOnUI( | 950 bool ShouldShowActionOnUI( |
951 const syncer::SyncProtocolError& error); | 951 const syncer::SyncProtocolError& error); |
952 | 952 |
953 | 953 |
954 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ | 954 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ |
OLD | NEW |