summaryrefslogtreecommitdiffstats
path: root/net/quic/p2p
diff options
context:
space:
mode:
Diffstat (limited to 'net/quic/p2p')
-rw-r--r--net/quic/p2p/quic_p2p_session.cc2
-rw-r--r--net/quic/p2p/quic_p2p_session.h4
2 files changed, 5 insertions, 1 deletions
diff --git a/net/quic/p2p/quic_p2p_session.cc b/net/quic/p2p/quic_p2p_session.cc
index 6bd17d6..f165bf7 100644
--- a/net/quic/p2p/quic_p2p_session.cc
+++ b/net/quic/p2p/quic_p2p_session.cc
@@ -124,7 +124,7 @@ int QuicP2PSession::DoReadComplete(int result) {
return result;
}
- QuicEncryptedPacket packet(read_buffer_->data(), result);
+ QuicReceivedPacket packet(read_buffer_->data(), result, clock_.Now());
connection()->ProcessUdpPacket(connection()->self_address(),
connection()->peer_address(), packet);
return OK;
diff --git a/net/quic/p2p/quic_p2p_session.h b/net/quic/p2p/quic_p2p_session.h
index 734b6e59..1f821d3 100644
--- a/net/quic/p2p/quic_p2p_session.h
+++ b/net/quic/p2p/quic_p2p_session.h
@@ -10,6 +10,7 @@
#include "base/strings/string_piece.h"
#include "net/quic/p2p/quic_p2p_stream.h"
#include "net/quic/quic_client_session_base.h"
+#include "net/quic/quic_clock.h"
#include "net/quic/quic_protocol.h"
namespace net {
@@ -82,6 +83,9 @@ class NET_EXPORT QuicP2PSession : public QuicSession {
ReadState read_state_ = READ_STATE_DO_READ;
scoped_refptr<IOBuffer> read_buffer_;
+ // For recording receipt time
+ QuicClock clock_;
+
DISALLOW_COPY_AND_ASSIGN(QuicP2PSession);
};