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/threading/thread_task_runner_handle.h" |
14 #include "base/values.h" | 15 #include "base/values.h" |
15 #include "net/base/host_mapping_rules.h" | 16 #include "net/base/host_mapping_rules.h" |
16 #include "net/base/proxy_delegate.h" | 17 #include "net/base/proxy_delegate.h" |
17 #include "net/http/bidirectional_stream_impl.h" | 18 #include "net/http/bidirectional_stream_impl.h" |
18 #include "net/http/transport_security_state.h" | 19 #include "net/http/transport_security_state.h" |
19 #include "net/log/net_log_capture_mode.h" | 20 #include "net/log/net_log_capture_mode.h" |
20 #include "net/log/net_log_event_type.h" | 21 #include "net/log/net_log_event_type.h" |
21 #include "net/log/net_log_source.h" | 22 #include "net/log/net_log_source.h" |
22 #include "net/log/net_log_with_source.h" | 23 #include "net/log/net_log_with_source.h" |
23 #include "net/proxy/proxy_server.h" | 24 #include "net/proxy/proxy_server.h" |
(...skipping 1058 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1082 } | 1083 } |
1083 | 1084 |
1084 void HttpStreamFactoryImpl::JobController::StartAlternativeProxyServerJob() { | 1085 void HttpStreamFactoryImpl::JobController::StartAlternativeProxyServerJob() { |
1085 if (!alternative_job_ || !request_) | 1086 if (!alternative_job_ || !request_) |
1086 return; | 1087 return; |
1087 DCHECK(alternative_job_->alternative_proxy_server().is_valid()); | 1088 DCHECK(alternative_job_->alternative_proxy_server().is_valid()); |
1088 alternative_job_->Start(request_->stream_type()); | 1089 alternative_job_->Start(request_->stream_type()); |
1089 } | 1090 } |
1090 | 1091 |
1091 } // namespace net | 1092 } // namespace net |
OLD | NEW |