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

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: fixed scope 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_send_transport.cc ('k') | chrome/renderer/media/cast_udp_transport.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..d6d5a5ce9d611c8eb67c89cf7eacf0765559e6e9 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();
+ explicit CastUdpTransport(const scoped_refptr<CastSession>& session);
~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_;
« no previous file with comments | « chrome/renderer/media/cast_send_transport.cc ('k') | chrome/renderer/media/cast_udp_transport.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698