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

Side by Side Diff: net/quic/core/quic_crypto_stream.cc

Issue 2516033003: Landing Recent QUIC changes until Mon Nov 14 04:43:50 2016 +0000 (Closed)
Patch Set: Remove unused UpdatePacketGapSentHistogram() function. Created 4 years 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 unified diff | Download patch
« no previous file with comments | « net/quic/core/quic_crypto_server_stream_test.cc ('k') | net/quic/core/quic_error_codes.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/quic/core/quic_crypto_stream.h" 5 #include "net/quic/core/quic_crypto_stream.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/strings/string_piece.h" 9 #include "base/strings/string_piece.h"
10 #include "net/quic/core/crypto/crypto_handshake.h" 10 #include "net/quic/core/crypto/crypto_handshake.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 return QuicPacketCreator::StreamFramePacketOverhead( 42 return QuicPacketCreator::StreamFramePacketOverhead(
43 version, PACKET_8BYTE_CONNECTION_ID, 43 version, PACKET_8BYTE_CONNECTION_ID,
44 /*include_version=*/true, 44 /*include_version=*/true,
45 /*include_path_id=*/true, 45 /*include_path_id=*/true,
46 /*include_diversification_nonce=*/true, PACKET_1BYTE_PACKET_NUMBER, 46 /*include_diversification_nonce=*/true, PACKET_1BYTE_PACKET_NUMBER,
47 /*offset=*/0); 47 /*offset=*/0);
48 } 48 }
49 49
50 void QuicCryptoStream::OnError(CryptoFramer* framer) { 50 void QuicCryptoStream::OnError(CryptoFramer* framer) {
51 DLOG(WARNING) << "Error processing crypto data: " 51 DLOG(WARNING) << "Error processing crypto data: "
52 << QuicUtils::ErrorToString(framer->error()); 52 << QuicErrorCodeToString(framer->error());
53 } 53 }
54 54
55 void QuicCryptoStream::OnHandshakeMessage( 55 void QuicCryptoStream::OnHandshakeMessage(
56 const CryptoHandshakeMessage& message) { 56 const CryptoHandshakeMessage& message) {
57 DVLOG(1) << ENDPOINT << "Received " << message.DebugString(); 57 DVLOG(1) << ENDPOINT << "Received " << message.DebugString();
58 session()->OnCryptoHandshakeMessageReceived(message); 58 session()->OnCryptoHandshakeMessageReceived(message);
59 } 59 }
60 60
61 void QuicCryptoStream::OnDataAvailable() { 61 void QuicCryptoStream::OnDataAvailable() {
62 struct iovec iov; 62 struct iovec iov;
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 "EXPORTER-Token-Binding", 116 "EXPORTER-Token-Binding",
117 /* context= */ "", 32, result); 117 /* context= */ "", 32, result);
118 } 118 }
119 119
120 const QuicCryptoNegotiatedParameters& 120 const QuicCryptoNegotiatedParameters&
121 QuicCryptoStream::crypto_negotiated_params() const { 121 QuicCryptoStream::crypto_negotiated_params() const {
122 return *crypto_negotiated_params_; 122 return *crypto_negotiated_params_;
123 } 123 }
124 124
125 } // namespace net 125 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/core/quic_crypto_server_stream_test.cc ('k') | net/quic/core/quic_error_codes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698