| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_USB_USB_IDS_H_ | 5 #ifndef DEVICE_USB_USB_IDS_H_ |
| 6 #define DEVICE_USB_USB_IDS_H_ | 6 #define DEVICE_USB_USB_IDS_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 static const char* GetProductName(uint16_t vendor_id, uint16_t product_id); | 38 static const char* GetProductName(uint16_t vendor_id, uint16_t product_id); |
| 39 | 39 |
| 40 private: | 40 private: |
| 41 UsbIds(); | 41 UsbIds(); |
| 42 ~UsbIds(); | 42 ~UsbIds(); |
| 43 | 43 |
| 44 // Finds the static UsbVendor associated with |vendor_id|. Returns NULL if no | 44 // Finds the static UsbVendor associated with |vendor_id|. Returns NULL if no |
| 45 // such vendor exists. | 45 // such vendor exists. |
| 46 static const UsbVendor* FindVendor(uint16_t vendor_id); | 46 static const UsbVendor* FindVendor(uint16_t vendor_id); |
| 47 | 47 |
| 48 // These fields are defined in a generated file. See device/device.gyp for | 48 // These fields are defined in a generated file. See device/usb/usb.gyp for |
| 49 // more information on how they are generated. | 49 // more information on how they are generated. |
| 50 static const size_t vendor_size_; | 50 static const size_t vendor_size_; |
| 51 static const UsbVendor vendors_[]; | 51 static const UsbVendor vendors_[]; |
| 52 | 52 |
| 53 DISALLOW_COPY_AND_ASSIGN(UsbIds); | 53 DISALLOW_COPY_AND_ASSIGN(UsbIds); |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 } // namespace device | 56 } // namespace device |
| 57 | 57 |
| 58 #endif // DEVICE_USB_USB_IDS_H_ | 58 #endif // DEVICE_USB_USB_IDS_H_ |
| OLD | NEW |