summaryrefslogtreecommitdiffstats
path: root/webkit/extensions
diff options
context:
space:
mode:
Diffstat (limited to 'webkit/extensions')
-rw-r--r--webkit/extensions/v8/benchmarking_extension.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/webkit/extensions/v8/benchmarking_extension.cc b/webkit/extensions/v8/benchmarking_extension.cc
index 2fa56eb0..600eafa 100644
--- a/webkit/extensions/v8/benchmarking_extension.cc
+++ b/webkit/extensions/v8/benchmarking_extension.cc
@@ -27,9 +27,9 @@ class BenchmarkingWrapper : public v8::Extension {
"if (typeof(chrome.benchmarking) == 'undefined') {"
" chrome.benchmarking = {};"
"};"
- "chrome.benchmarking.clearCache = function() {"
+ "chrome.benchmarking.clearCache = function(preserve_ssl_entries) {"
" native function ClearCache();"
- " ClearCache();"
+ " ClearCache(preserve_ssl_entries);"
"};"
"chrome.benchmarking.closeConnections = function() {"
" native function CloseConnections();"
@@ -94,7 +94,10 @@ class BenchmarkingWrapper : public v8::Extension {
}
static v8::Handle<v8::Value> ClearCache(const v8::Arguments& args) {
- webkit_glue::ClearCache();
+ bool preserve_ssl_host_entries = false;
+ if (args.Length() && args[0]->IsBoolean())
+ preserve_ssl_host_entries = args[0]->BooleanValue();
+ webkit_glue::ClearCache(preserve_ssl_host_entries);
WebCache::clear();
return v8::Undefined();
}