| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 } | 53 } |
| 54 return data_len; | 54 return data_len; |
| 55 } | 55 } |
| 56 | 56 |
| 57 QuicPriority QuicCryptoStream::EffectivePriority() const { | 57 QuicPriority QuicCryptoStream::EffectivePriority() const { |
| 58 return QuicUtils::HighestPriority(); | 58 return QuicUtils::HighestPriority(); |
| 59 } | 59 } |
| 60 | 60 |
| 61 void QuicCryptoStream::SendHandshakeMessage( | 61 void QuicCryptoStream::SendHandshakeMessage( |
| 62 const CryptoHandshakeMessage& message) { | 62 const CryptoHandshakeMessage& message) { |
| 63 SendHandshakeMessage(message, NULL); | 63 SendHandshakeMessage(message, nullptr); |
| 64 } | 64 } |
| 65 | 65 |
| 66 void QuicCryptoStream::SendHandshakeMessage( | 66 void QuicCryptoStream::SendHandshakeMessage( |
| 67 const CryptoHandshakeMessage& message, | 67 const CryptoHandshakeMessage& message, |
| 68 QuicAckNotifier::DelegateInterface* delegate) { | 68 QuicAckNotifier::DelegateInterface* delegate) { |
| 69 DVLOG(1) << ENDPOINT << "Sending " << message.DebugString(); | 69 DVLOG(1) << ENDPOINT << "Sending " << message.DebugString(); |
| 70 session()->OnCryptoHandshakeMessageSent(message); | 70 session()->OnCryptoHandshakeMessageSent(message); |
| 71 const QuicData& data = message.GetSerialized(); | 71 const QuicData& data = message.GetSerialized(); |
| 72 // TODO(wtc): check the return value. | 72 // TODO(wtc): check the return value. |
| 73 WriteOrBufferData(string(data.data(), data.length()), false, delegate); | 73 WriteOrBufferData(string(data.data(), data.length()), false, delegate); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 90 result_len, | 90 result_len, |
| 91 result); | 91 result); |
| 92 } | 92 } |
| 93 | 93 |
| 94 const QuicCryptoNegotiatedParameters& | 94 const QuicCryptoNegotiatedParameters& |
| 95 QuicCryptoStream::crypto_negotiated_params() const { | 95 QuicCryptoStream::crypto_negotiated_params() const { |
| 96 return crypto_negotiated_params_; | 96 return crypto_negotiated_params_; |
| 97 } | 97 } |
| 98 | 98 |
| 99 } // namespace net | 99 } // namespace net |
| OLD | NEW |