| Index: content/renderer/p2p/socket_client.cc
|
| diff --git a/content/renderer/p2p/socket_client.cc b/content/renderer/p2p/socket_client.cc
|
| index 57e03398986e6c6f15da00b4318c67aa9d448695..64049417ab5a9a775058f1655d7983ce19a37165 100644
|
| --- a/content/renderer/p2p/socket_client.cc
|
| +++ b/content/renderer/p2p/socket_client.cc
|
| @@ -63,8 +63,10 @@ void P2PSocketClient::DoInit(P2PSocketType type,
|
| type, socket_id_, local_address, remote_address));
|
| }
|
|
|
| -void P2PSocketClient::Send(const net::IPEndPoint& address,
|
| - const std::vector<char>& data) {
|
| +void P2PSocketClient::SendWithDscp(
|
| + const net::IPEndPoint& address,
|
| + const std::vector<char>& data,
|
| + net::DiffServCodePoint dscp) {
|
| if (!ipc_message_loop_->BelongsToCurrentThread()) {
|
| ipc_message_loop_->PostTask(
|
| FROM_HERE, base::Bind(&P2PSocketClient::Send, this, address, data));
|
| @@ -77,10 +79,15 @@ void P2PSocketClient::Send(const net::IPEndPoint& address,
|
| uint64 unique_id = GetUniqueId(random_socket_id_, ++next_packet_id_);
|
| TRACE_EVENT_ASYNC_BEGIN0("p2p", "Send", unique_id);
|
| dispatcher_->SendP2PMessage(new P2PHostMsg_Send(socket_id_, address, data,
|
| - unique_id));
|
| + dscp, unique_id));
|
| }
|
| }
|
|
|
| +void P2PSocketClient::Send(const net::IPEndPoint& address,
|
| + const std::vector<char>& data) {
|
| + SendWithDscp(address, data, net::DSCP_DEFAULT);
|
| +}
|
| +
|
| void P2PSocketClient::Close() {
|
| DCHECK(delegate_message_loop_->BelongsToCurrentThread());
|
|
|
|
|