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

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

Issue 10834215: Remove static variables from HttpStreamFactory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: typo Created 8 years, 3 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
« no previous file with comments | « net/http/http_stream_factory_impl.h ('k') | net/http/http_stream_factory_impl_job.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/http/http_stream_factory_impl.h" 5 #include "net/http/http_stream_factory_impl.h"
6 6
7 #include "base/string_number_conversions.h" 7 #include "base/string_number_conversions.h"
8 #include "base/stl_util.h" 8 #include "base/stl_util.h"
9 #include "googleurl/src/gurl.h" 9 #include "googleurl/src/gurl.h"
10 #include "net/base/net_log.h" 10 #include "net/base/net_log.h"
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 proxy_ssl_config, session_->net_log()); 116 proxy_ssl_config, session_->net_log());
117 } 117 }
118 preconnect_job_set_.insert(job); 118 preconnect_job_set_.insert(job);
119 job->Preconnect(num_streams); 119 job->Preconnect(num_streams);
120 } 120 }
121 121
122 base::Value* HttpStreamFactoryImpl::PipelineInfoToValue() const { 122 base::Value* HttpStreamFactoryImpl::PipelineInfoToValue() const {
123 return http_pipelined_host_pool_.PipelineInfoToValue(); 123 return http_pipelined_host_pool_.PipelineInfoToValue();
124 } 124 }
125 125
126 const HostMappingRules* HttpStreamFactoryImpl::GetHostMappingRules() const {
127 return session_->params().host_mapping_rules;
128 }
129
126 bool HttpStreamFactoryImpl::GetAlternateProtocolRequestFor( 130 bool HttpStreamFactoryImpl::GetAlternateProtocolRequestFor(
127 const GURL& original_url, 131 const GURL& original_url,
128 GURL* alternate_url) const { 132 GURL* alternate_url) const {
129 if (!spdy_enabled()) 133 if (!spdy_enabled())
130 return false; 134 return false;
131 135
132 if (!use_alternate_protocols()) 136 if (!use_alternate_protocols())
133 return false; 137 return false;
134 138
135 HostPortPair origin = HostPortPair(original_url.HostNoBrackets(), 139 HostPortPair origin = HostPortPair(original_url.HostNoBrackets(),
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
254 it != requests_to_fail.end(); ++it) { 258 it != requests_to_fail.end(); ++it) {
255 Request* request = *it; 259 Request* request = *it;
256 if (request == request_map_[job]) { 260 if (request == request_map_[job]) {
257 continue; 261 continue;
258 } 262 }
259 request->OnStreamFailed(NULL, status, used_ssl_config); 263 request->OnStreamFailed(NULL, status, used_ssl_config);
260 } 264 }
261 } 265 }
262 266
263 } // namespace net 267 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_stream_factory_impl.h ('k') | net/http/http_stream_factory_impl_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698