OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_SYNC_SERVICE_H_ | 5 #ifndef COMPONENTS_SYNC_DRIVER_DEVICE_INFO_SYNC_SERVICE_H_ |
6 #define COMPONENTS_SYNC_DRIVER_DEVICE_INFO_SYNC_SERVICE_H_ | 6 #define COMPONENTS_SYNC_DRIVER_DEVICE_INFO_SYNC_SERVICE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
11 #include <memory> | 11 #include <memory> |
12 #include <string> | 12 #include <string> |
13 | 13 |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "base/memory/scoped_vector.h" | 15 #include "base/memory/scoped_vector.h" |
16 #include "base/observer_list.h" | 16 #include "base/observer_list.h" |
17 #include "base/time/time.h" | 17 #include "base/time/time.h" |
18 #include "base/timer/timer.h" | 18 #include "base/timer/timer.h" |
19 #include "components/sync/api/sync_change.h" | 19 #include "components/sync/api/sync_change.h" |
20 #include "components/sync/api/sync_change_processor.h" | 20 #include "components/sync/api/sync_change_processor.h" |
21 #include "components/sync/api/sync_data.h" | 21 #include "components/sync/api/sync_data.h" |
22 #include "components/sync/api/sync_error_factory.h" | 22 #include "components/sync/api/sync_error_factory.h" |
23 #include "components/sync/api/syncable_service.h" | 23 #include "components/sync/api/syncable_service.h" |
24 #include "components/sync_driver/device_info_tracker.h" | 24 #include "components/sync/driver/device_info_tracker.h" |
25 | 25 |
26 namespace sync_driver { | 26 namespace sync_driver { |
27 | 27 |
28 class LocalDeviceInfoProvider; | 28 class LocalDeviceInfoProvider; |
29 | 29 |
30 // SyncableService implementation for DEVICE_INFO model type. | 30 // SyncableService implementation for DEVICE_INFO model type. |
31 class DeviceInfoSyncService : public syncer::SyncableService, | 31 class DeviceInfoSyncService : public syncer::SyncableService, |
32 public DeviceInfoTracker { | 32 public DeviceInfoTracker { |
33 public: | 33 public: |
34 explicit DeviceInfoSyncService( | 34 explicit DeviceInfoSyncService( |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 | 102 |
103 // Used to update our local device info once every pulse interval. | 103 // Used to update our local device info once every pulse interval. |
104 base::OneShotTimer pulse_timer_; | 104 base::OneShotTimer pulse_timer_; |
105 | 105 |
106 DISALLOW_COPY_AND_ASSIGN(DeviceInfoSyncService); | 106 DISALLOW_COPY_AND_ASSIGN(DeviceInfoSyncService); |
107 }; | 107 }; |
108 | 108 |
109 } // namespace sync_driver | 109 } // namespace sync_driver |
110 | 110 |
111 #endif // COMPONENTS_SYNC_DRIVER_DEVICE_INFO_SYNC_SERVICE_H_ | 111 #endif // COMPONENTS_SYNC_DRIVER_DEVICE_INFO_SYNC_SERVICE_H_ |
OLD | NEW |