Chromium Code Reviews| 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/proxy/proxy_server.h" | 5 #include "net/proxy/proxy_server.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/string_tokenizer.h" | |
| 10 #include "base/string_util.h" | 9 #include "base/string_util.h" |
| 10 #include "base/strings/string_tokenizer.h" | |
|
viettrungluu
2013/02/01 17:55:56
And this one? (Apparently, I hadn't looked at all
| |
| 11 #include "net/base/net_util.h" | 11 #include "net/base/net_util.h" |
| 12 #include "net/http/http_util.h" | 12 #include "net/http/http_util.h" |
| 13 | 13 |
| 14 namespace net { | 14 namespace net { |
| 15 | 15 |
| 16 namespace { | 16 namespace { |
| 17 | 17 |
| 18 // Parses the proxy type from a PAC string, to a ProxyServer::Scheme. | 18 // Parses the proxy type from a PAC string, to a ProxyServer::Scheme. |
| 19 // This mapping is case-insensitive. If no type could be matched | 19 // This mapping is case-insensitive. If no type could be matched |
| 20 // returns SCHEME_INVALID. | 20 // returns SCHEME_INVALID. |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 235 if (port == -1) | 235 if (port == -1) |
| 236 port = GetDefaultPortForScheme(scheme); | 236 port = GetDefaultPortForScheme(scheme); |
| 237 | 237 |
| 238 host_port_pair = HostPortPair(HostNoBrackets(host), port); | 238 host_port_pair = HostPortPair(HostNoBrackets(host), port); |
| 239 } | 239 } |
| 240 | 240 |
| 241 return ProxyServer(scheme, host_port_pair); | 241 return ProxyServer(scheme, host_port_pair); |
| 242 } | 242 } |
| 243 | 243 |
| 244 } // namespace net | 244 } // namespace net |
| OLD | NEW |