diff options
author | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-03 00:53:47 +0000 |
---|---|---|
committer | hclam@chromium.org <hclam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-03 00:53:47 +0000 |
commit | bddd488a8734b2b313182ec38cd0f91ee8d60b30 (patch) | |
tree | 11624609f7e5dcd4511396a292d3d9cb7a7cde67 /extensions | |
parent | 883da84ac81528bce94c0ec5a1ecb3047bb06e69 (diff) | |
download | chromium_src-bddd488a8734b2b313182ec38cd0f91ee8d60b30.zip chromium_src-bddd488a8734b2b313182ec38cd0f91ee8d60b30.tar.gz chromium_src-bddd488a8734b2b313182ec38cd0f91ee8d60b30.tar.bz2 |
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
Review URL: https://codereview.chromium.org/83043005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238254 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/common/permissions/api_permission.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/extensions/common/permissions/api_permission.h b/extensions/common/permissions/api_permission.h index 61efb5d..347f05e 100644 --- a/extensions/common/permissions/api_permission.h +++ b/extensions/common/permissions/api_permission.h @@ -52,6 +52,7 @@ class APIPermission { kBrailleDisplayPrivate, kBrowsingData, kCast, + kCastStreaming, kChromeosInfoPrivate, kClipboardRead, kClipboardWrite, |