Lines Matching refs:rule
36 const ExclusionRule& rule = *it; in RewriteHost() local
37 if (MatchPattern(host_port->host(), rule.hostname_pattern)) in RewriteHost()
44 const MapRule& rule = *it; in RewriteHost() local
53 if (!MatchPattern(host_port->host(), rule.hostname_pattern)) { in RewriteHost()
55 if (!MatchPattern(host_port_string, rule.hostname_pattern)) in RewriteHost()
59 host_port->set_host(rule.replacement_hostname); in RewriteHost()
60 if (rule.replacement_port != -1) in RewriteHost()
61 host_port->set_port(rule.replacement_port); in RewriteHost()
76 ExclusionRule rule; in AddRuleFromString() local
77 rule.hostname_pattern = StringToLowerASCII(parts[1]); in AddRuleFromString()
78 exclusion_rules_.push_back(rule); in AddRuleFromString()
84 MapRule rule; in AddRuleFromString() local
85 rule.hostname_pattern = StringToLowerASCII(parts[1]); in AddRuleFromString()
87 if (!ParseHostAndPort(parts[2], &rule.replacement_hostname, in AddRuleFromString()
88 &rule.replacement_port)) { in AddRuleFromString()
92 map_rules_.push_back(rule); in AddRuleFromString()