| 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" |
| 11 #include "net/quic/core/crypto/crypto_utils.h" | 11 #include "net/quic/core/crypto/crypto_utils.h" |
| 12 #include "net/quic/core/quic_connection.h" | 12 #include "net/quic/core/quic_connection.h" |
| 13 #include "net/quic/core/quic_flags.h" | 13 #include "net/quic/core/quic_flags.h" |
| 14 #include "net/quic/core/quic_session.h" | 14 #include "net/quic/core/quic_session.h" |
| 15 #include "net/quic/core/quic_utils.h" | 15 #include "net/quic/core/quic_utils.h" |
| 16 | 16 |
| 17 using std::string; | 17 using std::string; |
| 18 using base::StringPiece; | 18 using base::StringPiece; |
| 19 using net::SpdyPriority; | 19 using net::SpdyPriority; |
| 20 | 20 |
| 21 namespace net { | 21 namespace net { |
| 22 | 22 |
| 23 #define ENDPOINT \ | 23 #define ENDPOINT \ |
| 24 (session()->perspective() == Perspective::IS_SERVER ? "Server: " : "Client:" \ | 24 (session()->perspective() == Perspective::IS_SERVER ? "Server: " : "Client:" \ |
| 25 " ") | 25 " ") |
| 26 | 26 |
| 27 QuicCryptoStream::QuicCryptoStream(QuicSession* session) | 27 QuicCryptoStream::QuicCryptoStream(QuicSession* session) |
| 28 : ReliableQuicStream(kCryptoStreamId, session), | 28 : QuicStream(kCryptoStreamId, session), |
| 29 encryption_established_(false), | 29 encryption_established_(false), |
| 30 handshake_confirmed_(false), | 30 handshake_confirmed_(false), |
| 31 crypto_negotiated_params_(new QuicCryptoNegotiatedParameters) { | 31 crypto_negotiated_params_(new QuicCryptoNegotiatedParameters) { |
| 32 crypto_framer_.set_visitor(this); | 32 crypto_framer_.set_visitor(this); |
| 33 // The crypto stream is exempt from connection level flow control. | 33 // The crypto stream is exempt from connection level flow control. |
| 34 DisableConnectionFlowControlForThisStream(); | 34 DisableConnectionFlowControlForThisStream(); |
| 35 } | 35 } |
| 36 | 36 |
| 37 QuicCryptoStream::~QuicCryptoStream() {} | 37 QuicCryptoStream::~QuicCryptoStream() {} |
| 38 | 38 |
| (...skipping 77 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 |