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

Side by Side Diff: device/usb/usb_device_filter.cc

Issue 497363004: Merge components/usb_service into device/usb. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 6 years, 3 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 | « device/usb/usb_device_filter.h ('k') | device/usb/usb_device_filter_unittest.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 #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
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
OLDNEW
« no previous file with comments | « device/usb/usb_device_filter.h ('k') | device/usb/usb_device_filter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698