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

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

Issue 1162943002: Replace more ObserverList with base::ObserverList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@observer
Patch Set: Created 5 years, 6 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
« no previous file with comments | « components/storage_monitor/storage_monitor.cc ('k') | components/sync_driver/sync_prefs.h » ('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 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 "base/observer_list.h" 8 #include "base/observer_list.h"
9 #include "components/sync_driver/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"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // Receives ownership of |sync_processor_| and |error_handler_| in 91 // Receives ownership of |sync_processor_| and |error_handler_| in
92 // MergeDataAndStartSyncing() and destroy them in StopSyncing(). 92 // MergeDataAndStartSyncing() and destroy them in StopSyncing().
93 scoped_ptr<syncer::SyncChangeProcessor> sync_processor_; 93 scoped_ptr<syncer::SyncChangeProcessor> sync_processor_;
94 scoped_ptr<syncer::SyncErrorFactory> error_handler_; 94 scoped_ptr<syncer::SyncErrorFactory> error_handler_;
95 95
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 base::ObserverList<Observer, true> observers_;
102 102
103 DISALLOW_COPY_AND_ASSIGN(DeviceInfoSyncService); 103 DISALLOW_COPY_AND_ASSIGN(DeviceInfoSyncService);
104 }; 104 };
105 105
106 } // namespace sync_driver 106 } // namespace sync_driver
107 107
108 #endif // COMPONENTS_SYNC_DRIVER_DEVICE_INFO_SYNC_SERVICE_H_ 108 #endif // COMPONENTS_SYNC_DRIVER_DEVICE_INFO_SYNC_SERVICE_H_
OLDNEW
« no previous file with comments | « components/storage_monitor/storage_monitor.cc ('k') | components/sync_driver/sync_prefs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698