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

Issue 10224009: Experimental USB API (Closed)

Created:
8 years, 8 months ago by Garret Kelly
Modified:
8 years, 6 months ago
CC:
chromium-reviews, Aaron Boodman, darin-cc_chromium.org, mihaip+watch_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Experimental USB API This change adds a new API for low-level access to USB devices. The change depends on https://chromiumcodereview.appspot.com/10161035/ BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=134423

Patch Set 1 #

Total comments: 29

Patch Set 2 : Review changes. #

Total comments: 6

Patch Set 3 : Review changes. #

Patch Set 4 : Build fixes due to UsbService/Device changes. #

Patch Set 5 : Clang fixes. #

Patch Set 6 : Fixing test. #

Patch Set 7 : Rebase. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+853 lines, -18 lines) Patch
M chrome/app/generated_resources.grd View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/api_resource.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/extensions/api/api_resource_controller.h View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/api_resource_controller.cc View 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/api_resource_event_notifier.h View 1 2 3 4 5 6 3 chunks +9 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/api_resource_event_notifier.cc View 1 2 3 4 5 6 8 chunks +35 lines, -13 lines 0 comments Download
A chrome/browser/extensions/api/usb/usb_api.h View 1 2 3 4 1 chunk +105 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/usb/usb_api.cc View 1 2 3 4 1 chunk +149 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/usb/usb_device_resource.h View 1 2 1 chunk +58 lines, -0 lines 0 comments Download
A chrome/browser/extensions/api/usb/usb_device_resource.cc View 1 2 3 1 chunk +199 lines, -0 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/chrome_renderer.gypi View 1 2 3 3 chunks +10 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/_permission_features.json View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/api.gyp View 1 chunk +8 lines, -0 lines 0 comments Download
A chrome/common/extensions/api/experimental.usb.idl View 1 2 3 1 chunk +146 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_permission_set.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/extension_permission_set.cc View 1 chunk +3 lines, -0 lines 1 comment Download
M chrome/common/extensions/extension_permission_set_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A chrome/renderer/extensions/experimental.usb_custom_bindings.h View 1 chunk +20 lines, -0 lines 0 comments Download
A chrome/renderer/extensions/experimental.usb_custom_bindings.cc View 1 chunk +26 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/extension_dispatcher.cc View 4 chunks +6 lines, -0 lines 0 comments Download
M chrome/renderer/renderer_resources.grd View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/renderer/resources/extensions/experimental.usb_custom_bindings.js View 1 chunk +46 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
Garret Kelly
Hi Mike and Antony, I've split out stuff that needs review by other people into ...
8 years, 8 months ago (2012-04-25 21:09:09 UTC) #1
miket_OOO
Almost looks good, but you seem to be missing the feature configuration that restricts this ...
8 years, 8 months ago (2012-04-25 23:10:37 UTC) #2
Garret Kelly
Done! PTAL. https://chromiumcodereview.appspot.com/10224009/diff/1/chrome/browser/extensions/api/api_resource_event_notifier.h File chrome/browser/extensions/api/api_resource_event_notifier.h (right): https://chromiumcodereview.appspot.com/10224009/diff/1/chrome/browser/extensions/api/api_resource_event_notifier.h#newcode70 chrome/browser/extensions/api/api_resource_event_notifier.h:70: void DispatchEvent(const std::string &extension, DictionaryValue* event); On ...
8 years, 8 months ago (2012-04-26 20:13:44 UTC) #3
miket_OOO
Yarr, that be a fine change. LGTM.
8 years, 8 months ago (2012-04-26 20:24:05 UTC) #4
Garret Kelly
Thank ye fer' yer' review, cap'n! Will cq+ as soon the usb_service/device change lands.
8 years, 8 months ago (2012-04-26 20:31:21 UTC) #5
asargent_no_longer_on_chrome
I have a few style nits - will try and complete review soon... On Thu, ...
8 years, 8 months ago (2012-04-26 20:32:41 UTC) #6
asargent_no_longer_on_chrome
lgtm with some nits to address before checking in. Also, can you file a follow-up ...
8 years, 8 months ago (2012-04-26 21:21:45 UTC) #7
Garret Kelly
asargent: Addressed all review points. PTAL. http://codereview.chromium.org/10224009/diff/1/chrome/browser/extensions/api/api_resource_event_notifier.cc File chrome/browser/extensions/api/api_resource_event_notifier.cc (right): http://codereview.chromium.org/10224009/diff/1/chrome/browser/extensions/api/api_resource_event_notifier.cc#newcode29 chrome/browser/extensions/api/api_resource_event_notifier.cc:29: const char kEventTypeTransferComplete[] ...
8 years, 8 months ago (2012-04-27 00:32:34 UTC) #8
asargent_no_longer_on_chrome
LGTM. Feel free to ping me if you need some guidance on how to handle ...
8 years, 8 months ago (2012-04-27 03:39:17 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gdk@chromium.org/10224009/21001
8 years, 8 months ago (2012-04-27 16:57:04 UTC) #10
commit-bot: I haz the power
Try job failure for 10224009-21001 (retry) on linux_chromeos for step "compile" (clobber build). It's a ...
8 years, 8 months ago (2012-04-27 17:18:04 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gdk@chromium.org/10224009/34002
8 years, 8 months ago (2012-04-27 17:50:51 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gdk@chromium.org/10224009/41002
8 years, 8 months ago (2012-04-27 19:12:19 UTC) #13
commit-bot: I haz the power
Try job failure for 10224009-41002 (retry) on mac_rel for step "unit_tests". It's a second try, ...
8 years, 8 months ago (2012-04-27 20:08:12 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gdk@chromium.org/10224009/36005
8 years, 8 months ago (2012-04-27 20:21:25 UTC) #15
commit-bot: I haz the power
Can't apply patch for file chrome/browser/extensions/api/api_resource_event_notifier.cc. While running patch -p1 --forward --force; patching file chrome/browser/extensions/api/api_resource_event_notifier.cc ...
8 years, 8 months ago (2012-04-27 22:50:09 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/gdk@chromium.org/10224009/33005
8 years, 8 months ago (2012-04-27 23:52:56 UTC) #17
commit-bot: I haz the power
Change committed as 134423
8 years, 8 months ago (2012-04-28 02:13:12 UTC) #18
miket_OOO
On 2012/04/28 02:13:12, I haz the power (commit-bot) wrote: > Change committed as 134423 THREE ...
8 years, 8 months ago (2012-04-28 04:25:41 UTC) #19
Evan Stade
http://codereview.chromium.org/10224009/diff/33005/chrome/common/extensions/extension_permission_set.cc File chrome/common/extensions/extension_permission_set.cc (right): http://codereview.chromium.org/10224009/diff/33005/chrome/common/extensions/extension_permission_set.cc#newcode266 chrome/common/extensions/extension_permission_set.cc:266: ExtensionPermissionMessage::kNone, kFlagNone); why is this ExtensionPermissionMessage::kNone?
8 years, 6 months ago (2012-06-12 18:09:48 UTC) #20
Garret Kelly
8 years, 6 months ago (2012-06-12 18:13:01 UTC) #21
> why is this ExtensionPermissionMessage::kNone?

The USB and Bluetooth permission model is still under development.
http://code.google.com/p/chromium/issues/detail?id=127302

Powered by Google App Engine
This is Rietveld 408576698