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

Side by Side Diff: net/base/mapped_host_resolver.cc

Issue 12087091: Move string tokenizer to base/strings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sort Created 7 years, 10 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/base/host_mapping_rules.cc ('k') | net/base/net_util.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/base/mapped_host_resolver.h" 5 #include "net/base/mapped_host_resolver.h"
6 6
7 #include "base/string_tokenizer.h"
8 #include "base/string_util.h" 7 #include "base/string_util.h"
9 #include "net/base/host_port_pair.h" 8 #include "net/base/host_port_pair.h"
10 #include "net/base/net_errors.h" 9 #include "net/base/net_errors.h"
11 #include "net/base/net_util.h" 10 #include "net/base/net_util.h"
12 11
13 namespace net { 12 namespace net {
14 13
15 MappedHostResolver::MappedHostResolver(scoped_ptr<HostResolver> impl) 14 MappedHostResolver::MappedHostResolver(scoped_ptr<HostResolver> impl)
16 : impl_(impl.Pass()) { 15 : impl_(impl.Pass()) {
17 } 16 }
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 HostResolver::RequestInfo MappedHostResolver::ApplyRules( 48 HostResolver::RequestInfo MappedHostResolver::ApplyRules(
50 const RequestInfo& info) const { 49 const RequestInfo& info) const {
51 RequestInfo modified_info = info; 50 RequestInfo modified_info = info;
52 HostPortPair host_port(info.host_port_pair()); 51 HostPortPair host_port(info.host_port_pair());
53 if (rules_.RewriteHost(&host_port)) 52 if (rules_.RewriteHost(&host_port))
54 modified_info.set_host_port_pair(host_port); 53 modified_info.set_host_port_pair(host_port);
55 return modified_info; 54 return modified_info;
56 } 55 }
57 56
58 } // namespace net 57 } // namespace net
OLDNEW
« no previous file with comments | « net/base/host_mapping_rules.cc ('k') | net/base/net_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698