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

Issue 83043005: Cast Extensions API: Factory method for creating a cast session (Closed)

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

Description

Cast Extensions API: Factory method for creating a cast session There are separate chrome.webrtc.castSendTransport.create and chrome.webrtc.castUdpTransport.create methods. However these objects are never used alone. They require a session to operate and having them separate is confusing. Instead unify the session creation in one factory method: chrome.cast.streaming.session.create( WebMediaStreamTrack audioTrack, WebMediaStreamTrack videoTrack, CreateCallback); The above method will construct a session and create objects for the RTP streams and the UDP transport. These streams can then be configured by existing APIs. Another change is the new cast.streaming namespace. Eventually everything in chrome.webrtc will be moved there so we have a mix for now. But we'll unify all the namespaces to cast.streaming in a couple patches. To summarize: The following two APIs are removed: 1. chrome.webrtc.castSendTransport.create 2. chorme.webrtc.castUdpTransport.create The following API is new: 1. chrome.cast.streaming.session.create BUG=301920 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=238254

Patch Set 1 : merged #

Total comments: 4

Patch Set 2 : remove castSendTransport.create #

Total comments: 4

Patch Set 3 : async callback #

Patch Set 4 : merged #

Total comments: 1

Patch Set 5 : indent #

Patch Set 6 : merged #

Patch Set 7 : fixed test #

Patch Set 8 : merged again #

Patch Set 9 : fixed scope #

