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

Unified Diff: chrome/renderer/media/cast_udp_transport.cc

Issue 551883004: Cast: Let the extension control if DSCP is on or off. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments addressed Created 6 years, 3 months 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_udp_transport.h ('k') | media/cast/net/cast_transport_sender.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/media/cast_udp_transport.cc
diff --git a/chrome/renderer/media/cast_udp_transport.cc b/chrome/renderer/media/cast_udp_transport.cc
index d27c4e7bc0b5c84ed60f8b4b9deb334fa0eb0cd4..a862e3f67fbd040fd874d97b7df1d3b6acefd8c3 100644
--- a/chrome/renderer/media/cast_udp_transport.cc
+++ b/chrome/renderer/media/cast_udp_transport.cc
@@ -4,11 +4,14 @@
#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() {
@@ -18,5 +21,10 @@ void CastUdpTransport::SetDestination(const net::IPEndPoint& remote_address) {
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());
}
« no previous file with comments | « chrome/renderer/media/cast_udp_transport.h ('k') | media/cast/net/cast_transport_sender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698