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