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

Side by Side Diff: net/url_request/url_request.cc

Issue 275953002: Remove HTTP pipelining support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix line endings Created 6 years, 6 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 | Annotate | Revision Log
OLDNEW
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/url_request/url_request.h" 5 #include "net/url_request/url_request.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 // True once the first URLRequest was started. 75 // True once the first URLRequest was started.
76 bool g_url_requests_started = false; 76 bool g_url_requests_started = false;
77 77
78 // True if cookies are accepted by default. 78 // True if cookies are accepted by default.
79 bool g_default_can_use_cookies = true; 79 bool g_default_can_use_cookies = true;
80 80
81 // When the URLRequest first assempts load timing information, it has the times 81 // When the URLRequest first assempts load timing information, it has the times
82 // at which each event occurred. The API requires the time which the request 82 // at which each event occurred. The API requires the time which the request
83 // was blocked on each phase. This function handles the conversion. 83 // was blocked on each phase. This function handles the conversion.
84 // 84 //
85 // In the case of reusing a SPDY session or HTTP pipeline, old proxy results may 85 // In the case of reusing a SPDY session, old proxy results may have been
86 // have been reused, so proxy resolution times may be before the request was 86 // reused, so proxy resolution times may be before the request was started.
87 // started.
88 // 87 //
89 // Due to preconnect and late binding, it is also possible for the connection 88 // Due to preconnect and late binding, it is also possible for the connection
90 // attempt to start before a request has been started, or proxy resolution 89 // attempt to start before a request has been started, or proxy resolution
91 // completed. 90 // completed.
92 // 91 //
93 // This functions fixes both those cases. 92 // This functions fixes both those cases.
94 void ConvertRealLoadTimesToBlockingTimes( 93 void ConvertRealLoadTimesToBlockingTimes(
95 net::LoadTimingInfo* load_timing_info) { 94 net::LoadTimingInfo* load_timing_info) {
96 DCHECK(!load_timing_info->request_start.is_null()); 95 DCHECK(!load_timing_info->request_start.is_null());
97 96
(...skipping 1148 matching lines...) Expand 10 before | Expand all | Expand 10 after
1246 new base::debug::StackTrace(NULL, 0); 1245 new base::debug::StackTrace(NULL, 0);
1247 *stack_trace_copy = stack_trace; 1246 *stack_trace_copy = stack_trace;
1248 stack_trace_.reset(stack_trace_copy); 1247 stack_trace_.reset(stack_trace_copy);
1249 } 1248 }
1250 1249
1251 const base::debug::StackTrace* URLRequest::stack_trace() const { 1250 const base::debug::StackTrace* URLRequest::stack_trace() const {
1252 return stack_trace_.get(); 1251 return stack_trace_.get();
1253 } 1252 }
1254 1253
1255 } // namespace net 1254 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/buffered_write_stream_socket_unittest.cc ('k') | net/url_request/url_request_context_builder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698