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

Issue 11039012: Implement plugin side of sync EnumerateVideoCaptureDevices (Closed)

Created:
8 years, 2 months ago by raymes
Modified:
8 years, 2 months ago
Reviewers:
yzshen1
CC:
chromium-reviews, piman+watch_chromium.org, darin-cc_chromium.org, yusukes+watch_chromium.org, yzshen+watch_chromium.org, ihf+watch_chromium.org
Visibility:
Public.

Description

Implement plugin side of sync EnumerateVideoCaptureDevices This implements the plugin side of PPB_Flash::EnumerateVideoCaptureDevices which is a synchronous version of PPB_VideoCapture::EnumerateVideoDevices. The result is output into a PP_ArrayOutput. This also adds a unittest which does some basic testing of the messages sent, but mainly demonstrates how to write PluginResource unittests when dealing with sync messages (and adds some infrastructure to make it easy to do this). Once VideoCapture is implemented as a new-style resource, the code for this will simplify a lot. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=161265

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 35

Patch Set 4 : . #

Patch Set 5 : . #

Total comments: 6

Patch Set 6 : . #

Patch Set 7 : . #

Patch Set 8 : . #

Patch Set 9 : . #

Patch Set 10 : . #

Patch Set 11 : . #

Total comments: 1

Patch Set 12 : . #

Patch Set 13 : . #

Patch Set 14 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+684 lines, -10 lines) Patch
M ppapi/api/private/ppb_flash.idl View 1 2 3 4 5 6 4 chunks +24 lines, -4 lines 0 comments Download
M ppapi/c/private/ppb_flash.h View 1 2 3 4 5 6 5 chunks +55 lines, -4 lines 0 comments Download
M ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c View 1 2 3 4 5 6 7 8 9 10 11 12 13 5 chunks +134 lines, -0 lines 0 comments Download
M ppapi/ppapi_proxy.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -0 lines 0 comments Download
M ppapi/ppapi_shared.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/ppapi_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
A ppapi/proxy/flash_resource.h View 1 2 3 1 chunk +41 lines, -0 lines 0 comments Download
A ppapi/proxy/flash_resource.cc View 1 2 3 1 chunk +68 lines, -0 lines 0 comments Download
A ppapi/proxy/flash_resource_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +103 lines, -0 lines 0 comments Download
M ppapi/proxy/plugin_dispatcher.h View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M ppapi/proxy/plugin_dispatcher.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/proxy/ppapi_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +7 lines, -0 lines 0 comments Download
M ppapi/proxy/ppb_flash_proxy.h View 1 chunk +5 lines, -0 lines 0 comments Download
M ppapi/proxy/ppb_instance_proxy.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/proxy/ppb_instance_proxy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +24 lines, -0 lines 0 comments Download
M ppapi/proxy/resource_message_test_sink.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +49 lines, -0 lines 0 comments Download
M ppapi/proxy/resource_message_test_sink.cc View 1 2 3 4 5 6 7 2 chunks +62 lines, -0 lines 0 comments Download
M ppapi/shared_impl/resource.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/thunk/interfaces_ppb_private_flash.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -0 lines 0 comments Download
M ppapi/thunk/ppb_flash_api.h View 1 chunk +7 lines, -0 lines 0 comments Download
A ppapi/thunk/ppb_flash_functions_api.h View 1 2 3 1 chunk +32 lines, -0 lines 0 comments Download
M ppapi/thunk/ppb_flash_thunk.cc View 1 2 3 4 5 5 chunks +43 lines, -0 lines 0 comments Download
M ppapi/thunk/ppb_instance_api.h View 1 2 3 2 chunks +5 lines, -1 line 0 comments Download
M webkit/plugins/ppapi/ppapi_plugin_instance.h View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M webkit/plugins/ppapi/ppapi_plugin_instance.cc View 1 2 3 4 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
raymes
8 years, 2 months ago (2012-10-04 21:34:01 UTC) #1
yzshen1
http://codereview.chromium.org/11039012/diff/5001/ppapi/api/private/ppb_flash.idl File ppapi/api/private/ppb_flash.idl (right): http://codereview.chromium.org/11039012/diff/5001/ppapi/api/private/ppb_flash.idl#newcode259 ppapi/api/private/ppb_flash.idl:259: * ignores. The ref count of the returned |devices| ...
8 years, 2 months ago (2012-10-05 18:16:45 UTC) #2
raymes
https://codereview.chromium.org/11039012/diff/5001/ppapi/api/private/ppb_flash.idl File ppapi/api/private/ppb_flash.idl (right): https://codereview.chromium.org/11039012/diff/5001/ppapi/api/private/ppb_flash.idl#newcode259 ppapi/api/private/ppb_flash.idl:259: * ignores. The ref count of the returned |devices| ...
8 years, 2 months ago (2012-10-08 17:08:50 UTC) #3
yzshen1
https://codereview.chromium.org/11039012/diff/5001/ppapi/proxy/flash_resource_unittest.cc File ppapi/proxy/flash_resource_unittest.cc (right): https://codereview.chromium.org/11039012/diff/5001/ppapi/proxy/flash_resource_unittest.cc#newcode83 ppapi/proxy/flash_resource_unittest.cc:83: output.user_data = &device_ref_resources; On 2012/10/08 17:08:50, raymes wrote: > ...
8 years, 2 months ago (2012-10-08 19:44:25 UTC) #4
raymes
https://codereview.chromium.org/11039012/diff/5001/ppapi/proxy/ppapi_messages.h File ppapi/proxy/ppapi_messages.h (right): https://codereview.chromium.org/11039012/diff/5001/ppapi/proxy/ppapi_messages.h#newcode1586 ppapi/proxy/ppapi_messages.h:1586: // Flash functions. Thanks, as we discussed this was ...
8 years, 2 months ago (2012-10-08 20:06:10 UTC) #5
yzshen1
lgtm http://codereview.chromium.org/11039012/diff/12010/ppapi/proxy/ppb_instance_proxy.cc File ppapi/proxy/ppb_instance_proxy.cc (right): http://codereview.chromium.org/11039012/diff/12010/ppapi/proxy/ppb_instance_proxy.cc#newcode319 ppapi/proxy/ppb_instance_proxy.cc:319: #if !defined(OS_NACL) && !defined(NACL_WIN64) Please include build/build_config.h
8 years, 2 months ago (2012-10-09 17:17:46 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/raymes@chromium.org/11039012/16017
8 years, 2 months ago (2012-10-10 16:08:50 UTC) #7
commit-bot: I haz the power
Failed to apply patch for ppapi/native_client/src/untrusted/pnacl_irt_shim/pnacl_shim.c: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
8 years, 2 months ago (2012-10-10 16:09:04 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/raymes@chromium.org/11039012/24013
8 years, 2 months ago (2012-10-10 23:54:19 UTC) #9
commit-bot: I haz the power
8 years, 2 months ago (2012-10-11 02:02:13 UTC) #10
Change committed as 161265

Powered by Google App Engine
This is Rietveld 408576698