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

Side by Side Diff: components/browser_sync/profile_sync_service.h

Issue 2458013002: [Sync] Rename ModelTypeService to ModelTypeSyncBridge. (Closed)
Patch Set: s/SetBridgeError/ErrorOnNextCall Created 4 years, 1 month 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
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 COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 5 #ifndef COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
6 #define COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 6 #define COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 338
339 void RegisterAuthNotifications(); 339 void RegisterAuthNotifications();
340 void UnregisterAuthNotifications(); 340 void UnregisterAuthNotifications();
341 341
342 // Returns the SyncableService for syncer::SESSIONS. 342 // Returns the SyncableService for syncer::SESSIONS.
343 virtual syncer::SyncableService* GetSessionsSyncableService(); 343 virtual syncer::SyncableService* GetSessionsSyncableService();
344 344
345 // Returns the SyncableService for syncer::DEVICE_INFO. 345 // Returns the SyncableService for syncer::DEVICE_INFO.
346 virtual syncer::SyncableService* GetDeviceInfoSyncableService(); 346 virtual syncer::SyncableService* GetDeviceInfoSyncableService();
347 347
348 // Returns the ModelTypeService for syncer::DEVICE_INFO. 348 // Returns the ModelTypeSyncBridge for syncer::DEVICE_INFO.
349 virtual syncer::ModelTypeService* GetDeviceInfoService(); 349 virtual syncer::ModelTypeSyncBridge* GetDeviceInfoService();
350 350
351 // Returns synced devices tracker. 351 // Returns synced devices tracker.
352 virtual syncer::DeviceInfoTracker* GetDeviceInfoTracker() const; 352 virtual syncer::DeviceInfoTracker* GetDeviceInfoTracker() const;
353 353
354 // Fills state_map with a map of current data types that are possible to 354 // Fills state_map with a map of current data types that are possible to
355 // sync, as well as their states. 355 // sync, as well as their states.
356 void GetDataTypeControllerStates( 356 void GetDataTypeControllerStates(
357 syncer::DataTypeController::StateMap* state_map) const; 357 syncer::DataTypeController::StateMap* state_map) const;
358 358
359 // Called when asynchronous session restore has completed. 359 // Called when asynchronous session restore has completed.
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after
951 base::Time token_receive_time_; 951 base::Time token_receive_time_;
952 GoogleServiceAuthError last_get_token_error_; 952 GoogleServiceAuthError last_get_token_error_;
953 base::Time next_token_request_time_; 953 base::Time next_token_request_time_;
954 954
955 // The gaia cookie manager. Used for monitoring cookie jar changes to detect 955 // The gaia cookie manager. Used for monitoring cookie jar changes to detect
956 // when the user signs out of the content area. 956 // when the user signs out of the content area.
957 GaiaCookieManagerService* const gaia_cookie_manager_service_; 957 GaiaCookieManagerService* const gaia_cookie_manager_service_;
958 958
959 std::unique_ptr<syncer::LocalDeviceInfoProvider> local_device_; 959 std::unique_ptr<syncer::LocalDeviceInfoProvider> local_device_;
960 960
961 // Locally owned SyncableService and ModelTypeService implementations. 961 // Locally owned SyncableService and ModelTypeSyncBridge implementations.
962 std::unique_ptr<sync_sessions::SessionsSyncManager> sessions_sync_manager_; 962 std::unique_ptr<sync_sessions::SessionsSyncManager> sessions_sync_manager_;
963 std::unique_ptr<syncer::DeviceInfoSyncService> device_info_sync_service_; 963 std::unique_ptr<syncer::DeviceInfoSyncService> device_info_sync_service_;
964 std::unique_ptr<syncer::DeviceInfoService> device_info_service_; 964 std::unique_ptr<syncer::DeviceInfoService> device_info_service_;
965 965
966 std::unique_ptr<syncer::NetworkResources> network_resources_; 966 std::unique_ptr<syncer::NetworkResources> network_resources_;
967 967
968 StartBehavior start_behavior_; 968 StartBehavior start_behavior_;
969 std::unique_ptr<syncer::StartupController> startup_controller_; 969 std::unique_ptr<syncer::StartupController> startup_controller_;
970 970
971 // The full path to the sync data directory. 971 // The full path to the sync data directory.
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
1008 base::WeakPtrFactory<ProfileSyncService> weak_factory_; 1008 base::WeakPtrFactory<ProfileSyncService> weak_factory_;
1009 1009
1010 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); 1010 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService);
1011 }; 1011 };
1012 1012
1013 bool ShouldShowActionOnUI(const syncer::SyncProtocolError& error); 1013 bool ShouldShowActionOnUI(const syncer::SyncProtocolError& error);
1014 1014
1015 } // namespace browser_sync 1015 } // namespace browser_sync
1016 1016
1017 #endif // COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 1017 #endif // COMPONENTS_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/test/integration/two_client_uss_sync_test.cc ('k') | components/browser_sync/profile_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698