Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Side by Side Diff: net/quic/quic_session.h

Issue 18033005: Cleanup of OpenSSL/NSS implementation of ProofVerfifier release. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Implemented wtc's comments Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/quic/quic_crypto_client_stream.cc ('k') | net/quic/quic_session.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « net/quic/quic_crypto_client_stream.cc ('k') | net/quic/quic_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698