| 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 QuicSession, which demuxes a single connection to individual streams. | 5 // A QuicSession, which demuxes a single connection to individual streams. |
| 6 | 6 |
| 7 #ifndef NET_QUIC_QUIC_SESSION_H_ | 7 #ifndef NET_QUIC_QUIC_SESSION_H_ |
| 8 #define NET_QUIC_QUIC_SESSION_H_ | 8 #define NET_QUIC_QUIC_SESSION_H_ |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 // Clients will call this function in the order: | 100 // Clients will call this function in the order: |
| 101 // ENCRYPTION_FIRST_ESTABLISHED | 101 // ENCRYPTION_FIRST_ESTABLISHED |
| 102 // zero or more ENCRYPTION_REESTABLISHED | 102 // zero or more ENCRYPTION_REESTABLISHED |
| 103 // HANDSHAKE_CONFIRMED | 103 // HANDSHAKE_CONFIRMED |
| 104 // | 104 // |
| 105 // Servers will simply call it once with HANDSHAKE_CONFIRMED. | 105 // Servers will simply call it once with HANDSHAKE_CONFIRMED. |
| 106 virtual void OnCryptoHandshakeEvent(CryptoHandshakeEvent event); | 106 virtual void OnCryptoHandshakeEvent(CryptoHandshakeEvent event); |
| 107 | 107 |
| 108 virtual ProofVerifier* proof_verifier() const; | 108 virtual ProofVerifier* proof_verifier() const; |
| 109 | 109 |
| 110 // SetProofVerifier takes ownership of a |ProofVerifier| that clients are | 110 // set_proof_verifier takes ownership of a |ProofVerifier| that clients are |
| 111 // free to use in order to verify certificate chains from servers. If a | 111 // free to use in order to verify certificate chains from servers. If a |
| 112 // ProofVerifier is set then the client will request a certificate chain from | 112 // ProofVerifier is set then the client will request a certificate chain from |
| 113 // the server. | 113 // the server. |
| 114 virtual void SetProofVerifier(ProofVerifier* verifier); | 114 virtual void set_proof_verifier(ProofVerifier* verifier); |
| 115 | 115 |
| 116 // Returns mutable config for this session. Returned config is owned | 116 // Returns mutable config for this session. Returned config is owned |
| 117 // by QuicSession. | 117 // by QuicSession. |
| 118 QuicConfig* config(); | 118 QuicConfig* config(); |
| 119 | 119 |
| 120 // Returns true if the stream existed previously and has been closed. | 120 // Returns true if the stream existed previously and has been closed. |
| 121 // Returns false if the stream is still active or if the stream has | 121 // Returns false if the stream is still active or if the stream has |
| 122 // not yet been created. | 122 // not yet been created. |
| 123 bool IsClosedStream(QuicStreamId id); | 123 bool IsClosedStream(QuicStreamId id); |
| 124 | 124 |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 bool goaway_received_; | 253 bool goaway_received_; |
| 254 // Whether a GoAway has been sent. | 254 // Whether a GoAway has been sent. |
| 255 bool goaway_sent_; | 255 bool goaway_sent_; |
| 256 | 256 |
| 257 DISALLOW_COPY_AND_ASSIGN(QuicSession); | 257 DISALLOW_COPY_AND_ASSIGN(QuicSession); |
| 258 }; | 258 }; |
| 259 | 259 |
| 260 } // namespace net | 260 } // namespace net |
| 261 | 261 |
| 262 #endif // NET_QUIC_QUIC_SESSION_H_ | 262 #endif // NET_QUIC_QUIC_SESSION_H_ |
| OLD | NEW |