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

Unified Diff: chrome/renderer/media/cast_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
« no previous file with comments | « chrome/renderer/media/cast_session.h ('k') | chrome/renderer/media/cast_session_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/media/cast_session.cc
diff --git a/chrome/renderer/media/cast_session.cc b/chrome/renderer/media/cast_session.cc
index 0990d3a1767cd684e748ecdf72a7713db0bad5eb..0983a2b083946f3de9f8d6e011f01a531c012476 100644
--- a/chrome/renderer/media/cast_session.cc
+++ b/chrome/renderer/media/cast_session.cc
@@ -85,7 +85,8 @@ void CastSession::StartVideo(const media::cast::VideoSenderConfig& config,
}
void CastSession::StartUDP(const net::IPEndPoint& remote_endpoint,
- scoped_ptr<base::DictionaryValue> options) {
+ scoped_ptr<base::DictionaryValue> options,
+ const ErrorCallback& error_callback) {
io_message_loop_proxy_->PostTask(
FROM_HERE,
base::Bind(
@@ -93,7 +94,8 @@ void CastSession::StartUDP(const net::IPEndPoint& remote_endpoint,
base::Unretained(delegate_.get()),
net::IPEndPoint(),
remote_endpoint,
- base::Passed(&options)));
+ base::Passed(&options),
+ media::BindToCurrentLoop(error_callback)));
}
void CastSession::ToggleLogging(bool is_audio, bool enable) {
« no previous file with comments | « chrome/renderer/media/cast_session.h ('k') | chrome/renderer/media/cast_session_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698