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

Unified Diff: content/browser/renderer_host/p2p/socket_host_udp.h

Issue 22381012: Allow p2p UDP packages to set DSCP (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: extra newline removed Created 7 years, 4 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
Index: content/browser/renderer_host/p2p/socket_host_udp.h
diff --git a/content/browser/renderer_host/p2p/socket_host_udp.h b/content/browser/renderer_host/p2p/socket_host_udp.h
index e9eb36393f4d5fe6c4561999e5ad4fc57b1403a1..22193561f4f302e392bebfd171ed357cc64b72dd 100644
--- a/content/browser/renderer_host/p2p/socket_host_udp.h
+++ b/content/browser/renderer_host/p2p/socket_host_udp.h
@@ -30,7 +30,8 @@ class CONTENT_EXPORT P2PSocketHostUdp : public P2PSocketHost {
virtual bool Init(const net::IPEndPoint& local_address,
const net::IPEndPoint& remote_address) OVERRIDE;
virtual void Send(const net::IPEndPoint& to,
- const std::vector<char>& data) OVERRIDE;
+ const std::vector<char>& data,
+ net::DiffServCodePoint dscp) OVERRIDE;
virtual P2PSocketHost* AcceptIncomingTcpConnection(
const net::IPEndPoint& remote_address, int id) OVERRIDE;
@@ -42,12 +43,14 @@ class CONTENT_EXPORT P2PSocketHostUdp : public P2PSocketHost {
struct PendingPacket {
PendingPacket(const net::IPEndPoint& to,
const std::vector<char>& content,
- uint64 id);
+ uint64 id,
+ net::DiffServCodePoint dscp);
~PendingPacket();
net::IPEndPoint to;
scoped_refptr<net::IOBuffer> data;
int size;
uint64 id;
+ net::DiffServCodePoint dscp;
};
void OnError();
@@ -67,6 +70,7 @@ class CONTENT_EXPORT P2PSocketHostUdp : public P2PSocketHost {
std::deque<PendingPacket> send_queue_;
bool send_pending_;
uint64 send_packet_count_;
+ net::DiffServCodePoint last_dscp_;
// Set of peer for which we have received STUN binding request or
// response or relay allocation request or response.

Powered by Google App Engine
This is Rietveld 408576698