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

Issue 47303005: Implement native bindings for cast extensions API (Closed)

Created:
7 years, 1 month ago by Alpha Left Google
Modified:
7 years, 1 month ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, feature-media-reviews_chromium.org, extensions-reviews_chromium.org
Visibility:
Public.

Description

Implement native bindings for cast extensions API This is the native code implementation of the cast extensions API that glues the JS API to Cast objects. Also fixes the named/refactored types and functions to be consistent between JS and C++ code. BUG=301920 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=232887

Patch Set 1 #

Total comments: 34

Patch Set 2 : fixed nits #

Total comments: 8

Patch Set 3 : fixed nits #

Total comments: 13

Patch Set 4 : renderer api only #

Patch Set 5 : fix build #

Patch Set 6 : api_renderer #

Patch Set 7 : revert to original #

Patch Set 8 : dependency #

Patch Set 9 : git cl upload #

Patch Set 10 : fix build again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+346 lines, -73 lines) Patch
M chrome/chrome_renderer.gypi View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/webrtc_cast_send_transport.idl View 1 4 5 6 chunks +16 lines, -23 lines 0 comments Download
M chrome/common/extensions/api/webrtc_cast_udp_transport.idl View 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/extensions/webrtc_native_handler.h View 1 2 3 4 5 2 chunks +19 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/webrtc_native_handler.cc View 1 2 3 4 5 3 chunks +271 lines, -10 lines 0 comments Download
M chrome/renderer/media/cast_send_transport.h View 1 3 chunks +13 lines, -17 lines 0 comments Download
M chrome/renderer/media/cast_send_transport.cc View 1 4 chunks +7 lines, -10 lines 0 comments Download
M chrome/renderer/media/cast_udp_transport.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/renderer/media/cast_udp_transport.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/resources/extensions/webrtc_cast_send_transport_custom_bindings.js View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/test/data/extensions/api_test/webrtc_cast/basics.js View 1 1 chunk +5 lines, -7 lines 0 comments Download

Messages

