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

Side by Side Diff: components/sync_driver/device_info_service.h

Issue 1458013003: [Sync] USS: Add EntityChange. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@uss-data
Patch Set: s/client_tag/client_key/ etc Created 5 years 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
« no previous file with comments | « no previous file | components/sync_driver/device_info_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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_SYNC_DRIVER_DEVICE_INFO_SERVICE_H_ 5 #ifndef COMPONENTS_SYNC_DRIVER_DEVICE_INFO_SERVICE_H_
6 #define COMPONENTS_SYNC_DRIVER_DEVICE_INFO_SERVICE_H_ 6 #define COMPONENTS_SYNC_DRIVER_DEVICE_INFO_SERVICE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 29 matching lines...) Expand all
40 sync_driver::LocalDeviceInfoProvider* local_device_info_provider); 40 sync_driver::LocalDeviceInfoProvider* local_device_info_provider);
41 ~DeviceInfoService() override; 41 ~DeviceInfoService() override;
42 42
43 // ModelTypeService implementation. 43 // ModelTypeService implementation.
44 syncer_v2::MetadataChanges* CreateMetadataChanges() override; 44 syncer_v2::MetadataChanges* CreateMetadataChanges() override;
45 syncer::SyncError MergeSyncData( 45 syncer::SyncError MergeSyncData(
46 syncer_v2::MetadataChanges* metadata_changes, 46 syncer_v2::MetadataChanges* metadata_changes,
47 syncer_v2::EntityDataList entity_data_list) override; 47 syncer_v2::EntityDataList entity_data_list) override;
48 syncer::SyncError ApplySyncChanges( 48 syncer::SyncError ApplySyncChanges(
49 syncer_v2::MetadataChanges* metadata_changes, 49 syncer_v2::MetadataChanges* metadata_changes,
50 syncer_v2::EntityDataList entity_data_list) override; 50 syncer_v2::EntityChangeList entity_changes) override;
51 void LoadMetadata(MetadataCallback callback) override; 51 void LoadMetadata(MetadataCallback callback) override;
52 void GetData(ClientKeyList client_keys, DataCallback callback) override; 52 void GetData(ClientKeyList client_keys, DataCallback callback) override;
53 void GetAllData(DataCallback callback) override; 53 void GetAllData(DataCallback callback) override;
54 std::string GetClientTag(const syncer_v2::EntityData* entity_data) override; 54 std::string GetClientTag(const syncer_v2::EntityData* entity_data) override;
55 55
56 // DeviceInfoTracker implementation. 56 // DeviceInfoTracker implementation.
57 bool IsSyncing() const override; 57 bool IsSyncing() const override;
58 scoped_ptr<sync_driver::DeviceInfo> GetDeviceInfo( 58 scoped_ptr<sync_driver::DeviceInfo> GetDeviceInfo(
59 const std::string& client_id) const override; 59 const std::string& client_id) const override;
60 ScopedVector<sync_driver::DeviceInfo> GetAllDeviceInfo() const override; 60 ScopedVector<sync_driver::DeviceInfo> GetAllDeviceInfo() const override;
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 base::ObserverList<Observer, true> observers_; 116 base::ObserverList<Observer, true> observers_;
117 117
118 scoped_ptr<sync_driver::LocalDeviceInfoProvider::Subscription> subscription_; 118 scoped_ptr<sync_driver::LocalDeviceInfoProvider::Subscription> subscription_;
119 119
120 DISALLOW_COPY_AND_ASSIGN(DeviceInfoService); 120 DISALLOW_COPY_AND_ASSIGN(DeviceInfoService);
121 }; 121 };
122 122
123 } // namespace sync_driver_v2 123 } // namespace sync_driver_v2
124 124
125 #endif // COMPONENTS_SYNC_DRIVER_DEVICE_INFO_SERVICE_H_ 125 #endif // COMPONENTS_SYNC_DRIVER_DEVICE_INFO_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | components/sync_driver/device_info_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698