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/tools/quic/quic_client_session.h" | 5 #include "net/tools/quic/quic_client_session.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "net/quic/crypto/crypto_protocol.h" | 8 #include "net/quic/crypto/crypto_protocol.h" |
9 #include "net/quic/crypto/proof_verifier_chromium.h" | 9 #include "net/quic/crypto/proof_verifier_chromium.h" |
10 #include "net/quic/quic_server_id.h" | 10 #include "net/quic/quic_server_id.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 | 36 |
37 void QuicClientSession::OnProofVerifyDetailsAvailable( | 37 void QuicClientSession::OnProofVerifyDetailsAvailable( |
38 const ProofVerifyDetails& /*verify_details*/) {} | 38 const ProofVerifyDetails& /*verify_details*/) {} |
39 | 39 |
40 QuicSpdyClientStream* QuicClientSession::CreateOutgoingDynamicStream( | 40 QuicSpdyClientStream* QuicClientSession::CreateOutgoingDynamicStream( |
41 SpdyPriority priority) { | 41 SpdyPriority priority) { |
42 if (!crypto_stream_->encryption_established()) { | 42 if (!crypto_stream_->encryption_established()) { |
43 DVLOG(1) << "Encryption not active so no outgoing stream created."; | 43 DVLOG(1) << "Encryption not active so no outgoing stream created."; |
44 return nullptr; | 44 return nullptr; |
45 } | 45 } |
46 if (GetNumOpenOutgoingStreams() >= get_max_open_streams()) { | 46 if (GetNumOpenOutgoingStreams() >= max_open_outgoing_streams()) { |
47 DVLOG(1) << "Failed to create a new outgoing stream. " | 47 DVLOG(1) << "Failed to create a new outgoing stream. " |
48 << "Already " << GetNumOpenOutgoingStreams() << " open."; | 48 << "Already " << GetNumOpenOutgoingStreams() << " open."; |
49 return nullptr; | 49 return nullptr; |
50 } | 50 } |
51 if (goaway_received() && respect_goaway_) { | 51 if (goaway_received() && respect_goaway_) { |
52 DVLOG(1) << "Failed to create a new outgoing stream. " | 52 DVLOG(1) << "Failed to create a new outgoing stream. " |
53 << "Already received goaway."; | 53 << "Already received goaway."; |
54 return nullptr; | 54 return nullptr; |
55 } | 55 } |
56 QuicSpdyClientStream* stream = CreateClientStream(); | 56 QuicSpdyClientStream* stream = CreateClientStream(); |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 } | 104 } |
105 | 105 |
106 QuicCryptoClientStreamBase* QuicClientSession::CreateQuicCryptoStream() { | 106 QuicCryptoClientStreamBase* QuicClientSession::CreateQuicCryptoStream() { |
107 return new QuicCryptoClientStream( | 107 return new QuicCryptoClientStream( |
108 server_id_, this, new ProofVerifyContextChromium(0, BoundNetLog()), | 108 server_id_, this, new ProofVerifyContextChromium(0, BoundNetLog()), |
109 crypto_config_); | 109 crypto_config_); |
110 } | 110 } |
111 | 111 |
112 | 112 |
113 } // namespace net | 113 } // namespace net |
OLD | NEW |