Total messages: 43 (0 generated)
Alpha Left Google
scherkus: chrome/renderer/media justinlin: everything else
7 years, 1 month ago (2013-10-28 21:01:09 UTC) #1
scherkus (not reviewing)
https://codereview.chromium.org/47303005/diff/1/chrome/common/extensions/api/webrtc_cast_send_transport.idl File chrome/common/extensions/api/webrtc_cast_send_transport.idl (right): https://codereview.chromium.org/47303005/diff/1/chrome/common/extensions/api/webrtc_cast_send_transport.idl#newcode94 chrome/common/extensions/api/webrtc_cast_send_transport.idl:94: GetCapsCallback callback); either move this to previous line or ...
7 years, 1 month ago (2013-10-29 17:38:16 UTC) #2
justinlin
https://codereview.chromium.org/47303005/diff/1/chrome/renderer/extensions/webrtc_native_handler.cc File chrome/renderer/extensions/webrtc_native_handler.cc (right): https://codereview.chromium.org/47303005/diff/1/chrome/renderer/extensions/webrtc_native_handler.cc#newcode286 chrome/renderer/extensions/webrtc_native_handler.cc:286: CHECK(args[0]->IsInt32()); I don't think you want to CHECK these. ...
7 years, 1 month ago (2013-10-29 18:22:27 UTC) #3
Alpha Left Google
https://codereview.chromium.org/47303005/diff/1/chrome/common/extensions/api/webrtc_cast_send_transport.idl File chrome/common/extensions/api/webrtc_cast_send_transport.idl (right): https://codereview.chromium.org/47303005/diff/1/chrome/common/extensions/api/webrtc_cast_send_transport.idl#newcode94 chrome/common/extensions/api/webrtc_cast_send_transport.idl:94: GetCapsCallback callback); On 2013/10/29 17:38:17, scherkus wrote: > either ...
7 years, 1 month ago (2013-10-29 19:52:18 UTC) #4
scherkus (not reviewing)
OOC for the transportId stuff would sergeyu@'s http://src.chromium.org/viewvc/chrome?revision=226160&view=revision be of use when generating IDs, or ...
7 years, 1 month ago (2013-10-29 23:47:21 UTC) #5
Alpha Left Google
On 2013/10/29 23:47:21, scherkus wrote: > OOC for the transportId stuff would sergeyu@'s > http://src.chromium.org/viewvc/chrome?revision=226160&view=revision ...
7 years, 1 month ago (2013-10-30 01:17:20 UTC) #6
scherkus (not reviewing)
On 2013/10/30 01:17:20, Alpha wrote: > On 2013/10/29 23:47:21, scherkus wrote: > > OOC for ...
7 years, 1 month ago (2013-10-30 04:17:56 UTC) #7
not at google - send to devlin
On 2013/10/30 04:17:56, scherkus wrote: > On 2013/10/30 01:17:20, Alpha wrote: > > On 2013/10/29 ...
7 years, 1 month ago (2013-10-30 17:16:42 UTC) #8
scherkus (not reviewing)
n https://codereview.chromium.org/47303005/diff/150001/chrome/renderer/resources/extensions/webrtc_cast_send_transport_custom_bindings.js File chrome/renderer/resources/extensions/webrtc_cast_send_transport_custom_bindings.js (right): https://codereview.chromium.org/47303005/diff/150001/chrome/renderer/resources/extensions/webrtc_cast_send_transport_custom_bindings.js#newcode13 chrome/renderer/resources/extensions/webrtc_cast_send_transport_custom_bindings.js:13: apiFunctions.setHandleRequest('create', kalman: are you saying that we should ...
7 years, 1 month ago (2013-10-30 17:56:35 UTC) #9
not at google - send to devlin
https://codereview.chromium.org/47303005/diff/150001/chrome/renderer/resources/extensions/webrtc_cast_send_transport_custom_bindings.js File chrome/renderer/resources/extensions/webrtc_cast_send_transport_custom_bindings.js (right): https://codereview.chromium.org/47303005/diff/150001/chrome/renderer/resources/extensions/webrtc_cast_send_transport_custom_bindings.js#newcode13 chrome/renderer/resources/extensions/webrtc_cast_send_transport_custom_bindings.js:13: apiFunctions.setHandleRequest('create', On 2013/10/30 17:56:35, scherkus wrote: > kalman: are ...
7 years, 1 month ago (2013-10-30 18:13:48 UTC) #10
scherkus (not reviewing)
On 2013/10/30 18:13:48, kalman wrote: > https://codereview.chromium.org/47303005/diff/150001/chrome/renderer/resources/extensions/webrtc_cast_send_transport_custom_bindings.js > File > chrome/renderer/resources/extensions/webrtc_cast_send_transport_custom_bindings.js > (right): > > ...
7 years, 1 month ago (2013-10-30 18:19:25 UTC) #11
justinlin
LGTM https://codereview.chromium.org/47303005/diff/150001/chrome/renderer/extensions/webrtc_native_handler.cc File chrome/renderer/extensions/webrtc_native_handler.cc (right): https://codereview.chromium.org/47303005/diff/150001/chrome/renderer/extensions/webrtc_native_handler.cc#newcode267 chrome/renderer/extensions/webrtc_native_handler.cc:267: int transport_id = static_cast<int>(args[0]->ToInt32()->Value()); nit: const or don't ...
7 years, 1 month ago (2013-10-30 20:08:37 UTC) #12
Alpha Left Google
kalman: owner review please. https://codereview.chromium.org/47303005/diff/150001/chrome/renderer/extensions/webrtc_native_handler.cc File chrome/renderer/extensions/webrtc_native_handler.cc (right): https://codereview.chromium.org/47303005/diff/150001/chrome/renderer/extensions/webrtc_native_handler.cc#newcode267 chrome/renderer/extensions/webrtc_native_handler.cc:267: int transport_id = static_cast<int>(args[0]->ToInt32()->Value()); On ...
7 years, 1 month ago (2013-10-30 20:21:18 UTC) #13
not at google - send to devlin
https://codereview.chromium.org/47303005/diff/410001/chrome/renderer/extensions/webrtc_native_handler.cc File chrome/renderer/extensions/webrtc_native_handler.cc (right): https://codereview.chromium.org/47303005/diff/410001/chrome/renderer/extensions/webrtc_native_handler.cc#newcode9 chrome/renderer/extensions/webrtc_native_handler.cc:9: #include "chrome/common/extensions/api/webrtc_cast_udp_transport.h" you can't use the generated objects on ...
7 years, 1 month ago (2013-10-30 20:41:56 UTC) #14
not at google - send to devlin
https://codereview.chromium.org/47303005/diff/410001/chrome/renderer/extensions/webrtc_native_handler.cc File chrome/renderer/extensions/webrtc_native_handler.cc (right): https://codereview.chromium.org/47303005/diff/410001/chrome/renderer/extensions/webrtc_native_handler.cc#newcode108 chrome/renderer/extensions/webrtc_native_handler.cc:108: const int inner_transport_id = static_cast<int>(args[0]->ToInt32()->Value()); On 2013/10/30 20:41:57, kalman ...
7 years, 1 month ago (2013-10-30 20:44:14 UTC) #15
Alpha Left Google
https://codereview.chromium.org/47303005/diff/410001/chrome/renderer/extensions/webrtc_native_handler.cc File chrome/renderer/extensions/webrtc_native_handler.cc (right): https://codereview.chromium.org/47303005/diff/410001/chrome/renderer/extensions/webrtc_native_handler.cc#newcode9 chrome/renderer/extensions/webrtc_native_handler.cc:9: #include "chrome/common/extensions/api/webrtc_cast_udp_transport.h" On 2013/10/30 20:41:57, kalman wrote: > you ...
7 years, 1 month ago (2013-10-30 23:58:26 UTC) #16
Alpha Left Google
Isolating the API just for the renderer is much harder than I thought. Still trying.
7 years, 1 month ago (2013-10-31 00:40:15 UTC) #17
not at google - send to devlin
Ok - I had my facts with the API dependency a little oversimplified - the ...
7 years, 1 month ago (2013-10-31 02:44:43 UTC) #18
Alpha Left Google
On 2013/10/31 02:44:43, kalman wrote: > Ok - I had my facts with the API ...
7 years, 1 month ago (2013-10-31 02:52:08 UTC) #19
not at google - send to devlin
On 2013/10/31 02:52:08, Alpha wrote: > On 2013/10/31 02:44:43, kalman wrote: > > Ok - ...
7 years, 1 month ago (2013-10-31 16:08:43 UTC) #20
Alpha Left Google
kalman: please look again. The latest change isolate the renderer API into a separate target ...
7 years, 1 month ago (2013-10-31 20:20:42 UTC) #21
not at google - send to devlin
lgtm
7 years, 1 month ago (2013-10-31 22:26:28 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hclam@chromium.org/47303005/670001
7 years, 1 month ago (2013-10-31 23:25:04 UTC) #23
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_rel&number=183545
7 years, 1 month ago (2013-11-01 03:40:32 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hclam@chromium.org/47303005/670001
7 years, 1 month ago (2013-11-01 20:13:06 UTC) #25
Alpha Left Google
I tried to make it a separate target but it didn't work.. I'm now reverting ...
7 years, 1 month ago (2013-11-01 20:29:18 UTC) #26
commit-bot: I haz the power
Failed to trigger a try job on ios_rel_device HTTP Error 400: Bad Request
7 years, 1 month ago (2013-11-01 20:39:00 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hclam@chromium.org/47303005/1100001
7 years, 1 month ago (2013-11-01 20:41:27 UTC) #28
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 1 month ago (2013-11-01 22:32:00 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hclam@chromium.org/47303005/1270001
7 years, 1 month ago (2013-11-02 00:55:02 UTC) #30
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 1 month ago (2013-11-02 01:36:29 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hclam@chromium.org/47303005/1270001
7 years, 1 month ago (2013-11-03 20:15:49 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hclam@chromium.org/47303005/1450001
7 years, 1 month ago (2013-11-04 09:45:26 UTC) #33
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 1 month ago (2013-11-04 10:10:35 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hclam@chromium.org/47303005/1450001
7 years, 1 month ago (2013-11-04 18:28:39 UTC) #35
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 1 month ago (2013-11-04 18:51:41 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hclam@chromium.org/47303005/1700001
7 years, 1 month ago (2013-11-04 18:51:55 UTC) #37
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=218713
7 years, 1 month ago (2013-11-04 21:14:40 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hclam@chromium.org/47303005/1700001
7 years, 1 month ago (2013-11-04 21:35:19 UTC) #39
commit-bot: I haz the power
Change committed as 232887
7 years, 1 month ago (2013-11-05 02:34:05 UTC) #40
henrika (OOO until Aug 14)
This CL seems to break an internal WebRTC bot which builds with enable_webrtc set to ...
7 years, 1 month ago (2013-11-06 08:14:34 UTC) #41
Alpha Left Google
On 2013/11/06 08:14:34, henrika wrote: > This CL seems to break an internal WebRTC bot ...
7 years, 1 month ago (2013-11-06 08:58:25 UTC) #42
henrika (OOO until Aug 14)
7 years, 1 month ago (2013-11-06 14:22:15 UTC) #43
Message was sent while issue was closed.
Our bot builds daily. I will force use of your patch and get back.

Thanks!

Powered by Google App Engine
This is Rietveld 408576698