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

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

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 #include "net/tools/quic/quic_simple_server_stream.h" 5 #include "net/tools/quic/quic_simple_server_stream.h"
6 6
7 #include <list> 7 #include <list>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 12 matching lines...) Expand all
23 using base::StringPiece; 23 using base::StringPiece;
24 using base::StringToInt; 24 using base::StringToInt;
25 using std::string; 25 using std::string;
26 26
27 namespace net { 27 namespace net {
28 28
29 QuicSimpleServerStream::QuicSimpleServerStream( 29 QuicSimpleServerStream::QuicSimpleServerStream(
30 QuicStreamId id, 30 QuicStreamId id,
31 QuicSpdySession* session, 31 QuicSpdySession* session,
32 QuicHttpResponseCache* response_cache) 32 QuicHttpResponseCache* response_cache)
33 : QuicSpdyStream(id, session), 33 : QuicSpdyServerStreamBase(id, session),
34 content_length_(-1), 34 content_length_(-1),
35 response_cache_(response_cache) {} 35 response_cache_(response_cache) {}
36 36
37 QuicSimpleServerStream::~QuicSimpleServerStream() {} 37 QuicSimpleServerStream::~QuicSimpleServerStream() {}
38 38
39 void QuicSimpleServerStream::OnInitialHeadersComplete( 39 void QuicSimpleServerStream::OnInitialHeadersComplete(
40 bool fin, 40 bool fin,
41 size_t frame_len, 41 size_t frame_len,
42 const QuicHeaderList& header_list) { 42 const QuicHeaderList& header_list) {
43 QuicSpdyStream::OnInitialHeadersComplete(fin, frame_len, header_list); 43 QuicSpdyStream::OnInitialHeadersComplete(fin, frame_len, header_list);
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 DVLOG(1) << "Writing trailers (fin = true): " 258 DVLOG(1) << "Writing trailers (fin = true): "
259 << response_trailers.DebugString(); 259 << response_trailers.DebugString();
260 WriteTrailers(std::move(response_trailers), nullptr); 260 WriteTrailers(std::move(response_trailers), nullptr);
261 } 261 }
262 262
263 const char* const QuicSimpleServerStream::kErrorResponseBody = "bad"; 263 const char* const QuicSimpleServerStream::kErrorResponseBody = "bad";
264 const char* const QuicSimpleServerStream::kNotFoundResponseBody = 264 const char* const QuicSimpleServerStream::kNotFoundResponseBody =
265 "file not found"; 265 "file not found";
266 266
267 } // namespace net 267 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698