summaryrefslogtreecommitdiffstats
path: root/net/proxy/proxy_service.cc
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_service.cc
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_service.cc')
-rw-r--r--net/proxy/proxy_service.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/proxy/proxy_service.cc b/net/proxy/proxy_service.cc
index 637fbbd..6d881be 100644
--- a/net/proxy/proxy_service.cc
+++ b/net/proxy/proxy_service.cc
@@ -521,6 +521,11 @@ void ProxyService::ResetConfigService(
UpdateConfig();
}
+void ProxyService::PurgeMemory() {
+ if (resolver_.get())
+ resolver_->PurgeMemory();
+}
+
void ProxyService::DidCompletePacRequest(int config_id, int result_code) {
// If we get an error that indicates a bad PAC config, then we should
// remember that, and not try the PAC config again for a while.