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

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

Issue 1783783003: Add a QuicCompressedCertsCache instance to QuicDispatcher, plumbing to QuicServerSessionBase but no… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@116273065
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
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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 is_cancelled(false) {} 52 is_cancelled(false) {}
53 SpdyHeaderBlock request_headers; 53 SpdyHeaderBlock request_headers;
54 QuicStreamId stream_id; 54 QuicStreamId stream_id;
55 SpdyPriority priority; 55 SpdyPriority priority;
56 bool is_cancelled; 56 bool is_cancelled;
57 }; 57 };
58 58
59 QuicSimpleServerSession(const QuicConfig& config, 59 QuicSimpleServerSession(const QuicConfig& config,
60 QuicConnection* connection, 60 QuicConnection* connection,
61 QuicServerSessionVisitor* visitor, 61 QuicServerSessionVisitor* visitor,
62 const QuicCryptoServerConfig* crypto_config); 62 const QuicCryptoServerConfig* crypto_config,
63 QuicCompressedCertsCache* compressed_certs_cache);
63 64
64 ~QuicSimpleServerSession() override; 65 ~QuicSimpleServerSession() override;
65 66
66 // When a stream is marked draining, it will decrease the number of open 67 // When a stream is marked draining, it will decrease the number of open
67 // streams. If it is an outgoing stream, try to open a new stream to send 68 // streams. If it is an outgoing stream, try to open a new stream to send
68 // remaing push responses. 69 // remaing push responses.
69 void StreamDraining(QuicStreamId id) override; 70 void StreamDraining(QuicStreamId id) override;
70 71
71 // Override base class to detact client sending data on server push stream. 72 // Override base class to detact client sending data on server push stream.
72 void OnStreamFrame(const QuicStreamFrame& frame) override; 73 void OnStreamFrame(const QuicStreamFrame& frame) override;
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 // stream_id is always next_outgoing_stream_id_, and the last one is always 144 // stream_id is always next_outgoing_stream_id_, and the last one is always
144 // highest_promised_stream_id_. 145 // highest_promised_stream_id_.
145 std::deque<PromisedStreamInfo> promised_streams_; 146 std::deque<PromisedStreamInfo> promised_streams_;
146 147
147 DISALLOW_COPY_AND_ASSIGN(QuicSimpleServerSession); 148 DISALLOW_COPY_AND_ASSIGN(QuicSimpleServerSession);
148 }; 149 };
149 150
150 } // namespace net 151 } // namespace net
151 152
152 #endif // NET_TOOLS_QUIC_QUIC_SERVER_SESSION_H_ 153 #endif // NET_TOOLS_QUIC_QUIC_SERVER_SESSION_H_
OLDNEW
« no previous file with comments | « net/tools/quic/quic_server_session_base_test.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