| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef NET_QUIC_QUIC_CLIENT_SESSION_BASE_H_ | 5 #ifndef NET_QUIC_QUIC_CLIENT_SESSION_BASE_H_ |
| 6 #define NET_QUIC_QUIC_CLIENT_SESSION_BASE_H_ | 6 #define NET_QUIC_QUIC_CLIENT_SESSION_BASE_H_ |
| 7 | 7 |
| 8 #include "net/quic/quic_crypto_client_stream.h" | 8 #include "net/quic/quic_crypto_client_stream.h" |
| 9 #include "net/quic/quic_session.h" | 9 #include "net/quic/quic_session.h" |
| 10 | 10 |
| 11 namespace net { | 11 namespace net { |
| 12 | 12 |
| 13 // Base class for all client-specific QuicSession subclasses. | 13 // Base class for all client-specific QuicSession subclasses. |
| 14 class NET_EXPORT_PRIVATE QuicClientSessionBase : public QuicSession { | 14 class NET_EXPORT_PRIVATE QuicClientSessionBase : public QuicSession { |
| 15 public: | 15 public: |
| 16 QuicClientSessionBase(QuicConnection* connection, | 16 QuicClientSessionBase(QuicConnection* connection, |
| 17 uint32 max_flow_control_receive_window_bytes, | |
| 18 const QuicConfig& config); | 17 const QuicConfig& config); |
| 19 | 18 |
| 20 virtual ~QuicClientSessionBase(); | 19 virtual ~QuicClientSessionBase(); |
| 21 | 20 |
| 22 // Called when the proof in |cached| is marked valid. If this is a secure | 21 // Called when the proof in |cached| is marked valid. If this is a secure |
| 23 // QUIC session, then this will happen only after the proof verifier | 22 // QUIC session, then this will happen only after the proof verifier |
| 24 // completes. If this is an insecure QUIC connection, this will happen | 23 // completes. If this is an insecure QUIC connection, this will happen |
| 25 // as soon as a valid config is discovered (either from the cache or | 24 // as soon as a valid config is discovered (either from the cache or |
| 26 // from the server). | 25 // from the server). |
| 27 virtual void OnProofValid( | 26 virtual void OnProofValid( |
| 28 const QuicCryptoClientConfig::CachedState& cached) = 0; | 27 const QuicCryptoClientConfig::CachedState& cached) = 0; |
| 29 | 28 |
| 30 // Called when proof verification details become available, either because | 29 // Called when proof verification details become available, either because |
| 31 // proof verification is complete, or when cached details are used. This | 30 // proof verification is complete, or when cached details are used. This |
| 32 // will only be called for secure QUIC connections. | 31 // will only be called for secure QUIC connections. |
| 33 virtual void OnProofVerifyDetailsAvailable( | 32 virtual void OnProofVerifyDetailsAvailable( |
| 34 const ProofVerifyDetails& verify_details) = 0; | 33 const ProofVerifyDetails& verify_details) = 0; |
| 35 | 34 |
| 36 private: | 35 private: |
| 37 DISALLOW_COPY_AND_ASSIGN(QuicClientSessionBase); | 36 DISALLOW_COPY_AND_ASSIGN(QuicClientSessionBase); |
| 38 }; | 37 }; |
| 39 | 38 |
| 40 } // namespace net | 39 } // namespace net |
| 41 | 40 |
| 42 #endif // NET_QUIC_QUIC_CLIENT_SESSION_BASE_H_ | 41 #endif // NET_QUIC_QUIC_CLIENT_SESSION_BASE_H_ |
| OLD | NEW |