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

Unified Diff: chrome/renderer/media/cast_receiver_session.cc

Issue 938903003: Cast: Javascript bindings for cast receiver (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cast_receiver_session
Patch Set: comments addressed 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/media/cast_receiver_session.cc
diff --git a/chrome/renderer/media/cast_receiver_session.cc b/chrome/renderer/media/cast_receiver_session.cc
index 6870f2396c343397506e90d26105d2c31d841bbc..d1ba653c24a0ba793a8de76a20fc421ec9816522 100644
--- a/chrome/renderer/media/cast_receiver_session.cc
+++ b/chrome/renderer/media/cast_receiver_session.cc
@@ -8,6 +8,7 @@
#include "chrome/renderer/media/cast_receiver_audio_valve.h"
#include "content/public/renderer/render_thread.h"
#include "media/base/audio_capturer_source.h"
+#include "media/base/bind_to_current_loop.h"
#include "media/base/video_capturer_source.h"
#include "third_party/WebKit/public/platform/WebMediaStream.h"
#include "third_party/WebKit/public/platform/WebMediaStreamSource.h"
@@ -71,7 +72,8 @@ void CastReceiverSession::Start(
const net::IPEndPoint& remote_endpoint,
scoped_ptr<base::DictionaryValue> options,
const media::VideoCaptureFormat& capture_format,
- const StartCB& start_callback) {
+ const StartCB& start_callback,
+ const CastReceiverSessionDelegate::ErrorCallback& error_callback) {
audio_config_ = audio_config;
video_config_ = video_config;
format_ = capture_format;
@@ -84,7 +86,8 @@ void CastReceiverSession::Start(
local_endpoint,
remote_endpoint,
base::Passed(&options),
- format_));
+ format_,
+ media::BindToCurrentLoop(error_callback)));
scoped_refptr<media::AudioCapturerSource> audio(
new CastReceiverSession::AudioCapturerSource(this));
scoped_ptr<media::VideoCapturerSource> video(
« no previous file with comments | « chrome/renderer/media/cast_receiver_session.h ('k') | chrome/renderer/media/cast_receiver_session_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698