#include "chrome/renderer/media/cast_udp_transport.h"
+#include "base/values.h"
#include "chrome/renderer/media/cast_session.h"
CastUdpTransport::CastUdpTransport(
const scoped_refptr<CastSession>& session)
- : cast_session_(session), weak_factory_(this) {
+ : cast_session_(session),
+ options_(new base::DictionaryValue),
+ weak_factory_(this) {
}
CastUdpTransport::~CastUdpTransport() {
VLOG(1) << "CastUdpTransport::SetDestination = "
<< remote_address.ToString();
remote_address_ = remote_address;
- cast_session_->StartUDP(remote_address);
+ cast_session_->StartUDP(remote_address,
+ make_scoped_ptr(options_->DeepCopy()));
+}
+
+void CastUdpTransport::SetOptions(scoped_ptr<base::DictionaryValue> options) {
+ options_.reset(options.release());
}