OLD | NEW |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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/http/http_stream_factory_impl_job_controller.h" | 5 #include "net/http/http_stream_factory_impl_job_controller.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <string> | 8 #include <string> |
9 #include <utility> | 9 #include <utility> |
10 | 10 |
11 #include "base/metrics/histogram_macros.h" | 11 #include "base/metrics/histogram_macros.h" |
12 #include "base/strings/string_number_conversions.h" | 12 #include "base/strings/string_number_conversions.h" |
13 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
14 #include "base/values.h" | 14 #include "base/values.h" |
15 #include "net/base/host_mapping_rules.h" | 15 #include "net/base/host_mapping_rules.h" |
16 #include "net/base/proxy_delegate.h" | 16 #include "net/base/proxy_delegate.h" |
17 #include "net/http/bidirectional_stream_impl.h" | 17 #include "net/http/bidirectional_stream_impl.h" |
18 #include "net/http/transport_security_state.h" | 18 #include "net/http/transport_security_state.h" |
| 19 #include "net/log/net_log_capture_mode.h" |
19 #include "net/log/net_log_event_type.h" | 20 #include "net/log/net_log_event_type.h" |
| 21 #include "net/log/net_log_source.h" |
| 22 #include "net/log/net_log_with_source.h" |
20 #include "net/proxy/proxy_server.h" | 23 #include "net/proxy/proxy_server.h" |
21 #include "net/spdy/spdy_session.h" | 24 #include "net/spdy/spdy_session.h" |
22 #include "url/url_constants.h" | 25 #include "url/url_constants.h" |
23 | 26 |
24 namespace net { | 27 namespace net { |
25 | 28 |
26 // Returns parameters associated with the delay of the HTTP stream job. | 29 // Returns parameters associated with the delay of the HTTP stream job. |
27 std::unique_ptr<base::Value> NetLogHttpStreamJobDelayCallback( | 30 std::unique_ptr<base::Value> NetLogHttpStreamJobDelayCallback( |
28 base::TimeDelta delay, | 31 base::TimeDelta delay, |
29 NetLogCaptureMode /* capture_mode */) { | 32 NetLogCaptureMode /* capture_mode */) { |
(...skipping 1047 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1077 } | 1080 } |
1078 | 1081 |
1079 void HttpStreamFactoryImpl::JobController::StartAlternativeProxyServerJob() { | 1082 void HttpStreamFactoryImpl::JobController::StartAlternativeProxyServerJob() { |
1080 if (!alternative_job_ || !request_) | 1083 if (!alternative_job_ || !request_) |
1081 return; | 1084 return; |
1082 DCHECK(alternative_job_->alternative_proxy_server().is_valid()); | 1085 DCHECK(alternative_job_->alternative_proxy_server().is_valid()); |
1083 alternative_job_->Start(request_->stream_type()); | 1086 alternative_job_->Start(request_->stream_type()); |
1084 } | 1087 } |
1085 | 1088 |
1086 } // namespace net | 1089 } // namespace net |
OLD | NEW |