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

Unified Diff: chrome/renderer/media/cast_udp_transport.h

Issue 83043005: Cast Extensions API: Factory method for creating a cast session (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove castSendTransport.create Created 7 years, 1 month 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_udp_transport.h
diff --git a/chrome/renderer/media/cast_udp_transport.h b/chrome/renderer/media/cast_udp_transport.h
index 1673f974993fdb6c1f1ca860c087a54164409114..1282a55656a272ec5c31dff9096a463c6423e933 100644
--- a/chrome/renderer/media/cast_udp_transport.h
+++ b/chrome/renderer/media/cast_udp_transport.h
@@ -11,26 +11,17 @@
class CastSession;
-// This class represents an end point to which communication is done by
-// UDP. The interface does not allow direct access to a UDP socket but
-// represents a transport mechanism.
-//
-// CastUdpTransport creates a CastSession and then shares it with
-// multiple CastSendTransports. This is because CastSession corresponds
-// to only one remote peer.
+// This class represents the transport mechanism used by Cast RTP streams
+// to connect to a remote client. It specifies the destination address
+// and network protocol used to send Cast RTP streams.
class CastUdpTransport {
public:
- CastUdpTransport();
+ CastUdpTransport(const scoped_refptr<CastSession>& session);
not at google - send to devlin 2013/11/25 19:41:11 explicit but oops I didn't mean to go into media/
Alpha Left Google 2013/11/26 04:22:45 Done.
~CastUdpTransport();
- // Begin the transport by specifying the remote IP address.
- // The transport will use UDP.
+ // Specify the remote IP address.
void Start(const net::HostPortPair& remote_address);
- scoped_refptr<CastSession> cast_session() const {
- return cast_session_;
- }
-
private:
const scoped_refptr<CastSession> cast_session_;

Powered by Google App Engine
This is Rietveld 408576698