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

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

Issue 1230313005: split port_util.h off of net_util.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove garbage that got added Created 5 years, 5 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
« no previous file with comments | « net/http/http_server_properties_manager.cc ('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.h" 5 #include "net/http/http_stream_factory.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/strings/string_number_conversions.h" 8 #include "base/strings/string_number_conversions.h"
9 #include "base/strings/string_split.h" 9 #include "base/strings/string_split.h"
10 #include "base/strings/string_util.h" 10 #include "base/strings/string_util.h"
11 #include "net/base/host_mapping_rules.h" 11 #include "net/base/host_mapping_rules.h"
12 #include "net/base/host_port_pair.h" 12 #include "net/base/host_port_pair.h"
13 #include "net/base/port_util.h"
13 #include "net/http/http_network_session.h" 14 #include "net/http/http_network_session.h"
14 #include "url/gurl.h" 15 #include "url/gurl.h"
15 16
16 namespace net { 17 namespace net {
17 18
18 // WARNING: If you modify or add any static flags, you must keep them in sync 19 // WARNING: If you modify or add any static flags, you must keep them in sync
19 // with |ResetStaticSettingsToInit|. This is critical for unit test isolation. 20 // with |ResetStaticSettingsToInit|. This is critical for unit test isolation.
20 21
21 // static 22 // static
22 bool HttpStreamFactory::spdy_enabled_ = true; 23 bool HttpStreamFactory::spdy_enabled_ = true;
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 replacements.SetHost(endpoint->host().c_str(), 111 replacements.SetHost(endpoint->host().c_str(),
111 url::Component(0, endpoint->host().size())); 112 url::Component(0, endpoint->host().size()));
112 return url.ReplaceComponents(replacements); 113 return url.ReplaceComponents(replacements);
113 } 114 }
114 return url; 115 return url;
115 } 116 }
116 117
117 HttpStreamFactory::HttpStreamFactory() {} 118 HttpStreamFactory::HttpStreamFactory() {}
118 119
119 } // namespace net 120 } // namespace net
OLDNEW
« no previous file with comments | « net/http/http_server_properties_manager.cc ('k') | net/http/http_stream_factory_impl_job.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698