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

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

Issue 399313008: Remove HID devices not found during enumeration on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add a protected const accessor instead of making devices_ protected. Created 6 years, 5 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
« no previous file with comments | « no previous file | device/hid/hid_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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>
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 43
44 typedef std::map<HidDeviceId, HidDeviceInfo> DeviceMap; 44 typedef std::map<HidDeviceId, HidDeviceInfo> DeviceMap;
45 45
46 HidService(); 46 HidService();
47 virtual ~HidService(); 47 virtual ~HidService();
48 48
49 static HidService* CreateInstance(); 49 static HidService* CreateInstance();
50 50
51 void AddDevice(const HidDeviceInfo& info); 51 void AddDevice(const HidDeviceInfo& info);
52 void RemoveDevice(const HidDeviceId& device_id); 52 void RemoveDevice(const HidDeviceId& device_id);
53 const DeviceMap& GetDevicesNoEnumerate() const;
53 54
54 base::ThreadChecker thread_checker_; 55 base::ThreadChecker thread_checker_;
55 56
56 private: 57 private:
57 DeviceMap devices_; 58 DeviceMap devices_;
58 59
59 DISALLOW_COPY_AND_ASSIGN(HidService); 60 DISALLOW_COPY_AND_ASSIGN(HidService);
60 }; 61 };
61 62
62 } // namespace device 63 } // namespace device
63 64
64 #endif // DEVICE_HID_HID_SERVICE_H_ 65 #endif // DEVICE_HID_HID_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | device/hid/hid_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698