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

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

Issue 1784933003: Make ShouldCreateOutgoingDynamicStream a virtual method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@116244697
Patch Set: Created 4 years, 9 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 | « no previous file | no next file » | 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 server specific QuicSession subclass. 5 // A server specific QuicSession subclass.
6 6
7 #ifndef NET_TOOLS_QUIC_QUIC_SERVER_SESSION_BASE_H_ 7 #ifndef NET_TOOLS_QUIC_QUIC_SERVER_SESSION_BASE_H_
8 #define NET_TOOLS_QUIC_QUIC_SERVER_SESSION_BASE_H_ 8 #define NET_TOOLS_QUIC_QUIC_SERVER_SESSION_BASE_H_
9 9
10 #include <stdint.h> 10 #include <stdint.h>
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 } 85 }
86 86
87 protected: 87 protected:
88 // QuicSession methods(override them with return type of QuicSpdyStream*): 88 // QuicSession methods(override them with return type of QuicSpdyStream*):
89 QuicCryptoServerStreamBase* GetCryptoStream() override; 89 QuicCryptoServerStreamBase* GetCryptoStream() override;
90 90
91 // If an outgoing stream can be created, return true. 91 // If an outgoing stream can be created, return true.
92 // Return false when connection is closed or forward secure encryption hasn't 92 // Return false when connection is closed or forward secure encryption hasn't
93 // established yet or number of server initiated streams already reaches the 93 // established yet or number of server initiated streams already reaches the
94 // upper limit. 94 // upper limit.
95 bool ShouldCreateOutgoingDynamicStream(); 95 virtual bool ShouldCreateOutgoingDynamicStream();
96 96
97 // If we should create an incoming stream, returns true. Otherwise 97 // If we should create an incoming stream, returns true. Otherwise
98 // does error handling, including communicating the error to the client and 98 // does error handling, including communicating the error to the client and
99 // possibly closing the connection, and returns false. 99 // possibly closing the connection, and returns false.
100 virtual bool ShouldCreateIncomingDynamicStream(QuicStreamId id); 100 virtual bool ShouldCreateIncomingDynamicStream(QuicStreamId id);
101 101
102 virtual QuicCryptoServerStreamBase* CreateQuicCryptoServerStream( 102 virtual QuicCryptoServerStreamBase* CreateQuicCryptoServerStream(
103 const QuicCryptoServerConfig* crypto_config) = 0; 103 const QuicCryptoServerConfig* crypto_config) = 0;
104 104
105 const QuicCryptoServerConfig* crypto_config() { return crypto_config_; } 105 const QuicCryptoServerConfig* crypto_config() { return crypto_config_; }
(...skipping 21 matching lines...) Expand all
127 127
128 // Number of packets sent to the peer, at the time we last sent a SCUP. 128 // Number of packets sent to the peer, at the time we last sent a SCUP.
129 int64_t last_scup_packet_number_; 129 int64_t last_scup_packet_number_;
130 130
131 DISALLOW_COPY_AND_ASSIGN(QuicServerSessionBase); 131 DISALLOW_COPY_AND_ASSIGN(QuicServerSessionBase);
132 }; 132 };
133 133
134 } // namespace net 134 } // namespace net
135 135
136 #endif // NET_TOOLS_QUIC_QUIC_SERVER_SESSION_BASE_H_ 136 #endif // NET_TOOLS_QUIC_QUIC_SERVER_SESSION_BASE_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698