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

Unified Diff: net/quic/core/quic_protocol.cc

Issue 2403233003: Automated rollback of internal change 130388085. (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « net/quic/core/quic_protocol.h ('k') | net/tools/quic/end_to_end_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_protocol.cc
diff --git a/net/quic/core/quic_protocol.cc b/net/quic/core/quic_protocol.cc
index 34f40ec86a5a3c40e4c643e7d667bfddd6567899..adf845e23e8f1bc3be5267cfd482fb23398a10cf 100644
--- a/net/quic/core/quic_protocol.cc
+++ b/net/quic/core/quic_protocol.cc
@@ -713,40 +713,33 @@ ostream& operator<<(ostream& os, const QuicEncryptedPacket& s) {
QuicReceivedPacket::QuicReceivedPacket(const char* buffer,
size_t length,
QuicTime receipt_time)
- : QuicReceivedPacket(buffer,
- length,
- receipt_time,
- false /* owns_buffer */) {}
+ : QuicEncryptedPacket(buffer, length),
+ receipt_time_(receipt_time),
+ ttl_(0) {}
QuicReceivedPacket::QuicReceivedPacket(const char* buffer,
size_t length,
QuicTime receipt_time,
bool owns_buffer)
- : QuicReceivedPacket(buffer,
- length,
- receipt_time,
- owns_buffer,
- false /* potentially_small_mtu */,
- -1 /* ttl */,
- false /* ttl_valid */) {}
+ : QuicEncryptedPacket(buffer, length, owns_buffer),
+ receipt_time_(receipt_time),
+ ttl_(0) {}
QuicReceivedPacket::QuicReceivedPacket(const char* buffer,
size_t length,
QuicTime receipt_time,
bool owns_buffer,
- bool potentially_small_mtu,
int ttl,
bool ttl_valid)
: QuicEncryptedPacket(buffer, length, owns_buffer),
receipt_time_(receipt_time),
- ttl_(ttl_valid ? ttl : -1),
- potentially_small_mtu_(potentially_small_mtu) {}
+ ttl_(ttl_valid ? ttl : -1) {}
QuicReceivedPacket* QuicReceivedPacket::Clone() const {
char* buffer = new char[this->length()];
memcpy(buffer, this->data(), this->length());
return new QuicReceivedPacket(buffer, this->length(), receipt_time(), true,
- potentially_small_mtu(), ttl(), ttl() >= 0);
+ ttl(), ttl() >= 0);
}
ostream& operator<<(ostream& os, const QuicReceivedPacket& s) {
« no previous file with comments | « net/quic/core/quic_protocol.h ('k') | net/tools/quic/end_to_end_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698