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

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

Issue 1577123004: Use rtppacketutil.h in socket_host*.cc (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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.cc
diff --git a/content/browser/renderer_host/p2p/socket_host_udp.cc b/content/browser/renderer_host/p2p/socket_host_udp.cc
index 0dbfcec42653f2c5784260830c076ce515ee3fcd..668d495c93af555587532ec14b7bfe50442d3b74 100644
--- a/content/browser/renderer_host/p2p/socket_host_udp.cc
+++ b/content/browser/renderer_host/p2p/socket_host_udp.cc
@@ -19,7 +19,7 @@
#include "net/base/io_buffer.h"
#include "net/base/net_errors.h"
#include "net/base/net_util.h"
-#include "third_party/webrtc/base/asyncpacketsocket.h"
+#include "third_party/libjingle/source/talk/media/base/rtputils.h"
namespace {
@@ -294,9 +294,10 @@ void P2PSocketHostUdp::DoSend(const PendingPacket& packet) {
}
base::TimeTicks send_time = base::TimeTicks::Now();
-
- packet_processing_helpers::ApplyPacketOptions(
- packet.data->data(), packet.size, packet.packet_options, 0);
+ cricket::ApplyPacketOptions(reinterpret_cast<uint8_t*>(packet.data->data()),
+ packet.size,
+ packet.packet_options.packet_time_params,
+ (send_time - base::TimeTicks()).InMicroseconds());
auto callback_binding =
base::Bind(&P2PSocketHostUdp::OnSend, base::Unretained(this), packet.id,
packet.packet_options.packet_id, send_time);
« no previous file with comments | « content/browser/renderer_host/p2p/socket_host_tcp.cc ('k') | content/browser/renderer_host/p2p/socket_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698