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/quic/quic_crypto_client_stream.h" | 5 #include "net/quic/quic_crypto_client_stream.h" |
6 | 6 |
| 7 #include <string> |
| 8 |
7 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
8 #include "net/quic/crypto/crypto_protocol.h" | 10 #include "net/quic/crypto/crypto_protocol.h" |
9 #include "net/quic/crypto/crypto_utils.h" | 11 #include "net/quic/crypto/crypto_utils.h" |
10 #include "net/quic/crypto/null_encrypter.h" | 12 #include "net/quic/crypto/null_encrypter.h" |
11 #include "net/quic/quic_client_session_base.h" | 13 #include "net/quic/quic_client_session_base.h" |
12 #include "net/quic/quic_protocol.h" | 14 #include "net/quic/quic_protocol.h" |
13 #include "net/quic/quic_session.h" | 15 #include "net/quic/quic_session.h" |
14 | 16 |
| 17 using std::string; |
| 18 |
15 namespace net { | 19 namespace net { |
16 | 20 |
17 QuicCryptoClientStream::ChannelIDSourceCallbackImpl:: | 21 QuicCryptoClientStream::ChannelIDSourceCallbackImpl:: |
18 ChannelIDSourceCallbackImpl(QuicCryptoClientStream* stream) | 22 ChannelIDSourceCallbackImpl(QuicCryptoClientStream* stream) |
19 : stream_(stream) {} | 23 : stream_(stream) {} |
20 | 24 |
21 QuicCryptoClientStream::ChannelIDSourceCallbackImpl:: | 25 QuicCryptoClientStream::ChannelIDSourceCallbackImpl:: |
22 ~ChannelIDSourceCallbackImpl() {} | 26 ~ChannelIDSourceCallbackImpl() {} |
23 | 27 |
24 void QuicCryptoClientStream::ChannelIDSourceCallbackImpl::Run( | 28 void QuicCryptoClientStream::ChannelIDSourceCallbackImpl::Run( |
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
592 } | 596 } |
593 } | 597 } |
594 return false; | 598 return false; |
595 } | 599 } |
596 | 600 |
597 QuicClientSessionBase* QuicCryptoClientStream::client_session() { | 601 QuicClientSessionBase* QuicCryptoClientStream::client_session() { |
598 return reinterpret_cast<QuicClientSessionBase*>(session()); | 602 return reinterpret_cast<QuicClientSessionBase*>(session()); |
599 } | 603 } |
600 | 604 |
601 } // namespace net | 605 } // namespace net |
OLD | NEW |