summaryrefslogtreecommitdiffstats
path: root/net/proxy/proxy_resolver.h
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-13 01:39:58 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-13 01:39:58 +0000
commit0cf348bee91869f8ec4b17995fc65bfb02c0755d (patch)
tree2e4b045102485224511bdb794ab4ed7024d1a94f /net/proxy/proxy_resolver.h
parentec2191fc123ffe5208995a4f4bd3f4e350590a44 (diff)
downloadchromium_src-0cf348bee91869f8ec4b17995fc65bfb02c0755d.zip
chromium_src-0cf348bee91869f8ec4b17995fc65bfb02c0755d.tar.gz
chromium_src-0cf348bee91869f8ec4b17995fc65bfb02c0755d.tar.bz2
Add the ability to purge memory to the ProxyResolver.
BUG=23400 TEST=none Review URL: http://codereview.chromium.org/272018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28769 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/proxy/proxy_resolver.h')
-rw-r--r--net/proxy/proxy_resolver.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/net/proxy/proxy_resolver.h b/net/proxy/proxy_resolver.h
index 58b09e6..2e83097b 100644
--- a/net/proxy/proxy_resolver.h
+++ b/net/proxy/proxy_resolver.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -70,6 +70,11 @@ class ProxyResolver {
NOTREACHED();
}
+ // Frees any unneeded memory held by the resolver, e.g. garbage in the JS
+ // engine. Most subclasses don't need to do anything, so we provide a default
+ // no-op implementation.
+ virtual void PurgeMemory() {}
+
private:
// Called to set the PAC script backend to use. If |pac_url| is invalid,
// this is a request to use WPAD (auto detect). |bytes_utf8| may be empty if