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

Unified Diff: chrome/renderer/extensions/cast_streaming_native_handler.h

Issue 938903003: Cast: Javascript bindings for cast receiver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cast_receiver_session
Patch Set: merged Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/renderer/extensions/cast_streaming_native_handler.h
diff --git a/chrome/renderer/extensions/cast_streaming_native_handler.h b/chrome/renderer/extensions/cast_streaming_native_handler.h
index 225ade0235ddc6ea46b70034055061473d697951..aad9bd19089e4c0e042fda914e6805dd52c55472 100644
--- a/chrome/renderer/extensions/cast_streaming_native_handler.h
+++ b/chrome/renderer/extensions/cast_streaming_native_handler.h
@@ -21,6 +21,23 @@ class BinaryValue;
class DictionaryValue;
}
+namespace blink {
+class WebMediaStream;
+}
+
+namespace net {
+class IPEndPoint;
+}
+
+namespace media {
+class AudioCapturerSource;
+class AudioParameters;
+class VideoCapturerSource;
+namespace cast {
+struct FrameReceiverConfig;
+}
+}
+
namespace extensions {
// Native code that handle chrome.webrtc custom bindings.
@@ -52,6 +69,8 @@ class CastStreamingNativeHandler : public ObjectBackedNativeHandler {
const v8::FunctionCallbackInfo<v8::Value>& args);
void StopCastUdpTransport(
const v8::FunctionCallbackInfo<v8::Value>& args);
+ void StartCastRtpReceiver(
+ const v8::FunctionCallbackInfo<v8::Value>& args);
void ToggleLogging(const v8::FunctionCallbackInfo<v8::Value>& args);
void GetRawEvents(const v8::FunctionCallbackInfo<v8::Value>& args);
@@ -67,6 +86,11 @@ class CastStreamingNativeHandler : public ObjectBackedNativeHandler {
void CallStopCallback(int stream_id);
void CallErrorCallback(int stream_id, const std::string& message);
+ void CallReceiverCB(
Alpha Left Google 2015/02/25 20:37:28 Please be consistent with the rest of this file, i
hubbe 2015/02/28 00:17:12 Renamed to AddTracksToMediaStream
+ const std::string& url,
+ const media::AudioParameters& params,
+ scoped_refptr<media::AudioCapturerSource> audio,
+ scoped_ptr<media::VideoCapturerSource> video);
void CallGetRawEventsCallback(int transport_id,
scoped_ptr<base::BinaryValue> raw_events);
void CallGetStatsCallback(int transport_id,
@@ -77,6 +101,16 @@ class CastStreamingNativeHandler : public ObjectBackedNativeHandler {
CastRtpStream* GetRtpStreamOrThrow(int stream_id) const;
CastUdpTransport* GetUdpTransportOrThrow(int transport_id) const;
+ bool FrameReceiverFromArg(
Alpha Left Google 2015/02/25 20:37:28 Should be FrameReceiverConfigFromArg.
hubbe 2015/02/28 00:17:12 Done.
+ v8::Isolate* isolate,
+ const v8::Handle<v8::Value>& arg,
+ media::cast::FrameReceiverConfig* config);
+
+ bool IPEndPointFromArg(v8::Isolate* isolate,
+ const v8::Handle<v8::Value>& arg,
+ bool empty_ok,
+ net::IPEndPoint* ip_endpoint);
+
int last_transport_id_;
typedef std::map<int, linked_ptr<CastRtpStream> > RtpStreamMap;

Powered by Google App Engine
This is Rietveld 408576698