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

Unified Diff: net/base/host_mapping_rules.cc

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: net/base/host_mapping_rules.cc
diff --git a/net/base/host_mapping_rules.cc b/net/base/host_mapping_rules.cc
index 6ae475458b0203d2f462b93fd17b748da3d06375..da8da1294d956b04fdc9b38cff0022cb67f1f5fa 100644
--- a/net/base/host_mapping_rules.cc
+++ b/net/base/host_mapping_rules.cc
@@ -25,14 +25,17 @@ struct HostMappingRules::ExclusionRule {
std::string hostname_pattern;
};
-HostMappingRules::HostMappingRules() {}
+HostMappingRules::HostMappingRules() {
+}
-HostMappingRules::~HostMappingRules() {}
+HostMappingRules::~HostMappingRules() {
+}
bool HostMappingRules::RewriteHost(HostPortPair* host_port) const {
// Check if the hostname was excluded.
for (ExclusionRuleList::const_iterator it = exclusion_rules_.begin();
- it != exclusion_rules_.end(); ++it) {
+ it != exclusion_rules_.end();
+ ++it) {
const ExclusionRule& rule = *it;
if (MatchPattern(host_port->host(), rule.hostname_pattern))
return false;
@@ -40,7 +43,8 @@ bool HostMappingRules::RewriteHost(HostPortPair* host_port) const {
// Check if the hostname was remapped.
for (MapRuleList::const_iterator it = map_rules_.begin();
- it != map_rules_.end(); ++it) {
+ it != map_rules_.end();
+ ++it) {
const MapRule& rule = *it;
// The rule's hostname_pattern will be something like:
@@ -84,8 +88,8 @@ bool HostMappingRules::AddRuleFromString(const std::string& rule_string) {
MapRule rule;
rule.hostname_pattern = StringToLowerASCII(parts[1]);
- if (!ParseHostAndPort(parts[2], &rule.replacement_hostname,
- &rule.replacement_port)) {
+ if (!ParseHostAndPort(
+ parts[2], &rule.replacement_hostname, &rule.replacement_port)) {
return false; // Failed parsing the hostname/port.
}
« no previous file with comments | « net/base/hash_value.cc ('k') | net/base/host_port_pair.h » ('j') | net/base/mime_sniffer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698