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

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

Issue 2236973002: Landing Recent QUIC changes until 4AM, Aug 7, 2016 UTC-4 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: flip quic_sequencer_buffer_retire_block_in_time to true Created 4 years, 4 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_simple_server_bin.cc ('k') | net/tools/quic/quic_simple_server_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 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
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
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_
OLDNEW
« no previous file with comments | « net/tools/quic/quic_simple_server_bin.cc ('k') | net/tools/quic/quic_simple_server_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698