| 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 "net/quic/core/quic_flags.h" | 10 #include "net/quic/platform/api/quic_flags.h" |
| 11 #include "net/quic/core/quic_spdy_stream.h" | 11 #include "net/quic/core/quic_spdy_stream.h" |
| 12 #include "net/quic/core/spdy_utils.h" | 12 #include "net/quic/core/spdy_utils.h" |
| 13 #include "net/quic/platform/api/quic_bug_tracker.h" | 13 #include "net/quic/platform/api/quic_bug_tracker.h" |
| 14 #include "net/quic/platform/api/quic_logging.h" | 14 #include "net/quic/platform/api/quic_logging.h" |
| 15 #include "net/quic/platform/api/quic_map_util.h" | 15 #include "net/quic/platform/api/quic_map_util.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 |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 261 QUIC_DLOG(INFO) << "Stream " << id() << " writing trailers (fin = true): " | 261 QUIC_DLOG(INFO) << "Stream " << id() << " writing trailers (fin = true): " |
| 262 << response_trailers.DebugString(); | 262 << response_trailers.DebugString(); |
| 263 WriteTrailers(std::move(response_trailers), nullptr); | 263 WriteTrailers(std::move(response_trailers), nullptr); |
| 264 } | 264 } |
| 265 | 265 |
| 266 const char* const QuicSimpleServerStream::kErrorResponseBody = "bad"; | 266 const char* const QuicSimpleServerStream::kErrorResponseBody = "bad"; |
| 267 const char* const QuicSimpleServerStream::kNotFoundResponseBody = | 267 const char* const QuicSimpleServerStream::kNotFoundResponseBody = |
| 268 "file not found"; | 268 "file not found"; |
| 269 | 269 |
| 270 } // namespace net | 270 } // namespace net |
| OLD | NEW |