Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(17)

Side by Side Diff: net/http/http_stream_factory_impl_job_controller.cc

Issue 2333923004: Extracting NetLog inner classes into their own classes. (Closed)
Patch Set: Some nit fixes and better, impl-agnostic naming of net_log_parameters_callback_typedef.h -> net/log… Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698