| 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 toy server specific QuicSession subclass. | 5 // A toy server specific QuicSession subclass. |
| 6 | 6 |
| 7 #ifndef NET_TOOLS_QUIC_QUIC_SIMPLE_SERVER_SESSION_H_ | 7 #ifndef NET_TOOLS_QUIC_QUIC_SIMPLE_SERVER_SESSION_H_ |
| 8 #define NET_TOOLS_QUIC_QUIC_SIMPLE_SERVER_SESSION_H_ | 8 #define NET_TOOLS_QUIC_QUIC_SIMPLE_SERVER_SESSION_H_ |
| 9 | 9 |
| 10 #include <stdint.h> | 10 #include <stdint.h> |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 : request_headers(std::move(request_headers)), | 51 : request_headers(std::move(request_headers)), |
| 52 stream_id(stream_id), | 52 stream_id(stream_id), |
| 53 priority(priority), | 53 priority(priority), |
| 54 is_cancelled(false) {} | 54 is_cancelled(false) {} |
| 55 SpdyHeaderBlock request_headers; | 55 SpdyHeaderBlock request_headers; |
| 56 QuicStreamId stream_id; | 56 QuicStreamId stream_id; |
| 57 SpdyPriority priority; | 57 SpdyPriority priority; |
| 58 bool is_cancelled; | 58 bool is_cancelled; |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 // Takes ownership of |connection|. |
| 61 QuicSimpleServerSession(const QuicConfig& config, | 62 QuicSimpleServerSession(const QuicConfig& config, |
| 62 QuicConnection* connection, | 63 QuicConnection* connection, |
| 63 QuicServerSessionBase::Visitor* visitor, | 64 QuicServerSessionBase::Visitor* visitor, |
| 64 QuicServerSessionBase::Helper* helper, | 65 QuicServerSessionBase::Helper* helper, |
| 65 const QuicCryptoServerConfig* crypto_config, | 66 const QuicCryptoServerConfig* crypto_config, |
| 66 QuicCompressedCertsCache* compressed_certs_cache); | 67 QuicCompressedCertsCache* compressed_certs_cache); |
| 67 | 68 |
| 68 ~QuicSimpleServerSession() override; | 69 ~QuicSimpleServerSession() override; |
| 69 | 70 |
| 70 // When a stream is marked draining, it will decrease the number of open | 71 // When a stream is marked draining, it will decrease the number of open |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 // stream_id is always next_outgoing_stream_id_, and the last one is always | 149 // stream_id is always next_outgoing_stream_id_, and the last one is always |
| 149 // highest_promised_stream_id_. | 150 // highest_promised_stream_id_. |
| 150 std::deque<PromisedStreamInfo> promised_streams_; | 151 std::deque<PromisedStreamInfo> promised_streams_; |
| 151 | 152 |
| 152 DISALLOW_COPY_AND_ASSIGN(QuicSimpleServerSession); | 153 DISALLOW_COPY_AND_ASSIGN(QuicSimpleServerSession); |
| 153 }; | 154 }; |
| 154 | 155 |
| 155 } // namespace net | 156 } // namespace net |
| 156 | 157 |
| 157 #endif // NET_TOOLS_QUIC_QUIC_SIMPLE_SERVER_SESSION_H_ | 158 #endif // NET_TOOLS_QUIC_QUIC_SIMPLE_SERVER_SESSION_H_ |
| OLD | NEW |