OLD | NEW |
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_H_ | 7 #ifndef NET_TOOLS_QUIC_QUIC_SERVER_SESSION_H_ |
8 #define NET_TOOLS_QUIC_QUIC_SERVER_SESSION_H_ | 8 #define NET_TOOLS_QUIC_QUIC_SERVER_SESSION_H_ |
9 | 9 |
10 #include <set> | 10 #include <set> |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 | 97 |
98 void set_use_stateless_rejects_if_peer_supported( | 98 void set_use_stateless_rejects_if_peer_supported( |
99 bool use_stateless_rejects_if_peer_supported) { | 99 bool use_stateless_rejects_if_peer_supported) { |
100 DCHECK(GetCryptoStream() != nullptr); | 100 DCHECK(GetCryptoStream() != nullptr); |
101 GetCryptoStream()->set_use_stateless_rejects_if_peer_supported( | 101 GetCryptoStream()->set_use_stateless_rejects_if_peer_supported( |
102 use_stateless_rejects_if_peer_supported); | 102 use_stateless_rejects_if_peer_supported); |
103 } | 103 } |
104 | 104 |
105 protected: | 105 protected: |
106 // QuicSession methods: | 106 // QuicSession methods: |
107 QuicDataStream* CreateIncomingDynamicStream(QuicStreamId id) override; | 107 QuicSpdyStream* CreateIncomingDynamicStream(QuicStreamId id) override; |
108 QuicDataStream* CreateOutgoingDynamicStream() override; | 108 QuicSpdyStream* CreateOutgoingDynamicStream() override; |
109 QuicCryptoServerStream* GetCryptoStream() override; | 109 QuicCryptoServerStream* GetCryptoStream() override; |
110 | 110 |
111 // If we should create an incoming stream, returns true. Otherwise | 111 // If we should create an incoming stream, returns true. Otherwise |
112 // does error handling, including communicating the error to the client and | 112 // does error handling, including communicating the error to the client and |
113 // possibly closing the connection, and returns false. | 113 // possibly closing the connection, and returns false. |
114 virtual bool ShouldCreateIncomingDynamicStream(QuicStreamId id); | 114 virtual bool ShouldCreateIncomingDynamicStream(QuicStreamId id); |
115 | 115 |
116 virtual QuicCryptoServerStream* CreateQuicCryptoServerStream( | 116 virtual QuicCryptoServerStream* CreateQuicCryptoServerStream( |
117 const QuicCryptoServerConfig* crypto_config); | 117 const QuicCryptoServerConfig* crypto_config); |
118 | 118 |
(...skipping 20 matching lines...) Expand all Loading... |
139 // Number of packets sent to the peer, at the time we last sent a SCUP. | 139 // Number of packets sent to the peer, at the time we last sent a SCUP. |
140 int64 last_scup_packet_number_; | 140 int64 last_scup_packet_number_; |
141 | 141 |
142 DISALLOW_COPY_AND_ASSIGN(QuicServerSession); | 142 DISALLOW_COPY_AND_ASSIGN(QuicServerSession); |
143 }; | 143 }; |
144 | 144 |
145 } // namespace tools | 145 } // namespace tools |
146 } // namespace net | 146 } // namespace net |
147 | 147 |
148 #endif // NET_TOOLS_QUIC_QUIC_SERVER_SESSION_H_ | 148 #endif // NET_TOOLS_QUIC_QUIC_SERVER_SESSION_H_ |
OLD | NEW |