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 // A client specific QuicSession subclass. | 5 // A client specific QuicSession subclass. |
6 | 6 |
7 #ifndef NET_TOOLS_QUIC_QUIC_CLIENT_SESSION_H_ | 7 #ifndef NET_TOOLS_QUIC_QUIC_CLIENT_SESSION_H_ |
8 #define NET_TOOLS_QUIC_QUIC_CLIENT_SESSION_H_ | 8 #define NET_TOOLS_QUIC_QUIC_CLIENT_SESSION_H_ |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
(...skipping 19 matching lines...) Expand all Loading... |
30 const QuicServerId& server_id, | 30 const QuicServerId& server_id, |
31 QuicCryptoClientConfig* crypto_config, | 31 QuicCryptoClientConfig* crypto_config, |
32 QuicClientPushPromiseIndex* push_promise_index); | 32 QuicClientPushPromiseIndex* push_promise_index); |
33 ~QuicClientSession() override; | 33 ~QuicClientSession() override; |
34 // Set up the QuicClientSession. Must be called prior to use. | 34 // Set up the QuicClientSession. Must be called prior to use. |
35 void Initialize() override; | 35 void Initialize() override; |
36 | 36 |
37 // QuicSession methods: | 37 // QuicSession methods: |
38 QuicSpdyClientStream* CreateOutgoingDynamicStream( | 38 QuicSpdyClientStream* CreateOutgoingDynamicStream( |
39 SpdyPriority priority) override; | 39 SpdyPriority priority) override; |
40 QuicCryptoClientStreamBase* GetCryptoStream() override; | 40 QuicCryptoClientStreamBase* GetMutableCryptoStream() override; |
| 41 const QuicCryptoClientStreamBase* GetCryptoStream() const override; |
41 | 42 |
42 bool IsAuthorized(const std::string& authority) override; | 43 bool IsAuthorized(const std::string& authority) override; |
43 | 44 |
44 // QuicClientSessionBase methods: | 45 // QuicClientSessionBase methods: |
45 void OnProofValid(const QuicCryptoClientConfig::CachedState& cached) override; | 46 void OnProofValid(const QuicCryptoClientConfig::CachedState& cached) override; |
46 void OnProofVerifyDetailsAvailable( | 47 void OnProofVerifyDetailsAvailable( |
47 const ProofVerifyDetails& verify_details) override; | 48 const ProofVerifyDetails& verify_details) override; |
48 | 49 |
49 // Performs a crypto handshake with the server. | 50 // Performs a crypto handshake with the server. |
50 virtual void CryptoConnect(); | 51 virtual void CryptoConnect(); |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
89 // If this is set to false, the client will ignore server GOAWAYs and allow | 90 // If this is set to false, the client will ignore server GOAWAYs and allow |
90 // the creation of streams regardless of the high chance they will fail. | 91 // the creation of streams regardless of the high chance they will fail. |
91 bool respect_goaway_; | 92 bool respect_goaway_; |
92 | 93 |
93 DISALLOW_COPY_AND_ASSIGN(QuicClientSession); | 94 DISALLOW_COPY_AND_ASSIGN(QuicClientSession); |
94 }; | 95 }; |
95 | 96 |
96 } // namespace net | 97 } // namespace net |
97 | 98 |
98 #endif // NET_TOOLS_QUIC_QUIC_CLIENT_SESSION_H_ | 99 #endif // NET_TOOLS_QUIC_QUIC_CLIENT_SESSION_H_ |
OLD | NEW |