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

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

Issue 1423463003: Rename QuicDataStream to QuicSpdyStream. No behavior change. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@105435080
Patch Set: Created 5 years, 2 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
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) { 51 void set_respect_goaway(bool respect_goaway) {
52 respect_goaway_ = respect_goaway; 52 respect_goaway_ = respect_goaway;
53 } 53 }
54 54
55 protected: 55 protected:
56 // QuicSession methods: 56 // QuicSession methods:
57 QuicDataStream* CreateIncomingDynamicStream(QuicStreamId id) override; 57 QuicSpdyStream* CreateIncomingDynamicStream(QuicStreamId id) override;
58 58
59 // Unlike CreateOutgoingDynamicStream, which applies a bunch of sanity checks, 59 // Unlike CreateOutgoingDynamicStream, which applies a bunch of sanity checks,
60 // this simply returns a new QuicSpdyClientStream. This may be used by 60 // this simply returns a new QuicSpdyClientStream. This may be used by
61 // subclasses which want to use a subclass of QuicSpdyClientStream for streams 61 // subclasses which want to use a subclass of QuicSpdyClientStream for streams
62 // but wish to use the sanity checks in CreateOutgoingDynamicStream. 62 // but wish to use the sanity checks in CreateOutgoingDynamicStream.
63 virtual QuicSpdyClientStream* CreateClientStream(); 63 virtual QuicSpdyClientStream* CreateClientStream();
64 64
65 private: 65 private:
66 scoped_ptr<QuicCryptoClientStream> crypto_stream_; 66 scoped_ptr<QuicCryptoClientStream> crypto_stream_;
67 67
68 // If this is set to false, the client will ignore server GOAWAYs and allow 68 // If this is set to false, the client will ignore server GOAWAYs and allow
69 // the creation of streams regardless of the high chance they will fail. 69 // the creation of streams regardless of the high chance they will fail.
70 bool respect_goaway_; 70 bool respect_goaway_;
71 71
72 DISALLOW_COPY_AND_ASSIGN(QuicClientSession); 72 DISALLOW_COPY_AND_ASSIGN(QuicClientSession);
73 }; 73 };
74 74
75 } // namespace tools 75 } // namespace tools
76 } // namespace net 76 } // namespace net
77 77
78 #endif // NET_TOOLS_QUIC_QUIC_CLIENT_SESSION_H_ 78 #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