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

Unified Diff: trunk/src/content/browser/renderer_host/p2p/socket_host_tcp.cc

Issue 197933002: Revert 256580 "This CL adds methods to manipulate RTP header ext..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 9 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: trunk/src/content/browser/renderer_host/p2p/socket_host_tcp.cc
===================================================================
--- trunk/src/content/browser/renderer_host/p2p/socket_host_tcp.cc (revision 256583)
+++ trunk/src/content/browser/renderer_host/p2p/socket_host_tcp.cc (working copy)
@@ -18,7 +18,6 @@
#include "net/socket/tcp_client_socket.h"
#include "net/url_request/url_request_context.h"
#include "net/url_request/url_request_context_getter.h"
-#include "third_party/libjingle/source/talk/base/asyncpacketsocket.h"
namespace {
@@ -319,7 +318,7 @@
}
}
- DoSend(to, data, options);
+ DoSend(to, data);
}
void P2PSocketHostTcpBase::WriteOrQueue(
@@ -451,17 +450,13 @@
}
void P2PSocketHostTcp::DoSend(const net::IPEndPoint& to,
- const std::vector<char>& data,
- const talk_base::PacketOptions& options) {
+ const std::vector<char>& data) {
int size = kPacketHeaderSize + data.size();
scoped_refptr<net::DrainableIOBuffer> buffer =
new net::DrainableIOBuffer(new net::IOBuffer(size), size);
*reinterpret_cast<uint16*>(buffer->data()) = base::HostToNet16(data.size());
memcpy(buffer->data() + kPacketHeaderSize, &data[0], data.size());
- packet_processing_helpers::ApplyPacketOptions(
- buffer->data(), buffer->BytesRemaining(), options, 0);
-
WriteOrQueue(buffer);
}
@@ -500,8 +495,7 @@
}
void P2PSocketHostStunTcp::DoSend(const net::IPEndPoint& to,
- const std::vector<char>& data,
- const talk_base::PacketOptions& options) {
+ const std::vector<char>& data) {
// Each packet is expected to have header (STUN/TURN ChannelData), where
// header contains message type and and length of message.
if (data.size() < kPacketHeaderSize + kPacketLengthOffset) {
@@ -528,9 +522,6 @@
new net::DrainableIOBuffer(new net::IOBuffer(size), size);
memcpy(buffer->data(), &data[0], data.size());
- packet_processing_helpers::ApplyPacketOptions(
- buffer->data(), data.size(), options, 0);
-
if (pad_bytes) {
char padding[4] = {0};
DCHECK_LE(pad_bytes, 4);

Powered by Google App Engine
This is Rietveld 408576698