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/spdy/spdy_stream.h" | 5 #include "net/spdy/chromium/spdy_stream.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <limits> | 8 #include <limits> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "base/bind.h" | 11 #include "base/bind.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/location.h" | 13 #include "base/location.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/metrics/histogram_macros.h" | 15 #include "base/metrics/histogram_macros.h" |
16 #include "base/single_thread_task_runner.h" | 16 #include "base/single_thread_task_runner.h" |
17 #include "base/strings/string_number_conversions.h" | 17 #include "base/strings/string_number_conversions.h" |
18 #include "base/strings/string_util.h" | 18 #include "base/strings/string_util.h" |
19 #include "base/threading/thread_task_runner_handle.h" | 19 #include "base/threading/thread_task_runner_handle.h" |
20 #include "base/values.h" | 20 #include "base/values.h" |
21 #include "net/log/net_log.h" | 21 #include "net/log/net_log.h" |
22 #include "net/log/net_log_capture_mode.h" | 22 #include "net/log/net_log_capture_mode.h" |
23 #include "net/log/net_log_event_type.h" | 23 #include "net/log/net_log_event_type.h" |
| 24 #include "net/spdy/chromium/spdy_buffer_producer.h" |
| 25 #include "net/spdy/chromium/spdy_http_utils.h" |
| 26 #include "net/spdy/chromium/spdy_session.h" |
24 #include "net/spdy/platform/api/spdy_estimate_memory_usage.h" | 27 #include "net/spdy/platform/api/spdy_estimate_memory_usage.h" |
25 #include "net/spdy/platform/api/spdy_string_piece.h" | 28 #include "net/spdy/platform/api/spdy_string_piece.h" |
26 #include "net/spdy/platform/api/spdy_string_utils.h" | 29 #include "net/spdy/platform/api/spdy_string_utils.h" |
27 #include "net/spdy/spdy_buffer_producer.h" | |
28 #include "net/spdy/spdy_http_utils.h" | |
29 #include "net/spdy/spdy_session.h" | |
30 | 30 |
31 namespace net { | 31 namespace net { |
32 | 32 |
33 namespace { | 33 namespace { |
34 | 34 |
35 std::unique_ptr<base::Value> NetLogSpdyStreamErrorCallback( | 35 std::unique_ptr<base::Value> NetLogSpdyStreamErrorCallback( |
36 SpdyStreamId stream_id, | 36 SpdyStreamId stream_id, |
37 int status, | 37 int status, |
38 const SpdyString* description, | 38 const SpdyString* description, |
39 NetLogCaptureMode /* capture_mode */) { | 39 NetLogCaptureMode /* capture_mode */) { |
(...skipping 881 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
921 default: | 921 default: |
922 description = SpdyStringPrintf("Unknown state 0x%08X (%u)", state, state); | 922 description = SpdyStringPrintf("Unknown state 0x%08X (%u)", state, state); |
923 break; | 923 break; |
924 } | 924 } |
925 return description; | 925 return description; |
926 } | 926 } |
927 | 927 |
928 #undef STATE_CASE | 928 #undef STATE_CASE |
929 | 929 |
930 } // namespace net | 930 } // namespace net |
OLD | NEW |