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

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

Issue 597423002: Device info datatype should be moved to components/sync_driver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor CR feedback addressed. Created 6 years, 2 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 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 CHROME_BROWSER_SYNC_GLUE_DEVICE_INFO_SYNC_SERVICE_H_ 5 #ifndef COMPONENTS_SYNC_DRIVER_DEVICE_INFO_SYNC_SERVICE_H_
6 #define CHROME_BROWSER_SYNC_GLUE_DEVICE_INFO_SYNC_SERVICE_H_ 6 #define COMPONENTS_SYNC_DRIVER_DEVICE_INFO_SYNC_SERVICE_H_
7 7
8 #include "base/observer_list.h" 8 #include "base/observer_list.h"
9 #include "chrome/browser/sync/glue/device_info_tracker.h" 9 #include "components/sync_driver/device_info_tracker.h"
10 #include "sync/api/sync_change_processor.h" 10 #include "sync/api/sync_change_processor.h"
11 #include "sync/api/sync_data.h" 11 #include "sync/api/sync_data.h"
12 #include "sync/api/sync_error_factory.h" 12 #include "sync/api/sync_error_factory.h"
13 #include "sync/api/syncable_service.h" 13 #include "sync/api/syncable_service.h"
14 14
15 namespace browser_sync { 15 namespace sync_driver {
16 16
17 class LocalDeviceInfoProvider; 17 class LocalDeviceInfoProvider;
18 18
19 // SyncableService implementation for DEVICE_INFO model type. 19 // SyncableService implementation for DEVICE_INFO model type.
20 class DeviceInfoSyncService : public syncer::SyncableService, 20 class DeviceInfoSyncService : public syncer::SyncableService,
21 public DeviceInfoTracker { 21 public DeviceInfoTracker {
22 public: 22 public:
23 explicit DeviceInfoSyncService( 23 explicit DeviceInfoSyncService(
24 LocalDeviceInfoProvider* local_device_info_provider); 24 LocalDeviceInfoProvider* local_device_info_provider);
25 virtual ~DeviceInfoSyncService(); 25 virtual ~DeviceInfoSyncService();
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 // Cache of all syncable and local data. 96 // Cache of all syncable and local data.
97 typedef std::map<std::string, syncer::SyncData> SyncDataMap; 97 typedef std::map<std::string, syncer::SyncData> SyncDataMap;
98 SyncDataMap all_data_; 98 SyncDataMap all_data_;
99 99
100 // Registered observers, not owned. 100 // Registered observers, not owned.
101 ObserverList<Observer, true> observers_; 101 ObserverList<Observer, true> observers_;
102 102
103 DISALLOW_COPY_AND_ASSIGN(DeviceInfoSyncService); 103 DISALLOW_COPY_AND_ASSIGN(DeviceInfoSyncService);
104 }; 104 };
105 105
106 } // namespace browser_sync 106 } // namespace sync_driver
107 107
108 #endif // CHROME_BROWSER_SYNC_GLUE_DEVICE_INFO_SYNC_SERVICE_H_ 108 #endif // COMPONENTS_SYNC_DRIVER_DEVICE_INFO_SYNC_SERVICE_H_
OLDNEW
« no previous file with comments | « components/sync_driver/device_info_data_type_controller.cc ('k') | components/sync_driver/device_info_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698