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

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

Issue 2537773006: Extract a QuicSpdyServerStreamBase class for code sharing between QuicSimpleServerStream and GfeQui… (Closed)
Patch Set: Created 4 years 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 #ifndef NET_TOOLS_QUIC_QUIC_SIMPLE_SERVER_STREAM_H_ 5 #ifndef NET_TOOLS_QUIC_QUIC_SIMPLE_SERVER_STREAM_H_
6 #define NET_TOOLS_QUIC_QUIC_SIMPLE_SERVER_STREAM_H_ 6 #define NET_TOOLS_QUIC_QUIC_SIMPLE_SERVER_STREAM_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <string> 10 #include <string>
11 11
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "net/quic/core/quic_packets.h" 13 #include "net/quic/core/quic_packets.h"
14 #include "net/quic/core/quic_spdy_stream.h" 14 #include "net/quic/core/quic_spdy_stream.h"
15 #include "net/spdy/spdy_framer.h" 15 #include "net/spdy/spdy_framer.h"
16 #include "net/tools/quic/quic_spdy_server_stream_base.h"
16 #include "net/tools/quic/quic_http_response_cache.h" 17 #include "net/tools/quic/quic_http_response_cache.h"
17 18
18 namespace net { 19 namespace net {
19 20
20 21
21 namespace test { 22 namespace test {
22 class QuicSimpleServerStreamPeer; 23 class QuicSimpleServerStreamPeer;
23 } // namespace test 24 } // namespace test
24 25
25 // All this does right now is aggregate data, and on fin, send an HTTP 26 // All this does right now is aggregate data, and on fin, send an HTTP
26 // response. 27 // response.
27 class QuicSimpleServerStream : public QuicSpdyStream { 28 class QuicSimpleServerStream : public QuicSpdyServerStreamBase {
28 public: 29 public:
29 QuicSimpleServerStream(QuicStreamId id, 30 QuicSimpleServerStream(QuicStreamId id,
30 QuicSpdySession* session, 31 QuicSpdySession* session,
31 QuicHttpResponseCache* response_cache); 32 QuicHttpResponseCache* response_cache);
32 ~QuicSimpleServerStream() override; 33 ~QuicSimpleServerStream() override;
33 34
34 // QuicSpdyStream 35 // QuicSpdyStream
35 void OnInitialHeadersComplete(bool fin, 36 void OnInitialHeadersComplete(bool fin,
36 size_t frame_len, 37 size_t frame_len,
37 const QuicHeaderList& header_list) override; 38 const QuicHeaderList& header_list) override;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 std::string body_; 85 std::string body_;
85 86
86 QuicHttpResponseCache* response_cache_; // Not owned. 87 QuicHttpResponseCache* response_cache_; // Not owned.
87 88
88 DISALLOW_COPY_AND_ASSIGN(QuicSimpleServerStream); 89 DISALLOW_COPY_AND_ASSIGN(QuicSimpleServerStream);
89 }; 90 };
90 91
91 } // namespace net 92 } // namespace net
92 93
93 #endif // NET_TOOLS_QUIC_QUIC_SIMPLE_SERVER_STREAM_H_ 94 #endif // NET_TOOLS_QUIC_QUIC_SIMPLE_SERVER_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698