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

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

Issue 21022018: Sessions API - previously Session Restore API. Supports restoring currently open foreign windows an… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: delete test. 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
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 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 662 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/profiles/chrome_browser_main_extra_parts_profiles.cc ('k') | chrome/browser/sync/profile_sync_service_mock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698