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 "extensions/common/permissions/usb_device_permission_data.h" | 5 #include "extensions/common/permissions/usb_device_permission_data.h" |
6 | 6 |
7 #include <limits> | 7 #include <limits> |
8 #include <string> | 8 #include <string> |
9 #include <tuple> | 9 #include <tuple> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/basictypes.h" | |
13 #include "base/memory/scoped_ptr.h" | 12 #include "base/memory/scoped_ptr.h" |
14 #include "base/strings/string_number_conversions.h" | 13 #include "base/strings/string_number_conversions.h" |
15 #include "base/strings/string_split.h" | 14 #include "base/strings/string_split.h" |
16 #include "base/values.h" | 15 #include "base/values.h" |
17 #include "extensions/common/permissions/api_permission.h" | 16 #include "extensions/common/permissions/api_permission.h" |
18 #include "extensions/common/permissions/usb_device_permission.h" | 17 #include "extensions/common/permissions/usb_device_permission.h" |
19 | 18 |
20 namespace { | 19 namespace { |
21 | 20 |
22 const char* kProductIdKey = "productId"; | 21 const char* kProductIdKey = "productId"; |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 } | 95 } |
97 | 96 |
98 bool UsbDevicePermissionData::operator==( | 97 bool UsbDevicePermissionData::operator==( |
99 const UsbDevicePermissionData& rhs) const { | 98 const UsbDevicePermissionData& rhs) const { |
100 return vendor_id_ == rhs.vendor_id_ && | 99 return vendor_id_ == rhs.vendor_id_ && |
101 product_id_ == rhs.product_id_ && | 100 product_id_ == rhs.product_id_ && |
102 interface_id_ == rhs.interface_id_; | 101 interface_id_ == rhs.interface_id_; |
103 } | 102 } |
104 | 103 |
105 } // namespace extensions | 104 } // namespace extensions |
OLD | NEW |