summaryrefslogtreecommitdiffstats
path: root/webkit/glue
diff options
context:
space:
mode:
authortonyg@chromium.org <tonyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-28 20:50:55 +0000
committertonyg@chromium.org <tonyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-28 20:50:55 +0000
commit8990e4716c6bf3f19625d24be013502fc6e24873 (patch)
treefe934abf9d3b6139c096e415de0dd99fbae3fecc /webkit/glue
parentd15f03f7d3aaa253d32c8bfc4f1543f5f9d6eeae (diff)
downloadchromium_src-8990e4716c6bf3f19625d24be013502fc6e24873.zip
chromium_src-8990e4716c6bf3f19625d24be013502fc6e24873.tar.gz
chromium_src-8990e4716c6bf3f19625d24be013502fc6e24873.tar.bz2
Add chrome.benchmark routines to clear the host and predictor caches.
This will be used in web-page-replay to enable TCP preconnect and DNS prefetch. BUG=None TEST=unit_tests passes Review URL: http://codereview.chromium.org/6660008 Patch from Ziga Mahkovec <ziga@chromium.org>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79610 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue')
-rw-r--r--webkit/glue/webkit_glue.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/webkit/glue/webkit_glue.h b/webkit/glue/webkit_glue.h
index a860888..5df4a52 100644
--- a/webkit/glue/webkit_glue.h
+++ b/webkit/glue/webkit_glue.h
@@ -267,6 +267,13 @@ void SetCacheMode(bool enabled);
// SSL information should be purged.
void ClearCache(bool preserve_ssl_host_info);
+// Clear the host resolver cache. Used for debugging.
+void ClearHostResolverCache();
+
+// Clear the predictor cache (for DNS prefetch and preconnect). Used for
+// debugging.
+void ClearPredictorCache();
+
// Returns the product version. E.g., Chrome/4.1.333.0
std::string GetProductVersion();