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> |
11 | 11 |
12 #include <deque> | 12 #include <deque> |
13 #include <list> | 13 #include <list> |
14 #include <memory> | 14 #include <memory> |
15 #include <set> | 15 #include <set> |
16 #include <string> | 16 #include <string> |
17 #include <utility> | 17 #include <utility> |
18 #include <vector> | 18 #include <vector> |
19 | 19 |
20 #include "base/macros.h" | 20 #include "base/macros.h" |
21 #include "net/quic/core/quic_crypto_server_stream.h" | 21 #include "net/quic/core/quic_crypto_server_stream.h" |
22 #include "net/quic/core/quic_protocol.h" | 22 #include "net/quic/core/quic_protocol.h" |
23 #include "net/quic/core/quic_server_session_base.h" | 23 #include "net/quic/core/quic_server_session_base.h" |
24 #include "net/quic/core/quic_spdy_session.h" | 24 #include "net/quic/core/quic_spdy_session.h" |
25 #include "net/tools/quic/quic_in_memory_cache.h" | 25 #include "net/tools/quic/quic_in_memory_cache.h" |
26 #include "net/tools/quic/quic_simple_server_stream.h" | 26 #include "net/tools/quic/quic_simple_server_stream.h" |
27 | 27 |
28 namespace net { | 28 namespace net { |
29 | 29 |
30 class QuicBlockedWriterInterface; | |
31 class QuicConfig; | 30 class QuicConfig; |
32 class QuicConnection; | 31 class QuicConnection; |
33 class QuicCryptoServerConfig; | 32 class QuicCryptoServerConfig; |
34 class ReliableQuicStream; | |
35 | |
36 | 33 |
37 namespace test { | 34 namespace test { |
38 class QuicSimpleServerSessionPeer; | 35 class QuicSimpleServerSessionPeer; |
39 } // namespace test | 36 } // namespace test |
40 | 37 |
41 class QuicSimpleServerSession : public QuicServerSessionBase { | 38 class QuicSimpleServerSession : public QuicServerSessionBase { |
42 public: | 39 public: |
43 // A PromisedStreamInfo is an element of the queue to store promised | 40 // A PromisedStreamInfo is an element of the queue to store promised |
44 // stream which hasn't been created yet. It keeps a mapping between promised | 41 // stream which hasn't been created yet. It keeps a mapping between promised |
45 // stream id with its priority and the headers sent out in PUSH_PROMISE. | 42 // stream id with its priority and the headers sent out in PUSH_PROMISE. |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 std::deque<PromisedStreamInfo> promised_streams_; | 151 std::deque<PromisedStreamInfo> promised_streams_; |
155 | 152 |
156 QuicInMemoryCache* in_memory_cache_; // Not owned. | 153 QuicInMemoryCache* in_memory_cache_; // Not owned. |
157 | 154 |
158 DISALLOW_COPY_AND_ASSIGN(QuicSimpleServerSession); | 155 DISALLOW_COPY_AND_ASSIGN(QuicSimpleServerSession); |
159 }; | 156 }; |
160 | 157 |
161 } // namespace net | 158 } // namespace net |
162 | 159 |
163 #endif // NET_TOOLS_QUIC_QUIC_SIMPLE_SERVER_SESSION_H_ | 160 #endif // NET_TOOLS_QUIC_QUIC_SIMPLE_SERVER_SESSION_H_ |
OLD | NEW |