| 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 25 matching lines...) Expand all Loading... |
| 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* GetCryptoStream() override; |
| 41 | 41 |
| 42 bool IsAuthorized(const std::string& authority) override; | 42 bool IsAuthorized(const std::string& authority) override; |
| 43 | 43 |
| 44 // QuicClientSessionBase methods: | 44 // QuicClientSessionBase methods: |
| 45 void OnProofValid(const QuicCryptoClientConfig::CachedState& cached) override; | 45 void OnProofValid(const QuicCryptoClientConfig::CachedState& cached) override; |
| 46 void OnChannelValid() 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 void CryptoConnect(); | 51 void CryptoConnect(); |
| 51 | 52 |
| 52 // Returns the number of client hello messages that have been sent on the | 53 // Returns the number of client hello messages that have been sent on the |
| 53 // crypto stream. If the handshake has completed then this is one greater | 54 // crypto stream. If the handshake has completed then this is one greater |
| 54 // than the number of round-trips needed for the handshake. | 55 // than the number of round-trips needed for the handshake. |
| 55 int GetNumSentClientHellos() const; | 56 int GetNumSentClientHellos() const; |
| (...skipping 33 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 |