summaryrefslogtreecommitdiffstats
path: root/net/proxy
diff options
context:
space:
mode:
authorerg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-31 18:00:53 +0000
committererg@google.com <erg@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-31 18:00:53 +0000
commit9349cfb12f1b27e30ebb5d4ffc994812cce26d59 (patch)
treec98a55495b06a5cd068c251d2e217cf89cef6c02 /net/proxy
parent1c77d22487ac4759f29d329be7493228671bc05f (diff)
downloadchromium_src-9349cfb12f1b27e30ebb5d4ffc994812cce26d59.zip
chromium_src-9349cfb12f1b27e30ebb5d4ffc994812cce26d59.tar.gz
chromium_src-9349cfb12f1b27e30ebb5d4ffc994812cce26d59.tar.bz2
FBTF: A giant cleanup to net/
This moves all sorts of code from h files to cc files and reduces header dependencies. BUG=none TEST=compiles Review URL: http://codereview.chromium.org/3212008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58020 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/proxy')
-rw-r--r--net/proxy/proxy_bypass_rules.cc12
-rw-r--r--net/proxy/proxy_bypass_rules.h4
2 files changed, 15 insertions, 1 deletions
diff --git a/net/proxy/proxy_bypass_rules.cc b/net/proxy/proxy_bypass_rules.cc
index 02d8e3f..987543a 100644
--- a/net/proxy/proxy_bypass_rules.cc
+++ b/net/proxy/proxy_bypass_rules.cc
@@ -123,9 +123,21 @@ bool IsIPAddress(const std::string& domain) {
} // namespace
+ProxyBypassRules::ProxyBypassRules() {
+}
+
+ProxyBypassRules::ProxyBypassRules(const ProxyBypassRules& rhs)
+ : rules_(rhs.rules_) {
+}
+
ProxyBypassRules::~ProxyBypassRules() {
}
+ProxyBypassRules& ProxyBypassRules::operator=(const ProxyBypassRules& rhs) {
+ rules_ = rhs.rules_;
+ return *this;
+}
+
bool ProxyBypassRules::Matches(const GURL& url) const {
for (RuleList::const_iterator it = rules_.begin(); it != rules_.end(); ++it) {
if ((*it)->Matches(url))
diff --git a/net/proxy/proxy_bypass_rules.h b/net/proxy/proxy_bypass_rules.h
index f66984b..9873154 100644
--- a/net/proxy/proxy_bypass_rules.h
+++ b/net/proxy/proxy_bypass_rules.h
@@ -43,8 +43,10 @@ class ProxyBypassRules {
typedef std::vector<scoped_refptr<Rule> > RuleList;
// Note: This class supports copy constructor and assignment.
-
+ ProxyBypassRules();
+ ProxyBypassRules(const ProxyBypassRules& rhs);
~ProxyBypassRules();
+ ProxyBypassRules& operator=(const ProxyBypassRules& rhs);
// Returns the current list of rules.
const RuleList& rules() const { return rules_; }