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

Side by Side Diff: net/tools/quic/quic_client_session.h

Issue 935333002: Update from https://crrev.com/316786 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « net/tools/quic/quic_client.cc ('k') | net/tools/quic/quic_client_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 client specific QuicSession subclass. 5 // A client specific QuicSession subclass.
6 6
7 #ifndef NET_TOOLS_QUIC_QUIC_CLIENT_SESSION_H_ 7 #ifndef NET_TOOLS_QUIC_QUIC_CLIENT_SESSION_H_
8 #define NET_TOOLS_QUIC_QUIC_CLIENT_SESSION_H_ 8 #define NET_TOOLS_QUIC_QUIC_CLIENT_SESSION_H_
9 9
10 #include <string> 10 #include <string>
(...skipping 30 matching lines...) Expand all
41 const ProofVerifyDetails& verify_details) override; 41 const ProofVerifyDetails& verify_details) override;
42 42
43 // Performs a crypto handshake with the server. 43 // Performs a crypto handshake with the server.
44 void CryptoConnect(); 44 void CryptoConnect();
45 45
46 // Returns the number of client hello messages that have been sent on the 46 // Returns the number of client hello messages that have been sent on the
47 // crypto stream. If the handshake has completed then this is one greater 47 // crypto stream. If the handshake has completed then this is one greater
48 // than the number of round-trips needed for the handshake. 48 // than the number of round-trips needed for the handshake.
49 int GetNumSentClientHellos() const; 49 int GetNumSentClientHellos() const;
50 50
51 void set_respect_goaway(bool respect_goaway) {
52 respect_goaway_ = respect_goaway;
53 }
54
51 protected: 55 protected:
52 // QuicSession methods: 56 // QuicSession methods:
53 QuicDataStream* CreateIncomingDataStream(QuicStreamId id) override; 57 QuicDataStream* CreateIncomingDataStream(QuicStreamId id) override;
54 58
55 private: 59 private:
56 scoped_ptr<QuicCryptoClientStream> crypto_stream_; 60 scoped_ptr<QuicCryptoClientStream> crypto_stream_;
57 61
62 // If this is set to false, the client will ignore server GOAWAYs and allow
63 // the creation of streams regardless of the high chance they will fail.
64 bool respect_goaway_;
65
58 DISALLOW_COPY_AND_ASSIGN(QuicClientSession); 66 DISALLOW_COPY_AND_ASSIGN(QuicClientSession);
59 }; 67 };
60 68
61 } // namespace tools 69 } // namespace tools
62 } // namespace net 70 } // namespace net
63 71
64 #endif // NET_TOOLS_QUIC_QUIC_CLIENT_SESSION_H_ 72 #endif // NET_TOOLS_QUIC_QUIC_CLIENT_SESSION_H_
OLDNEW
« no previous file with comments | « net/tools/quic/quic_client.cc ('k') | net/tools/quic/quic_client_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698