| 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_DEVICE_INFO_DEVICE_INFO_TRACKER_H_ | 5 #ifndef COMPONENTS_SYNC_DEVICE_INFO_DEVICE_INFO_TRACKER_H_ |
| 6 #define COMPONENTS_SYNC_DEVICE_INFO_DEVICE_INFO_TRACKER_H_ | 6 #define COMPONENTS_SYNC_DEVICE_INFO_DEVICE_INFO_TRACKER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> |
| 10 | 11 |
| 11 #include "components/sync/device_info/device_info.h" | 12 #include "components/sync/device_info/device_info.h" |
| 12 | 13 |
| 13 namespace syncer { | 14 namespace syncer { |
| 14 | 15 |
| 15 // Interface for tracking synced DeviceInfo. | 16 // Interface for tracking synced DeviceInfo. |
| 16 class DeviceInfoTracker { | 17 class DeviceInfoTracker { |
| 17 public: | 18 public: |
| 18 virtual ~DeviceInfoTracker() {} | 19 virtual ~DeviceInfoTracker() {} |
| 19 | 20 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 36 virtual void AddObserver(Observer* observer) = 0; | 37 virtual void AddObserver(Observer* observer) = 0; |
| 37 // Unregisters an observer. | 38 // Unregisters an observer. |
| 38 virtual void RemoveObserver(Observer* observer) = 0; | 39 virtual void RemoveObserver(Observer* observer) = 0; |
| 39 // Returns the count of active devices. | 40 // Returns the count of active devices. |
| 40 virtual int CountActiveDevices() const = 0; | 41 virtual int CountActiveDevices() const = 0; |
| 41 }; | 42 }; |
| 42 | 43 |
| 43 } // namespace syncer | 44 } // namespace syncer |
| 44 | 45 |
| 45 #endif // COMPONENTS_SYNC_DEVICE_INFO_DEVICE_INFO_TRACKER_H_ | 46 #endif // COMPONENTS_SYNC_DEVICE_INFO_DEVICE_INFO_TRACKER_H_ |
| OLD | NEW |