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

Unified Diff: net/quic/quic_protocol.h

Issue 447093004: Land Recent QUIC Changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed indenation in QuicFramer.cc Created 6 years, 4 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/quic_framer_test.cc ('k') | net/quic/quic_protocol.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_protocol.h
diff --git a/net/quic/quic_protocol.h b/net/quic/quic_protocol.h
index ec94e4c7e57cbf534756a95b8d59117e6b99afaa..d95df71baf49f204931ea0586fb59044fa9f2314 100644
--- a/net/quic/quic_protocol.h
+++ b/net/quic/quic_protocol.h
@@ -69,6 +69,9 @@ const uint32 kDefaultFlowControlSendWindow = 16 * 1024; // 16 KB
// algorithms.
const size_t kMaxTcpCongestionWindow = 200;
+// Size of the socket receive buffer in bytes.
+const QuicByteCount kDefaultSocketReceiveBuffer = 256000;
+
// Don't allow a client to suggest an RTT longer than 15 seconds.
const uint32 kMaxInitialRoundTripTimeUs = 15 * kNumMicrosPerSecond;
@@ -700,7 +703,7 @@ void NET_EXPORT_PRIVATE InsertMissingPacketsBetween(
// compatibility.
enum CongestionFeedbackType {
kTCP, // Used to mimic TCP.
- kInterArrival, // Use additional inter arrival information.
+ kTimestamp, // Use additional inter arrival timestamp information.
};
// Defines for all types of congestion control algorithms that can be used in
@@ -724,9 +727,9 @@ struct NET_EXPORT_PRIVATE CongestionFeedbackMessageTCP {
QuicByteCount receive_window;
};
-struct NET_EXPORT_PRIVATE CongestionFeedbackMessageInterArrival {
- CongestionFeedbackMessageInterArrival();
- ~CongestionFeedbackMessageInterArrival();
+struct NET_EXPORT_PRIVATE CongestionFeedbackMessageTimestamp {
+ CongestionFeedbackMessageTimestamp();
+ ~CongestionFeedbackMessageTimestamp();
// The set of received packets since the last feedback was sent, along with
// their arrival times.
@@ -741,10 +744,10 @@ struct NET_EXPORT_PRIVATE QuicCongestionFeedbackFrame {
std::ostream& os, const QuicCongestionFeedbackFrame& c);
CongestionFeedbackType type;
- // This should really be a union, but since the inter arrival struct
+ // This should really be a union, but since the timestamp struct
// is non-trivial, C++ prohibits it.
CongestionFeedbackMessageTCP tcp;
- CongestionFeedbackMessageInterArrival inter_arrival;
+ CongestionFeedbackMessageTimestamp timestamp;
};
struct NET_EXPORT_PRIVATE QuicRstStreamFrame {
« no previous file with comments | « net/quic/quic_framer_test.cc ('k') | net/quic/quic_protocol.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698