| 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/quic_server_id.h" | 9 #include "net/quic/quic_server_id.h" |
| 10 #include "net/tools/quic/quic_spdy_client_stream.h" | 10 #include "net/tools/quic/quic_spdy_client_stream.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 QuicSpdyClientStream* stream | 54 QuicSpdyClientStream* stream |
| 55 = new QuicSpdyClientStream(GetNextStreamId(), this); | 55 = new QuicSpdyClientStream(GetNextStreamId(), this); |
| 56 ActivateStream(stream); | 56 ActivateStream(stream); |
| 57 return stream; | 57 return stream; |
| 58 } | 58 } |
| 59 | 59 |
| 60 QuicCryptoClientStream* QuicClientSession::GetCryptoStream() { | 60 QuicCryptoClientStream* QuicClientSession::GetCryptoStream() { |
| 61 return crypto_stream_.get(); | 61 return crypto_stream_.get(); |
| 62 } | 62 } |
| 63 | 63 |
| 64 bool QuicClientSession::CryptoConnect() { | 64 void QuicClientSession::CryptoConnect() { |
| 65 DCHECK(flow_controller()); | 65 DCHECK(flow_controller()); |
| 66 return crypto_stream_->CryptoConnect(); | 66 crypto_stream_->CryptoConnect(); |
| 67 } | 67 } |
| 68 | 68 |
| 69 int QuicClientSession::GetNumSentClientHellos() const { | 69 int QuicClientSession::GetNumSentClientHellos() const { |
| 70 return crypto_stream_->num_sent_client_hellos(); | 70 return crypto_stream_->num_sent_client_hellos(); |
| 71 } | 71 } |
| 72 | 72 |
| 73 QuicDataStream* QuicClientSession::CreateIncomingDataStream( | 73 QuicDataStream* QuicClientSession::CreateIncomingDataStream( |
| 74 QuicStreamId id) { | 74 QuicStreamId id) { |
| 75 DLOG(ERROR) << "Server push not supported"; | 75 DLOG(ERROR) << "Server push not supported"; |
| 76 return nullptr; | 76 return nullptr; |
| 77 } | 77 } |
| 78 | 78 |
| 79 } // namespace tools | 79 } // namespace tools |
| 80 } // namespace net | 80 } // namespace net |
| OLD | NEW |