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 #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" |
11 #include "base/stl_util.h" | 11 #include "base/stl_util.h" |
12 #include "net/quic/core/quic_bug_tracker.h" | |
13 #include "net/quic/core/quic_flags.h" | 12 #include "net/quic/core/quic_flags.h" |
14 #include "net/quic/core/quic_spdy_stream.h" | 13 #include "net/quic/core/quic_spdy_stream.h" |
15 #include "net/quic/core/spdy_utils.h" | 14 #include "net/quic/core/spdy_utils.h" |
| 15 #include "net/quic/platform/api/quic_bug_tracker.h" |
16 #include "net/quic/platform/api/quic_text_utils.h" | 16 #include "net/quic/platform/api/quic_text_utils.h" |
17 #include "net/spdy/spdy_protocol.h" | 17 #include "net/spdy/spdy_protocol.h" |
18 #include "net/tools/quic/quic_http_response_cache.h" | 18 #include "net/tools/quic/quic_http_response_cache.h" |
19 #include "net/tools/quic/quic_simple_server_session.h" | 19 #include "net/tools/quic/quic_simple_server_session.h" |
20 | 20 |
21 using base::StringPiece; | 21 using base::StringPiece; |
22 using std::string; | 22 using std::string; |
23 | 23 |
24 namespace net { | 24 namespace net { |
25 | 25 |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
257 DVLOG(1) << "Writing trailers (fin = true): " | 257 DVLOG(1) << "Writing trailers (fin = true): " |
258 << response_trailers.DebugString(); | 258 << response_trailers.DebugString(); |
259 WriteTrailers(std::move(response_trailers), nullptr); | 259 WriteTrailers(std::move(response_trailers), nullptr); |
260 } | 260 } |
261 | 261 |
262 const char* const QuicSimpleServerStream::kErrorResponseBody = "bad"; | 262 const char* const QuicSimpleServerStream::kErrorResponseBody = "bad"; |
263 const char* const QuicSimpleServerStream::kNotFoundResponseBody = | 263 const char* const QuicSimpleServerStream::kNotFoundResponseBody = |
264 "file not found"; | 264 "file not found"; |
265 | 265 |
266 } // namespace net | 266 } // namespace net |
OLD | NEW |