Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(997)

Side by Side Diff: chrome/browser/sync/profile_sync_service.h

Issue 22706006: Implementation of the DeviceInfo get API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: For try runs Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/sync/glue/device_info.cc ('k') | chrome/browser/sync/profile_sync_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/device_info.cc ('k') | chrome/browser/sync/profile_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698