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

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

Issue 1380693004: [Sync] Fixing sync_driver lint violations and adding PRESUBMIT lint check. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cross
Patch Set: Removing lint fixes for revisit files, removing revisit patch dep. Created 5 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 COMPONENTS_SYNC_DRIVER_DEVICE_INFO_TRACKER_H_ 5 #ifndef COMPONENTS_SYNC_DRIVER_DEVICE_INFO_TRACKER_H_
6 #define COMPONENTS_SYNC_DRIVER_DEVICE_INFO_TRACKER_H_ 6 #define COMPONENTS_SYNC_DRIVER_DEVICE_INFO_TRACKER_H_
7 7
8 #include <string>
9
8 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
9 #include "base/memory/scoped_vector.h" 11 #include "base/memory/scoped_vector.h"
10 #include "components/sync_driver/device_info.h" 12 #include "components/sync_driver/device_info.h"
11 13
12 namespace sync_driver { 14 namespace sync_driver {
13 15
14 // Interface for tracking synced DeviceInfo. 16 // Interface for tracking synced DeviceInfo.
15 class DeviceInfoTracker { 17 class DeviceInfoTracker {
16 public: 18 public:
17 virtual ~DeviceInfoTracker() {} 19 virtual ~DeviceInfoTracker() {}
(...skipping 15 matching lines...) Expand all
33 virtual ScopedVector<DeviceInfo> GetAllDeviceInfo() const = 0; 35 virtual ScopedVector<DeviceInfo> GetAllDeviceInfo() const = 0;
34 // Registers an observer to be called on syncing any updated DeviceInfo. 36 // Registers an observer to be called on syncing any updated DeviceInfo.
35 virtual void AddObserver(Observer* observer) = 0; 37 virtual void AddObserver(Observer* observer) = 0;
36 // Unregisters an observer. 38 // Unregisters an observer.
37 virtual void RemoveObserver(Observer* observer) = 0; 39 virtual void RemoveObserver(Observer* observer) = 0;
38 }; 40 };
39 41
40 } // namespace sync_driver 42 } // namespace sync_driver
41 43
42 #endif // COMPONENTS_SYNC_DRIVER_DEVICE_INFO_TRACKER_H_ 44 #endif // COMPONENTS_SYNC_DRIVER_DEVICE_INFO_TRACKER_H_
OLDNEW
« no previous file with comments | « components/sync_driver/device_info_sync_service_unittest.cc ('k') | components/sync_driver/fake_data_type_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698