Home | History | Annotate | Download | only in base

Lines Matching defs:rule

36     const ExclusionRule& rule = *it;
37 if (MatchPattern(host_port->host(), rule.hostname_pattern))
44 const MapRule& rule = *it;
46 // The rule's hostname_pattern will be something like:
53 if (!MatchPattern(host_port->host(), rule.hostname_pattern)) {
55 if (!MatchPattern(host_port_string, rule.hostname_pattern))
56 continue; // This rule doesn't apply.
59 host_port->set_host(rule.replacement_hostname);
60 if (rule.replacement_port != -1)
61 host_port->set_port(rule.replacement_port);
74 // Test for EXCLUSION rule.
76 ExclusionRule rule;
77 rule.hostname_pattern = StringToLowerASCII(parts[1]);
78 exclusion_rules_.push_back(rule);
82 // Test for MAP rule.
84 MapRule rule;
85 rule.hostname_pattern = StringToLowerASCII(parts[1]);
87 if (!ParseHostAndPort(parts[2], &rule.replacement_hostname,
88 &rule.replacement_port)) {
92 map_rules_.push_back(rule);
106 LOG_IF(ERROR, !ok) << "Failed parsing rule: " << rules.token();