summaryrefslogtreecommitdiffstats
path: root/Source/WebKit/android/WebCoreSupport/WebCache.cpp
diff options
context:
space:
mode:
authorKristian Monsen <kristianm@google.com>2011-09-01 20:30:10 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-09-01 20:30:10 -0700
commit903ede82b6a07ee55e85df1fd67d104ca4260a0c (patch)
tree0dfd6a7d3d5c9d8669595d90df574a1dbe939b85 /Source/WebKit/android/WebCoreSupport/WebCache.cpp
parentb53cff5eb9dbb10169c8adae7692c91d0a807ed9 (diff)
parent76859bf6d78119b2bf4fe2aa2c2a4761fa90503c (diff)
downloadexternal_webkit-903ede82b6a07ee55e85df1fd67d104ca4260a0c.zip
external_webkit-903ede82b6a07ee55e85df1fd67d104ca4260a0c.tar.gz
external_webkit-903ede82b6a07ee55e85df1fd67d104ca4260a0c.tar.bz2
Merge "Closing idle connections, including jni interface"
Diffstat (limited to 'Source/WebKit/android/WebCoreSupport/WebCache.cpp')
-rw-r--r--Source/WebKit/android/WebCoreSupport/WebCache.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/WebKit/android/WebCoreSupport/WebCache.cpp b/Source/WebKit/android/WebCoreSupport/WebCache.cpp
index a15bf7f..3c49430 100644
--- a/Source/WebKit/android/WebCoreSupport/WebCache.cpp
+++ b/Source/WebKit/android/WebCoreSupport/WebCache.cpp
@@ -134,6 +134,18 @@ void WebCache::clear()
thread->message_loop()->PostTask(FROM_HERE, NewRunnableMethod(this, &WebCache::clearImpl));
}
+void WebCache::closeIdleConnections()
+{
+ base::Thread* thread = WebUrlLoaderClient::ioThread();
+ if (thread)
+ thread->message_loop()->PostTask(FROM_HERE, NewRunnableMethod(this, &WebCache::closeIdleImpl));
+}
+
+void WebCache::closeIdleImpl()
+{
+ m_cache->CloseIdleConnections();
+}
+
void WebCache::clearImpl()
{
if (m_isClearInProgress)