| 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 UI_EVENTS_OZONE_DEVICE_DEVICE_MANAGER_MANUAL_H_ | 5 #ifndef UI_EVENTS_OZONE_DEVICE_DEVICE_MANAGER_MANUAL_H_ |
| 6 #define UI_EVENTS_OZONE_DEVICE_DEVICE_MANAGER_MANUAL_H_ | 6 #define UI_EVENTS_OZONE_DEVICE_DEVICE_MANAGER_MANUAL_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 private: | 25 private: |
| 26 // DeviceManager overrides: | 26 // DeviceManager overrides: |
| 27 void ScanDevices(DeviceEventObserver* observer) override; | 27 void ScanDevices(DeviceEventObserver* observer) override; |
| 28 void AddObserver(DeviceEventObserver* observer) override; | 28 void AddObserver(DeviceEventObserver* observer) override; |
| 29 void RemoveObserver(DeviceEventObserver* observer) override; | 29 void RemoveObserver(DeviceEventObserver* observer) override; |
| 30 | 30 |
| 31 void OnDevicesScanned(std::vector<base::FilePath>* result); | 31 void OnDevicesScanned(std::vector<base::FilePath>* result); |
| 32 | 32 |
| 33 bool have_scanned_devices_; | 33 bool have_scanned_devices_; |
| 34 std::vector<base::FilePath> devices_; | 34 std::vector<base::FilePath> devices_; |
| 35 ObserverList<DeviceEventObserver> observers_; | 35 base::ObserverList<DeviceEventObserver> observers_; |
| 36 | 36 |
| 37 base::WeakPtrFactory<DeviceManagerManual> weak_ptr_factory_; | 37 base::WeakPtrFactory<DeviceManagerManual> weak_ptr_factory_; |
| 38 | 38 |
| 39 DISALLOW_COPY_AND_ASSIGN(DeviceManagerManual); | 39 DISALLOW_COPY_AND_ASSIGN(DeviceManagerManual); |
| 40 }; | 40 }; |
| 41 | 41 |
| 42 } // namespace ui | 42 } // namespace ui |
| 43 | 43 |
| 44 #endif // UI_EVENTS_OZONE_DEVICE_DEVICE_MANAGER_MANUAL_H_ | 44 #endif // UI_EVENTS_OZONE_DEVICE_DEVICE_MANAGER_MANUAL_H_ |
| OLD | NEW |