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

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

Issue 66293003: P2P <-> cast library integration v0.1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments addressed Created 7 years 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 7468a37984a2a93fe446c33ae03ce6a73e221db5..b1675afd6b578efd303d9a777880f86ef84fe5f1 100644
--- a/chrome/renderer/media/cast_session.cc
+++ b/chrome/renderer/media/cast_session.cc
@@ -20,6 +20,9 @@ CastSession::~CastSession() {
CHECK(io_message_loop_proxy_->DeleteSoon(FROM_HERE, delegate_.release()));
}
+CastSession::P2PSocketFactory::~P2PSocketFactory() {
+}
+
void CastSession::StartAudio(const media::cast::AudioSenderConfig& config) {
io_message_loop_proxy_->PostTask(FROM_HERE,
base::Bind(&CastSessionDelegate::StartAudio,
@@ -33,3 +36,13 @@ void CastSession::StartVideo(const media::cast::VideoSenderConfig& config) {
base::Unretained(delegate_.get()),
config));
}
+
+void CastSession::SetSocketFactory(scoped_ptr<P2PSocketFactory> socket_factory,
+ const net::IPEndPoint& remote_address) {
+ io_message_loop_proxy_->PostTask(
+ FROM_HERE,
+ base::Bind(&CastSessionDelegate::SetSocketFactory,
+ base::Unretained(delegate_.get()),
+ base::Passed(socket_factory.Pass()),
+ remote_address));
+}
« 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