#ifndef CHROME_RENDERER_MEDIA_CAST_UDP_TRANSPORT_H_
#define CHROME_RENDERER_MEDIA_CAST_UDP_TRANSPORT_H_
#include "base/basictypes.h"
#include "base/memory/ref_counted.h"
#include "base/memory/weak_ptr.h"
#include "net/base/ip_endpoint.h"
class CastSession;
class CastUdpTransport {
public:
explicit CastUdpTransport(const scoped_refptr<CastSession>& session);
virtual ~CastUdpTransport();
void SetDestination(const net::IPEndPoint& remote_address);
private:
const scoped_refptr<CastSession> cast_session_;
net::IPEndPoint remote_address_;
base::WeakPtrFactory<CastUdpTransport> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(CastUdpTransport);
};
#endif