OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |