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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 session()->connection()->SendConnectionCloseWithDetails(error, details); | 50 session()->connection()->SendConnectionCloseWithDetails(error, details); |
51 } | 51 } |
52 | 52 |
53 void QuicCryptoStream::SendHandshakeMessage( | 53 void QuicCryptoStream::SendHandshakeMessage( |
54 const CryptoHandshakeMessage& message) { | 54 const CryptoHandshakeMessage& message) { |
55 const QuicData& data = message.GetSerialized(); | 55 const QuicData& data = message.GetSerialized(); |
56 // TODO(wtc): check the return value. | 56 // TODO(wtc): check the return value. |
57 WriteData(string(data.data(), data.length()), false); | 57 WriteData(string(data.data(), data.length()), false); |
58 } | 58 } |
59 | 59 |
60 const QuicNegotiatedParameters& | |
61 QuicCryptoStream::negotiated_params() const { | |
62 return negotiated_params_; | |
63 } | |
64 | |
65 const QuicCryptoNegotiatedParameters& | 60 const QuicCryptoNegotiatedParameters& |
66 QuicCryptoStream::crypto_negotiated_params() const { | 61 QuicCryptoStream::crypto_negotiated_params() const { |
67 return crypto_negotiated_params_; | 62 return crypto_negotiated_params_; |
68 } | 63 } |
69 | 64 |
70 } // namespace net | 65 } // namespace net |
OLD | NEW |