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

Side by Side Diff: chrome/renderer/media/cast_udp_transport.h

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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_RENDERER_MEDIA_CAST_UDP_TRANSPORT_H_ 5 #ifndef CHROME_RENDERER_MEDIA_CAST_UDP_TRANSPORT_H_
6 #define CHROME_RENDERER_MEDIA_CAST_UDP_TRANSPORT_H_ 6 #define CHROME_RENDERER_MEDIA_CAST_UDP_TRANSPORT_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/ref_counted.h" 9 #include "base/memory/ref_counted.h"
10 #include "net/base/host_port_pair.h" 10 #include "net/base/host_port_pair.h"
11 11
12 class CastSession; 12 class CastSession;
13 13
14 // This class represents the transport mechanism used by Cast RTP streams 14 // This class represents the transport mechanism used by Cast RTP streams
15 // to connect to a remote client. It specifies the destination address 15 // to connect to a remote client. It specifies the destination address
16 // and network protocol used to send Cast RTP streams. 16 // and network protocol used to send Cast RTP streams.
17 class CastUdpTransport { 17 class CastUdpTransport {
18 public: 18 public:
19 explicit CastUdpTransport(const scoped_refptr<CastSession>& session); 19 explicit CastUdpTransport(const scoped_refptr<CastSession>& session);
20 ~CastUdpTransport(); 20 ~CastUdpTransport();
21 21
22 // Specify the remote IP address. 22 // Begin the transport by specifying the remote IP address.
23 void Start(const net::HostPortPair& remote_address); 23 // The transport will use UDP.
24 void Start(const net::IPEndPoint& remote_address);
24 25
25 private: 26 private:
26 const scoped_refptr<CastSession> cast_session_; 27 const scoped_refptr<CastSession> cast_session_;
27 28
28 DISALLOW_COPY_AND_ASSIGN(CastUdpTransport); 29 DISALLOW_COPY_AND_ASSIGN(CastUdpTransport);
29 }; 30 };
30 31
31 #endif // CHROME_RENDERER_MEDIA_CAST_UDP_TRANSPORT_H_ 32 #endif // CHROME_RENDERER_MEDIA_CAST_UDP_TRANSPORT_H_
OLDNEW
« no previous file with comments | « chrome/renderer/media/cast_session_delegate.cc ('k') | chrome/renderer/media/cast_udp_transport.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698