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

Unified Diff: net/base/host_mapping_rules.h

Issue 2906463002: Make HttpNetworkSession::host_mapping_rules no longer a pointer. (Closed)
Patch Set: Oops Created 3 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.h
diff --git a/net/base/host_mapping_rules.h b/net/base/host_mapping_rules.h
index 8c7bc0bf92e99471fbd87414242aa304ccce5ebb..02aef4369b2bef13f50ca9290cd326621cb1ed75 100644
--- a/net/base/host_mapping_rules.h
+++ b/net/base/host_mapping_rules.h
@@ -18,8 +18,11 @@ class HostPortPair;
class NET_EXPORT_PRIVATE HostMappingRules {
public:
HostMappingRules();
+ HostMappingRules(const HostMappingRules& host_mapping_rules);
~HostMappingRules();
+ HostMappingRules& operator=(const HostMappingRules& host_mapping_rules);
+
// Modifies |*host_port| based on the current rules. Returns true if
// |*host_port| was modified, false otherwise.
bool RewriteHost(HostPortPair* host_port) const;
@@ -46,8 +49,6 @@ class NET_EXPORT_PRIVATE HostMappingRules {
MapRuleList map_rules_;
ExclusionRuleList exclusion_rules_;
-
- DISALLOW_COPY_AND_ASSIGN(HostMappingRules);
};
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698