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/tools/quic/quic_reliable_client_stream.h" | 9 #include "net/tools/quic/quic_reliable_client_stream.h" |
10 #include "net/tools/quic/quic_spdy_client_stream.h" | 10 #include "net/tools/quic/quic_spdy_client_stream.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 } | 48 } |
49 | 49 |
50 QuicCryptoClientStream* QuicClientSession::GetCryptoStream() { | 50 QuicCryptoClientStream* QuicClientSession::GetCryptoStream() { |
51 return &crypto_stream_; | 51 return &crypto_stream_; |
52 } | 52 } |
53 | 53 |
54 bool QuicClientSession::CryptoConnect() { | 54 bool QuicClientSession::CryptoConnect() { |
55 return crypto_stream_.CryptoConnect(); | 55 return crypto_stream_.CryptoConnect(); |
56 } | 56 } |
57 | 57 |
| 58 int QuicClientSession::GetNumSentClientHellos() const { |
| 59 return crypto_stream_.num_sent_client_hellos(); |
| 60 } |
| 61 |
58 ReliableQuicStream* QuicClientSession::CreateIncomingReliableStream( | 62 ReliableQuicStream* QuicClientSession::CreateIncomingReliableStream( |
59 QuicStreamId id) { | 63 QuicStreamId id) { |
60 DLOG(ERROR) << "Server push not supported"; | 64 DLOG(ERROR) << "Server push not supported"; |
61 return NULL; | 65 return NULL; |
62 } | 66 } |
63 | 67 |
64 } // namespace tools | 68 } // namespace tools |
65 } // namespace net | 69 } // namespace net |
OLD | NEW |