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 #include "components/usb_service/usb_device_filter.h" | 5 #include "device/usb/usb_device_filter.h" |
6 | 6 |
7 #include "base/values.h" | 7 #include "base/values.h" |
8 #include "components/usb_service/usb_device.h" | 8 #include "device/usb/usb_device.h" |
9 #include "components/usb_service/usb_interface.h" | 9 #include "device/usb/usb_interface.h" |
10 | 10 |
11 namespace usb_service { | 11 namespace device { |
12 | 12 |
13 namespace { | 13 namespace { |
14 | 14 |
15 const char kProductIdKey[] = "productId"; | 15 const char kProductIdKey[] = "productId"; |
16 const char kVendorIdKey[] = "vendorId"; | 16 const char kVendorIdKey[] = "vendorId"; |
17 const char kInterfaceClassKey[] = "interfaceClass"; | 17 const char kInterfaceClassKey[] = "interfaceClass"; |
18 const char kInterfaceSubclassKey[] = "interfaceSubclass"; | 18 const char kInterfaceSubclassKey[] = "interfaceSubclass"; |
19 const char kInterfaceProtocolKey[] = "interfaceProtocol"; | 19 const char kInterfaceProtocolKey[] = "interfaceProtocol"; |
20 | 20 |
21 } // namespace | 21 } // namespace |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 for (std::vector<UsbDeviceFilter>::const_iterator i = filters.begin(); | 130 for (std::vector<UsbDeviceFilter>::const_iterator i = filters.begin(); |
131 i != filters.end(); | 131 i != filters.end(); |
132 ++i) { | 132 ++i) { |
133 if (i->Matches(device)) { | 133 if (i->Matches(device)) { |
134 return true; | 134 return true; |
135 } | 135 } |
136 } | 136 } |
137 return false; | 137 return false; |
138 } | 138 } |
139 | 139 |
140 } // namespace usb_service | 140 } // namespace device |
OLD | NEW |