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

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

Issue 2806553004: relnote: change QuicCryptoClientStreamBase::CryptoConnect API (Closed)
Patch Set: Created 3 years, 8 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
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_CORE_QUIC_CRYPTO_CLIENT_STREAM_H_ 5 #ifndef NET_QUIC_CORE_QUIC_CRYPTO_CLIENT_STREAM_H_
6 #define NET_QUIC_CORE_QUIC_CRYPTO_CLIENT_STREAM_H_ 6 #define NET_QUIC_CORE_QUIC_CRYPTO_CLIENT_STREAM_H_
7 7
8 #include <cstdint> 8 #include <cstdint>
9 #include <memory> 9 #include <memory>
10 #include <string> 10 #include <string>
(...skipping 12 matching lines...) Expand all
23 namespace test { 23 namespace test {
24 class QuicChromiumClientSessionPeer; 24 class QuicChromiumClientSessionPeer;
25 } // namespace test 25 } // namespace test
26 26
27 class QUIC_EXPORT_PRIVATE QuicCryptoClientStreamBase : public QuicCryptoStream { 27 class QUIC_EXPORT_PRIVATE QuicCryptoClientStreamBase : public QuicCryptoStream {
28 public: 28 public:
29 explicit QuicCryptoClientStreamBase(QuicSession* session); 29 explicit QuicCryptoClientStreamBase(QuicSession* session);
30 30
31 ~QuicCryptoClientStreamBase() override{}; 31 ~QuicCryptoClientStreamBase() override{};
32 32
33 // Performs a crypto handshake with the server. 33 // Performs a crypto handshake with the server. Returns true if the connection
34 virtual void CryptoConnect() = 0; 34 // is still connected.
35 virtual bool CryptoConnect() = 0;
35 36
36 // num_sent_client_hellos returns the number of client hello messages that 37 // num_sent_client_hellos returns the number of client hello messages that
37 // have been sent. If the handshake has completed then this is one greater 38 // have been sent. If the handshake has completed then this is one greater
38 // than the number of round-trips needed for the handshake. 39 // than the number of round-trips needed for the handshake.
39 virtual int num_sent_client_hellos() const = 0; 40 virtual int num_sent_client_hellos() const = 0;
40 41
41 // The number of server config update messages received by the 42 // The number of server config update messages received by the
42 // client. Does not count update messages that were received prior 43 // client. Does not count update messages that were received prior
43 // to handshake confirmation. 44 // to handshake confirmation.
44 virtual int num_scup_messages_received() const = 0; 45 virtual int num_scup_messages_received() const = 0;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 77
77 QuicCryptoClientStream(const QuicServerId& server_id, 78 QuicCryptoClientStream(const QuicServerId& server_id,
78 QuicSession* session, 79 QuicSession* session,
79 ProofVerifyContext* verify_context, 80 ProofVerifyContext* verify_context,
80 QuicCryptoClientConfig* crypto_config, 81 QuicCryptoClientConfig* crypto_config,
81 ProofHandler* proof_handler); 82 ProofHandler* proof_handler);
82 83
83 ~QuicCryptoClientStream() override; 84 ~QuicCryptoClientStream() override;
84 85
85 // From QuicCryptoClientStreamBase 86 // From QuicCryptoClientStreamBase
86 void CryptoConnect() override; 87 bool CryptoConnect() override;
87 int num_sent_client_hellos() const override; 88 int num_sent_client_hellos() const override;
88 89
89 int num_scup_messages_received() const override; 90 int num_scup_messages_received() const override;
90 91
91 // CryptoFramerVisitorInterface implementation 92 // CryptoFramerVisitorInterface implementation
92 void OnHandshakeMessage(const CryptoHandshakeMessage& message) override; 93 void OnHandshakeMessage(const CryptoHandshakeMessage& message) override;
93 94
94 // Returns true if a channel ID was sent on this connection. 95 // Returns true if a channel ID was sent on this connection.
95 bool WasChannelIDSent() const; 96 bool WasChannelIDSent() const;
96 97
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 base::TimeTicks proof_verify_start_time_; 270 base::TimeTicks proof_verify_start_time_;
270 271
271 int num_scup_messages_received_; 272 int num_scup_messages_received_;
272 273
273 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientStream); 274 DISALLOW_COPY_AND_ASSIGN(QuicCryptoClientStream);
274 }; 275 };
275 276
276 } // namespace net 277 } // namespace net
277 278
278 #endif // NET_QUIC_CORE_QUIC_CRYPTO_CLIENT_STREAM_H_ 279 #endif // NET_QUIC_CORE_QUIC_CRYPTO_CLIENT_STREAM_H_
OLDNEW
« no previous file with comments | « net/quic/chromium/quic_chromium_client_session.cc ('k') | net/quic/core/quic_crypto_client_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698