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

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

Issue 2236973002: Landing Recent QUIC changes until 4AM, Aug 7, 2016 UTC-4 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: flip quic_sequencer_buffer_retire_block_in_time to true Created 4 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/core/quic_crypto_stream.h ('k') | net/quic/core/quic_end_to_end_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_crypto_stream.cc
diff --git a/net/quic/core/quic_crypto_stream.cc b/net/quic/core/quic_crypto_stream.cc
index cffd838047fd1c8df281aae2a43c7996253da8bc..879834d3c15be0ef4f83d60f75f05afc3fef2eaf 100644
--- a/net/quic/core/quic_crypto_stream.cc
+++ b/net/quic/core/quic_crypto_stream.cc
@@ -33,6 +33,17 @@ QuicCryptoStream::QuicCryptoStream(QuicSession* session)
DisableConnectionFlowControlForThisStream();
}
+// static
+QuicByteCount QuicCryptoStream::CryptoMessageFramingOverhead(
+ QuicVersion version) {
+ return QuicPacketCreator::StreamFramePacketOverhead(
+ version, PACKET_8BYTE_CONNECTION_ID,
+ /*include_version=*/true,
+ /*include_path_id=*/true,
+ /*include_diversification_nonce=*/true, PACKET_1BYTE_PACKET_NUMBER,
+ /*offset=*/0);
+}
+
void QuicCryptoStream::OnError(CryptoFramer* framer) {
DLOG(WARNING) << "Error processing crypto data: "
<< QuicUtils::ErrorToString(framer->error());
« no previous file with comments | « net/quic/core/quic_crypto_stream.h ('k') | net/quic/core/quic_end_to_end_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698