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

Side by Side Diff: components/sync/device_info/device_info_sync_bridge.h

Issue 2856933005: [Sync] Create UserEventSyncBridge. (Closed)
Patch Set: Removing autocomplete_sync_bridge_unittest.cc from cl. Created 3 years, 7 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
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_DEVICE_INFO_DEVICE_INFO_SYNC_BRIDGE_H_ 5 #ifndef COMPONENTS_SYNC_DEVICE_INFO_DEVICE_INFO_SYNC_BRIDGE_H_
6 #define COMPONENTS_SYNC_DEVICE_INFO_DEVICE_INFO_SYNC_BRIDGE_H_ 6 #define COMPONENTS_SYNC_DEVICE_INFO_DEVICE_INFO_SYNC_BRIDGE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 121
122 ClientIdToSpecifics all_data_; 122 ClientIdToSpecifics all_data_;
123 123
124 // Registered observers, not owned. 124 // Registered observers, not owned.
125 base::ObserverList<Observer, true> observers_; 125 base::ObserverList<Observer, true> observers_;
126 126
127 // Used to listen for provider initialization. If the provider is already 127 // Used to listen for provider initialization. If the provider is already
128 // initialized during our constructor then the subscription is never used. 128 // initialized during our constructor then the subscription is never used.
129 std::unique_ptr<LocalDeviceInfoProvider::Subscription> subscription_; 129 std::unique_ptr<LocalDeviceInfoProvider::Subscription> subscription_;
130 130
131 // In charge of actually persiting changes to disk, or loading previous data. 131 // In charge of actually persisting changes to disk, or loading previous data.
132 std::unique_ptr<ModelTypeStore> store_; 132 std::unique_ptr<ModelTypeStore> store_;
133 133
134 // If |local_device_info_provider_| has initialized. 134 // If |local_device_info_provider_| has initialized.
135 bool has_provider_initialized_ = false; 135 bool has_provider_initialized_ = false;
136 // If data has been loaded from the store. 136 // If data has been loaded from the store.
137 bool has_data_loaded_ = false; 137 bool has_data_loaded_ = false;
138 138
139 // Used to update our local device info once every pulse interval. 139 // Used to update our local device info once every pulse interval.
140 base::OneShotTimer pulse_timer_; 140 base::OneShotTimer pulse_timer_;
141 141
142 DISALLOW_COPY_AND_ASSIGN(DeviceInfoSyncBridge); 142 DISALLOW_COPY_AND_ASSIGN(DeviceInfoSyncBridge);
143 }; 143 };
144 144
145 } // namespace syncer 145 } // namespace syncer
146 146
147 #endif // COMPONENTS_SYNC_DEVICE_INFO_DEVICE_INFO_SYNC_BRIDGE_H_ 147 #endif // COMPONENTS_SYNC_DEVICE_INFO_DEVICE_INFO_SYNC_BRIDGE_H_
OLDNEW
« no previous file with comments | « components/sync/BUILD.gn ('k') | components/sync/device_info/device_info_sync_bridge_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698