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

Side by Side Diff: device/hid/hid_service_win.h

Issue 161823002: Clean up HID backend and API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: linux headers Created 6 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 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_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>
9 #include <string>
10 #include <vector>
11
12 #include "base/basictypes.h"
13 #include "base/memory/ref_counted.h"
14 #include "device/hid/hid_device_info.h"
15 #include "device/hid/hid_service.h" 8 #include "device/hid/hid_service.h"
16 9
17 namespace device { 10 namespace device {
18 11
19 class HidConnection; 12 class HidConnection;
20 class HidService;
21 13
22 class HidServiceWin : public HidService { 14 class HidServiceWin : public HidService {
23 public: 15 public:
24 HidServiceWin(); 16 HidServiceWin();
25 17
26 virtual void GetDevices(std::vector<HidDeviceInfo>* devices) OVERRIDE; 18 virtual void GetDevices(std::vector<HidDeviceInfo>* devices) OVERRIDE;
27 19
28 virtual scoped_refptr<HidConnection> Connect(std::string device_id) OVERRIDE; 20 virtual scoped_refptr<HidConnection> Connect(const std::string& device_id)
21 OVERRIDE;
29 22
30 private: 23 private:
31 virtual ~HidServiceWin(); 24 virtual ~HidServiceWin();
32 25
33 bool Enumerate(); 26 void Enumerate();
34 void PlatformAddDevice(std::string device_path); 27 void PlatformAddDevice(const std::string& device_path);
35 void PlatformRemoveDevice(std::string device_path); 28 void PlatformRemoveDevice(const std::string& device_path);
36 29
37 DISALLOW_COPY_AND_ASSIGN(HidServiceWin); 30 DISALLOW_COPY_AND_ASSIGN(HidServiceWin);
38 }; 31 };
39 32
40 } // namespace device 33 } // namespace device
41 34
42 #endif // DEVICE_HID_HID_SERVICE_WIN_H_ 35 #endif // DEVICE_HID_HID_SERVICE_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698