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

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

Issue 126283002: Land Recent QUIC Changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed extra space Created 6 years, 11 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_connection_test.cc ('k') | net/quic/quic_crypto_server_stream.h » ('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 #ifndef NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_ 5 #ifndef NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_
6 #define NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_ 6 #define NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "net/cert/cert_verify_result.h" 10 #include "net/cert/cert_verify_result.h"
(...skipping 11 matching lines...) Expand all
22 22
23 namespace test { 23 namespace test {
24 class CryptoTestUtils; 24 class CryptoTestUtils;
25 } // namespace test 25 } // namespace test
26 26
27 class NET_EXPORT_PRIVATE QuicCryptoClientStream : public QuicCryptoStream { 27 class NET_EXPORT_PRIVATE QuicCryptoClientStream : public QuicCryptoStream {
28 public: 28 public:
29 QuicCryptoClientStream(const string& server_hostname, 29 QuicCryptoClientStream(const string& server_hostname,
30 QuicSession* session, 30 QuicSession* session,
31 QuicCryptoClientConfig* crypto_config); 31 QuicCryptoClientConfig* crypto_config);
32 virtual ~QuicCryptoClientStream(); 32 virtual ~QuicCryptoClientStream() OVERRIDE;
33 33
34 // CryptoFramerVisitorInterface implementation 34 // CryptoFramerVisitorInterface implementation
35 virtual void OnHandshakeMessage( 35 virtual void OnHandshakeMessage(
36 const CryptoHandshakeMessage& message) OVERRIDE; 36 const CryptoHandshakeMessage& message) OVERRIDE;
37 37
38 // Performs a crypto handshake with the server. Returns true if the crypto 38 // Performs a crypto handshake with the server. Returns true if the crypto
39 // handshake is started successfully. 39 // handshake is started successfully.
40 // TODO(agl): this should probably return void. 40 // TODO(agl): this should probably return void.
41 virtual bool CryptoConnect(); 41 virtual bool CryptoConnect();
42 42
43 // num_sent_client_hellos returns the number of client hello messages that 43 // num_sent_client_hellos returns the number of client hello messages that
44 // have been sent. If the handshake has completed then this is one greater 44 // have been sent. If the handshake has completed then this is one greater
45 // than the number of round-trips needed for the handshake. 45 // than the number of round-trips needed for the handshake.
46 int num_sent_client_hellos() const; 46 int num_sent_client_hellos() const;
47 47
48 // Gets the SSL connection information. 48 // Gets the SSL connection information.
49 virtual bool GetSSLInfo(SSLInfo* ssl_info); 49 virtual bool GetSSLInfo(SSLInfo* ssl_info);
50 50
51 private: 51 private:
52 // ProofVerifierCallbackImpl is passed as the callback method to VerifyProof. 52 // ProofVerifierCallbackImpl is passed as the callback method to VerifyProof.
53 // The ProofVerifier calls this class with the result of proof verification 53 // The ProofVerifier calls this class with the result of proof verification
54 // when verification is performed asynchronously. 54 // when verification is performed asynchronously.
55 class ProofVerifierCallbackImpl : public ProofVerifierCallback { 55 class ProofVerifierCallbackImpl : public ProofVerifierCallback {
56 public: 56 public:
57 explicit ProofVerifierCallbackImpl(QuicCryptoClientStream* stream); 57 explicit ProofVerifierCallbackImpl(QuicCryptoClientStream* stream);
58 virtual ~ProofVerifierCallbackImpl(); 58 virtual ~ProofVerifierCallbackImpl() OVERRIDE;
59 59
60 // ProofVerifierCallback interface. 60 // ProofVerifierCallback interface.
61 virtual void Run(bool ok, 61 virtual void Run(bool ok,
62 const string& error_details, 62 const string& error_details,
63 scoped_ptr<ProofVerifyDetails>* details) OVERRIDE; 63 scoped_ptr<ProofVerifyDetails>* details) OVERRIDE;
64 64
65 // Cancel causes any future callbacks to be ignored. It must be called on 65 // Cancel causes any future callbacks to be ignored. It must be called on
66 // the same thread as the callback will be made on. 66 // the same thread as the callback will be made on.
67 void Cancel(); 67 void Cancel();
68 68
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 114
115 // The result of certificate verification. 115 // The result of certificate verification.
116 scoped_ptr<CertVerifyResult> cert_verify_result_; 116 scoped_ptr<CertVerifyResult> cert_verify_result_;
117 117
118 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientStream); 118 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientStream);
119 }; 119 };
120 120
121 } // namespace net 121 } // namespace net
122 122
123 #endif // NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_ 123 #endif // NET_QUIC_QUIC_CRYPTO_CLIENT_STREAM_H_
OLDNEW
« no previous file with comments | « net/quic/quic_connection_test.cc ('k') | net/quic/quic_crypto_server_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698