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

Side by Side Diff: net/base/host_mapping_rules.h

Issue 6969077: net: Add NET_API to net/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 7 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef NET_BASE_HOST_MAPPING_RULES_H_ 5 #ifndef NET_BASE_HOST_MAPPING_RULES_H_
6 #define NET_BASE_HOST_MAPPING_RULES_H_ 6 #define NET_BASE_HOST_MAPPING_RULES_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "net/base/net_api.h"
12 13
13 namespace net { 14 namespace net {
14 15
15 class HostPortPair; 16 class HostPortPair;
16 17
17 class HostMappingRules { 18 class NET_TEST HostMappingRules {
wtc 2011/05/16 20:55:17 I seem to remember there are command-line switches
rvargas (doing something else) 2011/05/16 22:41:56 That is performed with: if (parsed_command_line.Ha
wtc 2011/05/16 23:07:13 Thank you for looking into this. Please keep this
18 public: 19 public:
19 HostMappingRules(); 20 HostMappingRules();
20 ~HostMappingRules(); 21 ~HostMappingRules();
21 22
22 // Modifies |*host_port| based on the current rules. Returns true if the 23 // Modifies |*host_port| based on the current rules. Returns true if the
23 // RequestInfo was modified, false otherwise. 24 // RequestInfo was modified, false otherwise.
24 bool RewriteHost(HostPortPair* host_port) const; 25 bool RewriteHost(HostPortPair* host_port) const;
25 26
26 // Adds a rule to this mapper. The format of the rule can be one of: 27 // Adds a rule to this mapper. The format of the rule can be one of:
27 // 28 //
(...skipping 17 matching lines...) Expand all
45 46
46 MapRuleList map_rules_; 47 MapRuleList map_rules_;
47 ExclusionRuleList exclusion_rules_; 48 ExclusionRuleList exclusion_rules_;
48 49
49 DISALLOW_COPY_AND_ASSIGN(HostMappingRules); 50 DISALLOW_COPY_AND_ASSIGN(HostMappingRules);
50 }; 51 };
51 52
52 } // namespace net 53 } // namespace net
53 54
54 #endif // NET_BASE_HOST_MAPPING_RULES_H_ 55 #endif // NET_BASE_HOST_MAPPING_RULES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698