Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| 11 #include "net/base/ip_endpoint.h" | 11 #include "net/base/ip_endpoint.h" |
| 12 | 12 |
| 13 class CastSession; | 13 class CastSession; |
| 14 | 14 |
| 15 // This class represents the transport mechanism used by Cast RTP streams | 15 // This class represents the transport mechanism used by Cast RTP streams |
| 16 // to connect to a remote client. It specifies the destination address | 16 // to connect to a remote client. It specifies the destination address |
| 17 // and network protocol used to send Cast RTP streams. | 17 // and network protocol used to send Cast RTP streams. |
| 18 class CastUdpTransport { | 18 class CastUdpTransport { |
| 19 public: | 19 public: |
| 20 explicit CastUdpTransport(const scoped_refptr<CastSession>& session); | 20 explicit CastUdpTransport(const scoped_refptr<CastSession>& session); |
| 21 virtual ~CastUdpTransport(); | 21 virtual ~CastUdpTransport(); |
| 22 | 22 |
| 23 // Specify the remote IP address and port. | 23 // Specify the remote IP address and port. |
| 24 void SetDestination(const net::IPEndPoint& remote_address); | 24 void SetDestination(const net::IPEndPoint& remote_address); |
| 25 | 25 |
| 26 // Set options. | |
| 27 void SetOptions(const std::string& options); | |
|
Alpha Left Google
2014/09/09 00:30:46
I suggest this be base::DictionaryValue which is a
hubbe
2014/09/09 20:10:01
Done.
| |
| 28 | |
| 26 private: | 29 private: |
| 27 const scoped_refptr<CastSession> cast_session_; | 30 const scoped_refptr<CastSession> cast_session_; |
| 28 net::IPEndPoint remote_address_; | 31 net::IPEndPoint remote_address_; |
| 32 std::string options_; | |
| 29 base::WeakPtrFactory<CastUdpTransport> weak_factory_; | 33 base::WeakPtrFactory<CastUdpTransport> weak_factory_; |
| 30 | 34 |
| 31 DISALLOW_COPY_AND_ASSIGN(CastUdpTransport); | 35 DISALLOW_COPY_AND_ASSIGN(CastUdpTransport); |
| 32 }; | 36 }; |
| 33 | 37 |
| 34 #endif // CHROME_RENDERER_MEDIA_CAST_UDP_TRANSPORT_H_ | 38 #endif // CHROME_RENDERER_MEDIA_CAST_UDP_TRANSPORT_H_ |
| OLD | NEW |