Unified diffs Side-by-side diffs Delta from patch set Stats (+179 lines, -176 lines) Patch
M chrome/common/extensions/api/_api_features.json View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/_permission_features.json View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/api.gyp View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
A chrome/common/extensions/api/cast_streaming_session.idl View 1 2 1 chunk +34 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/webrtc_cast_send_transport.idl View 1 1 chunk +0 lines, -10 lines 0 comments Download
M chrome/common/extensions/api/webrtc_cast_udp_transport.idl View 2 chunks +4 lines, -14 lines 0 comments Download
M chrome/common/extensions/permissions/chrome_api_permissions.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/permissions/permission_set_unittest.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/renderer/extensions/dispatcher.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/webrtc_native_handler.h View 1 2 3 4 5 6 7 8 5 chunks +14 lines, -3 lines 0 comments Download
M chrome/renderer/extensions/webrtc_native_handler.cc View 1 2 3 4 5 6 7 8 5 chunks +57 lines, -37 lines 0 comments Download
M chrome/renderer/media/cast_send_transport.h View 3 chunks +7 lines, -7 lines 0 comments Download
M chrome/renderer/media/cast_send_transport.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/renderer/media/cast_udp_transport.h View 1 2 1 chunk +5 lines, -14 lines 0 comments Download
M chrome/renderer/media/cast_udp_transport.cc View 1 chunk +3 lines, -2 lines 0 comments Download
A chrome/renderer/resources/extensions/cast_streaming_session_custom_bindings.js View 1 2 3 4 1 chunk +18 lines, -0 lines 0 comments Download
M chrome/renderer/resources/extensions/webrtc_cast_send_transport_custom_bindings.js View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/renderer/resources/extensions/webrtc_cast_udp_transport_custom_bindings.js View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/renderer/resources/renderer_resources.grd View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/data/extensions/api_test/webrtc_cast/basics.js View 1 2 1 chunk +17 lines, -78 lines 0 comments Download
M chrome/test/data/extensions/api_test/webrtc_cast/manifest.json View 1 chunk +1 line, -1 line 0 comments Download
M extensions/common/permissions/api_permission.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 34 (0 generated)
Alpha Left Google
7 years, 1 month ago (2013-11-23 01:08:52 UTC) #1
haibinlu
https://codereview.chromium.org/83043005/diff/20001/chrome/common/extensions/api/cast_streaming.idl File chrome/common/extensions/api/cast_streaming.idl (right): https://codereview.chromium.org/83043005/diff/20001/chrome/common/extensions/api/cast_streaming.idl#newcode10 chrome/common/extensions/api/cast_streaming.idl:10: // |id| : The transport id. document parameters. https://codereview.chromium.org/83043005/diff/20001/chrome/common/extensions/api/cast_streaming.idl#newcode11 ...
7 years, 1 month ago (2013-11-23 02:10:00 UTC) #2
haibinlu
lgtm
7 years, 1 month ago (2013-11-23 02:11:52 UTC) #3
not at google - send to devlin
Could you do the API rename before submitting this CL? What will this look like ...
7 years ago (2013-11-25 19:21:20 UTC) #4
Alpha Left Google
On 2013/11/25 19:21:20, kalman wrote: > Could you do the API rename before submitting this ...
7 years ago (2013-11-25 19:23:08 UTC) #5
Alpha Left Google
> There's no renaming done in this CL. I removed old APIs from chrome.webrtc and ...
7 years ago (2013-11-25 19:28:47 UTC) #6
not at google - send to devlin
On 2013/11/25 19:23:08, Alpha wrote: > On 2013/11/25 19:21:20, kalman wrote: > > Could you ...
7 years ago (2013-11-25 19:28:48 UTC) #7
Alpha Left Google
> I understand that, but you may have problems transitioning to the new namespace > ...
7 years ago (2013-11-25 19:32:50 UTC) #8
not at google - send to devlin
On 2013/11/25 19:28:47, Alpha wrote: > > There's no renaming done in this CL. I ...
7 years ago (2013-11-25 19:33:26 UTC) #9
Alpha Left Google
On 2013/11/25 19:33:26, kalman wrote: > On 2013/11/25 19:28:47, Alpha wrote: > > > There's ...
7 years ago (2013-11-25 19:37:22 UTC) #10
not at google - send to devlin
Could you send out a courtesy email to apps-dev@chromium.org that you're adding this new namespace, ...
7 years ago (2013-11-25 19:41:11 UTC) #11
not at google - send to devlin
On 2013/11/25 19:37:22, Alpha wrote: > On 2013/11/25 19:33:26, kalman wrote: > > On 2013/11/25 ...
7 years ago (2013-11-25 19:41:46 UTC) #12
Alpha Left Google
https://codereview.chromium.org/83043005/diff/130001/chrome/renderer/extensions/webrtc_native_handler.cc File chrome/renderer/extensions/webrtc_native_handler.cc (right): https://codereview.chromium.org/83043005/diff/130001/chrome/renderer/extensions/webrtc_native_handler.cc#newcode211 chrome/renderer/extensions/webrtc_native_handler.cc:211: 3, callback_args); On 2013/11/25 19:41:11, kalman wrote: > so ...
7 years ago (2013-11-26 04:22:44 UTC) #13
not at google - send to devlin
lgtm
7 years ago (2013-11-26 18:51:45 UTC) #14
Alpha Left Google
+scherkus for files under chrome/renderer/media.
7 years ago (2013-11-26 20:03:23 UTC) #15
Alpha Left Google
On 2013/11/26 20:03:23, Alpha wrote: > +scherkus for files under chrome/renderer/media. ping scherkus@.
7 years ago (2013-11-27 22:16:22 UTC) #16
scherkus (not reviewing)
lgtm
7 years ago (2013-11-27 22:30:51 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hclam@chromium.org/83043005/420001
7 years ago (2013-11-27 23:39:05 UTC) #18
Alpha Left Google
+thakis for owners approval under chrome/renderer/resources
7 years ago (2013-11-27 23:54:53 UTC) #19
Alpha Left Google
+thakis for owners approval under chrome/renderer/resources
7 years ago (2013-11-27 23:55:09 UTC) #20
Nico
lgtm https://codereview.chromium.org/83043005/diff/420001/chrome/renderer/resources/extensions/cast_streaming_session_custom_bindings.js File chrome/renderer/resources/extensions/cast_streaming_session_custom_bindings.js (right): https://codereview.chromium.org/83043005/diff/420001/chrome/renderer/resources/extensions/cast_streaming_session_custom_bindings.js#newcode14 chrome/renderer/resources/extensions/cast_streaming_session_custom_bindings.js:14: natives.CreateSession(audioTrack, videoTrack, callback); nit: indent 4 more
7 years ago (2013-11-27 23:57:11 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hclam@chromium.org/83043005/460001
7 years ago (2013-11-28 01:23:58 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/83043005/460001
7 years ago (2013-11-28 02:04:10 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hclam@chromium.org/83043005/460001
7 years ago (2013-11-28 02:32:53 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/83043005/460001
7 years ago (2013-11-28 03:03:09 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hclam@chromium.org/83043005/460001
7 years ago (2013-11-28 03:32:02 UTC) #26
commit-bot: I haz the power
Failed to trigger a try job on linux_rel HTTP Error 400: Bad Request
7 years ago (2013-11-28 03:50:58 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/83043005/480001
7 years ago (2013-11-28 03:51:21 UTC) #28
commit-bot: I haz the power
Failed to apply patch for chrome/common/extensions/permissions/chrome_api_permissions.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years ago (2013-11-28 03:51:41 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/83043005/500001
7 years ago (2013-12-02 16:50:23 UTC) #30
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=195311
7 years ago (2013-12-02 19:09:11 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/83043005/500001
7 years ago (2013-12-02 19:20:10 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/83043005/520001
7 years ago (2013-12-02 21:19:21 UTC) #33
commit-bot: I haz the power
7 years ago (2013-12-03 00:53:52 UTC) #34
Message was sent while issue was closed.
Change committed as 238254

Powered by Google App Engine
This is Rietveld 408576698