Add chrome.usb.getConfiguration and expose extra descriptors.
commit79146d0b0d917eb6482cf2c22ec76db09eaa5a37
authorreillyg <reillyg@chromium.org>
Sun, 14 Sep 2014 05:19:25 +0000 (13 22:19 -0700)
committerCommit bot <commit-bot@chromium.org>
Sun, 14 Sep 2014 05:21:58 +0000 (14 05:21 +0000)
tree5a15e915aab7a246f041d4ba499bf51f937de4c9
parent566ed9f6e71cea313c88e8f259eca76581b72d67
Add chrome.usb.getConfiguration and expose extra descriptors.

Adds a new API function, chrome.usb.getConfiguration, that returns all
the data from the device's configuration descriptor instead of just the
interfaces as chrome.usb.listInterfaces does. Each level of the
descriptor hierarchy also gets an "extra_data" field which contains all
of the miscellaneous descriptors assocated with a configuration,
interface or endpoint.

BUG=382908

Review URL: https://codereview.chromium.org/558373002

Cr-Commit-Position: refs/heads/master@{#294758}
extensions/browser/api/usb/usb_api.cc
extensions/browser/api/usb/usb_api.h
extensions/browser/extension_function_histogram_value.h
extensions/common/api/usb.idl
tools/metrics/histograms/histograms.xml