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

Unified Diff: net/base/host_mapping_rules.h

Issue 3412016: FBTF: Move a bunch of code to the headers and remove includes. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Rebase + fixed windows issues locally Created 10 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/base/ev_root_ca_metadata.cc ('k') | net/base/host_mapping_rules.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/host_mapping_rules.h
diff --git a/net/base/host_mapping_rules.h b/net/base/host_mapping_rules.h
index 9ab06fec2cefcb83f132116dbab49676ee89f841..05f531f44732971eea3e62bdd89608330167bd3a 100644
--- a/net/base/host_mapping_rules.h
+++ b/net/base/host_mapping_rules.h
@@ -17,6 +17,7 @@ class HostPortPair;
class HostMappingRules {
public:
HostMappingRules();
+ ~HostMappingRules();
// Modifies |*host_port| based on the current rules. Returns true if the
// RequestInfo was modified, false otherwise.
@@ -36,17 +37,8 @@ class HostMappingRules {
void SetRulesFromString(const std::string& rules_string);
private:
- struct MapRule {
- MapRule() : replacement_port(-1) {}
-
- std::string hostname_pattern;
- std::string replacement_hostname;
- int replacement_port;
- };
-
- struct ExclusionRule {
- std::string hostname_pattern;
- };
+ struct MapRule;
+ struct ExclusionRule;
typedef std::vector<MapRule> MapRuleList;
typedef std::vector<ExclusionRule> ExclusionRuleList;
« no previous file with comments | « net/base/ev_root_ca_metadata.cc ('k') | net/base/host_mapping_rules.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698