| 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 DEVICE_HID_HID_SERVICE_H_ | 5 #ifndef DEVICE_HID_HID_SERVICE_H_ |
| 6 #define DEVICE_HID_HID_SERVICE_H_ | 6 #define DEVICE_HID_HID_SERVICE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/bind_helpers.h" | 12 #include "base/bind_helpers.h" |
| 13 #include "base/macros.h" | 13 #include "base/macros.h" |
| 14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 15 #include "base/memory/scoped_ptr.h" |
| 15 #include "base/observer_list.h" | 16 #include "base/observer_list.h" |
| 16 #include "base/single_thread_task_runner.h" | 17 #include "base/single_thread_task_runner.h" |
| 17 #include "base/threading/thread_checker.h" | 18 #include "base/threading/thread_checker.h" |
| 18 #include "device/hid/hid_device_info.h" | 19 #include "device/hid/hid_device_info.h" |
| 19 | 20 |
| 20 namespace device { | 21 namespace device { |
| 21 | 22 |
| 22 class HidConnection; | 23 class HidConnection; |
| 23 | 24 |
| 24 // The HidService keeps track of human interface devices connected to the | 25 // The HidService keeps track of human interface devices connected to the |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 bool enumeration_ready_; | 89 bool enumeration_ready_; |
| 89 std::vector<GetDevicesCallback> pending_enumerations_; | 90 std::vector<GetDevicesCallback> pending_enumerations_; |
| 90 base::ObserverList<Observer, true> observer_list_; | 91 base::ObserverList<Observer, true> observer_list_; |
| 91 | 92 |
| 92 DISALLOW_COPY_AND_ASSIGN(HidService); | 93 DISALLOW_COPY_AND_ASSIGN(HidService); |
| 93 }; | 94 }; |
| 94 | 95 |
| 95 } // namespace device | 96 } // namespace device |
| 96 | 97 |
| 97 #endif // DEVICE_HID_HID_SERVICE_H_ | 98 #endif // DEVICE_HID_HID_SERVICE_H_ |
| OLD | NEW |