OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/stl_util-inl.h" | 7 #include "base/stl_util-inl.h" |
8 #include "base/string_number_conversions.h" | 8 #include "base/string_number_conversions.h" |
| 9 #include "base/string_split.h" |
9 #include "base/string_util.h" | 10 #include "base/string_util.h" |
10 #include "net/base/net_log.h" | 11 #include "net/base/net_log.h" |
11 #include "net/base/net_util.h" | 12 #include "net/base/net_util.h" |
12 #include "net/http/http_network_session.h" | 13 #include "net/http/http_network_session.h" |
13 #include "net/http/http_stream_request.h" | 14 #include "net/http/http_stream_request.h" |
14 | 15 |
15 namespace net { | 16 namespace net { |
16 | 17 |
17 // static | 18 // static |
18 const HostMappingRules* HttpStreamFactory::host_mapping_rules_ = NULL; | 19 const HostMappingRules* HttpStreamFactory::host_mapping_rules_ = NULL; |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 url_parse::Component(0, port_str.size())); | 125 url_parse::Component(0, port_str.size())); |
125 replacements.SetHost(endpoint->host().c_str(), | 126 replacements.SetHost(endpoint->host().c_str(), |
126 url_parse::Component(0, endpoint->host().size())); | 127 url_parse::Component(0, endpoint->host().size())); |
127 return url.ReplaceComponents(replacements); | 128 return url.ReplaceComponents(replacements); |
128 } | 129 } |
129 return url; | 130 return url; |
130 } | 131 } |
131 | 132 |
132 } // namespace net | 133 } // namespace net |
133 | 134 |
OLD | NEW |