| 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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 return true; | 103 return true; |
| 104 } | 104 } |
| 105 | 105 |
| 106 QuicSpdyStream* QuicClientSession::CreateIncomingDynamicStream( | 106 QuicSpdyStream* QuicClientSession::CreateIncomingDynamicStream( |
| 107 QuicStreamId id) { | 107 QuicStreamId id) { |
| 108 if (!ShouldCreateIncomingDynamicStream(id)) { | 108 if (!ShouldCreateIncomingDynamicStream(id)) { |
| 109 return nullptr; | 109 return nullptr; |
| 110 } | 110 } |
| 111 QuicSpdyStream* stream = new QuicSpdyClientStream(id, this); | 111 QuicSpdyStream* stream = new QuicSpdyClientStream(id, this); |
| 112 stream->CloseWriteSide(); | 112 stream->CloseWriteSide(); |
| 113 ActivateStream(stream); |
| 113 return stream; | 114 return stream; |
| 114 } | 115 } |
| 115 | 116 |
| 116 QuicCryptoClientStreamBase* QuicClientSession::CreateQuicCryptoStream() { | 117 QuicCryptoClientStreamBase* QuicClientSession::CreateQuicCryptoStream() { |
| 117 return new QuicCryptoClientStream( | 118 return new QuicCryptoClientStream( |
| 118 server_id_, this, new ProofVerifyContextChromium(0, BoundNetLog()), | 119 server_id_, this, new ProofVerifyContextChromium(0, BoundNetLog()), |
| 119 crypto_config_, this); | 120 crypto_config_, this); |
| 120 } | 121 } |
| 121 | 122 |
| 122 bool QuicClientSession::IsAuthorized(const string& authority) { | 123 bool QuicClientSession::IsAuthorized(const string& authority) { |
| 123 return true; | 124 return true; |
| 124 } | 125 } |
| 125 | 126 |
| 126 } // namespace net | 127 } // namespace net |
| OLD | NEW |