| OLD | NEW |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_WIN_H_ | 5 #ifndef DEVICE_HID_HID_SERVICE_WIN_H_ |
| 6 #define DEVICE_HID_HID_SERVICE_WIN_H_ | 6 #define DEVICE_HID_HID_SERVICE_WIN_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/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 #include "device/hid/hid_device_info.h" | 14 #include "device/hid/hid_device_info.h" |
| 15 #include "device/hid/hid_service.h" | 15 #include "device/hid/hid_service.h" |
| 16 | 16 |
| 17 namespace device { | 17 namespace device { |
| 18 | 18 |
| 19 class HidConnection; | 19 class HidConnection; |
| 20 class HidService; | 20 class HidService; |
| 21 | 21 |
| 22 class HidServiceWin : public HidService { | 22 class HidServiceWin : public HidService { |
| 23 public: | 23 public: |
| 24 HidServiceWin(); | 24 HidServiceWin(); |
| 25 | 25 |
| 26 virtual void GetDevices(std::vector<HidDeviceInfo>* devices) OVERRIDE; | 26 virtual void GetDevices(std::vector<HidDeviceInfo>* devices) OVERRIDE; |
| 27 | 27 |
| 28 virtual scoped_refptr<HidConnection> Connect(std::string device_id) OVERRIDE; | 28 virtual scoped_refptr<HidConnection> Connect(const std::string& device_id) |
| 29 OVERRIDE; |
| 29 | 30 |
| 30 private: | 31 private: |
| 31 virtual ~HidServiceWin(); | 32 virtual ~HidServiceWin(); |
| 32 | 33 |
| 33 bool Enumerate(); | 34 bool Enumerate(); |
| 34 void PlatformAddDevice(std::string device_path); | 35 void PlatformAddDevice(const std::string& device_path); |
| 35 void PlatformRemoveDevice(std::string device_path); | 36 void PlatformRemoveDevice(const std::string& device_path); |
| 36 | 37 |
| 37 DISALLOW_COPY_AND_ASSIGN(HidServiceWin); | 38 DISALLOW_COPY_AND_ASSIGN(HidServiceWin); |
| 38 }; | 39 }; |
| 39 | 40 |
| 40 } // namespace device | 41 } // namespace device |
| 41 | 42 |
| 42 #endif // DEVICE_HID_HID_SERVICE_WIN_H_ | 43 #endif // DEVICE_HID_HID_SERVICE_WIN_H_ |
| OLD | NEW |