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/quic_crypto_stream.h" | 5 #include "net/quic/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/crypto/crypto_handshake.h" | 10 #include "net/quic/crypto/crypto_handshake.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 } | 51 } |
52 StringPiece data(static_cast<char*>(iov.iov_base), iov.iov_len); | 52 StringPiece data(static_cast<char*>(iov.iov_base), iov.iov_len); |
53 if (!crypto_framer_.ProcessInput(data)) { | 53 if (!crypto_framer_.ProcessInput(data)) { |
54 CloseConnection(crypto_framer_.error()); | 54 CloseConnection(crypto_framer_.error()); |
55 return; | 55 return; |
56 } | 56 } |
57 sequencer()->MarkConsumed(iov.iov_len); | 57 sequencer()->MarkConsumed(iov.iov_len); |
58 } | 58 } |
59 } | 59 } |
60 | 60 |
61 QuicPriority QuicCryptoStream::EffectivePriority() const { | 61 QuicPriority QuicCryptoStream::Priority() const { |
62 return QuicUtils::HighestPriority(); | 62 return QuicUtils::HighestPriority(); |
63 } | 63 } |
64 | 64 |
65 void QuicCryptoStream::SendHandshakeMessage( | 65 void QuicCryptoStream::SendHandshakeMessage( |
66 const CryptoHandshakeMessage& message) { | 66 const CryptoHandshakeMessage& message) { |
67 SendHandshakeMessage(message, nullptr); | 67 SendHandshakeMessage(message, nullptr); |
68 } | 68 } |
69 | 69 |
70 void QuicCryptoStream::SendHandshakeMessage( | 70 void QuicCryptoStream::SendHandshakeMessage( |
71 const CryptoHandshakeMessage& message, | 71 const CryptoHandshakeMessage& message, |
(...skipping 22 matching lines...) Expand all Loading... |
94 result_len, | 94 result_len, |
95 result); | 95 result); |
96 } | 96 } |
97 | 97 |
98 const QuicCryptoNegotiatedParameters& | 98 const QuicCryptoNegotiatedParameters& |
99 QuicCryptoStream::crypto_negotiated_params() const { | 99 QuicCryptoStream::crypto_negotiated_params() const { |
100 return crypto_negotiated_params_; | 100 return crypto_negotiated_params_; |
101 } | 101 } |
102 | 102 |
103 } // namespace net | 103 } // namespace net |
OLD | NEW |