diff options
| author | Selim Gurun <sgurun@google.com> | 2012-02-15 17:47:40 -0800 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-02-15 17:47:40 -0800 |
| commit | 80ec17f6451f55bcadd789d4c4b4c6444171d10f (patch) | |
| tree | 5438c31a3a144d2bb67898055ffeec80e3928dce /Source/WebKit/android/WebCoreSupport | |
| parent | 3410ffc0890f04ba9ca38573ab37c309b4aff5bd (diff) | |
| parent | d61e19d1adc4e5fd664a3a5e5c0fd1141e697345 (diff) | |
| download | external_webkit-80ec17f6451f55bcadd789d4c4b4c6444171d10f.zip external_webkit-80ec17f6451f55bcadd789d4c4b4c6444171d10f.tar.gz external_webkit-80ec17f6451f55bcadd789d4c4b4c6444171d10f.tar.bz2 | |
Merge "Clean cached trust state on system storage update."
Diffstat (limited to 'Source/WebKit/android/WebCoreSupport')
| -rw-r--r-- | Source/WebKit/android/WebCoreSupport/WebCache.cpp | 17 | ||||
| -rw-r--r-- | Source/WebKit/android/WebCoreSupport/WebCache.h | 3 |
2 files changed, 18 insertions, 2 deletions
diff --git a/Source/WebKit/android/WebCoreSupport/WebCache.cpp b/Source/WebKit/android/WebCoreSupport/WebCache.cpp index 9b505ee..82e3b27 100644 --- a/Source/WebKit/android/WebCoreSupport/WebCache.cpp +++ b/Source/WebKit/android/WebCoreSupport/WebCache.cpp @@ -30,7 +30,7 @@ #include "WebCoreJni.h" #include "WebRequestContext.h" #include "WebUrlLoaderClient.h" - +#include "net/http/http_network_session.h" #include <wtf/text/CString.h> using namespace WTF; @@ -131,6 +131,21 @@ void WebCache::clear() thread->message_loop()->PostTask(FROM_HERE, NewRunnableMethod(this, &WebCache::clearImpl)); } +void WebCache::certTrustChanged() +{ + base::Thread* thread = WebUrlLoaderClient::ioThread(); + if (thread) + thread->message_loop()->PostTask(FROM_HERE, NewRunnableMethod(this, &WebCache::certTrustChangedImpl)); +} + +void WebCache::certTrustChangedImpl() +{ + net::HttpNetworkSession* session = m_cache->GetSession(); + if (session) + session->cert_verifier()->ClearCache(); + m_cache->CloseAllConnections(); +} + void WebCache::closeIdleConnections() { base::Thread* thread = WebUrlLoaderClient::ioThread(); diff --git a/Source/WebKit/android/WebCoreSupport/WebCache.h b/Source/WebKit/android/WebCoreSupport/WebCache.h index c3b623d..ad57d88 100644 --- a/Source/WebKit/android/WebCoreSupport/WebCache.h +++ b/Source/WebKit/android/WebCoreSupport/WebCache.h @@ -48,7 +48,7 @@ public: net::HttpCache* cache() { return m_cache.get(); } net::ProxyConfigServiceAndroid* proxy() { return m_proxyConfigService; } void closeIdleConnections(); - + void certTrustChanged(); private: WebCache(bool isPrivateBrowsing); @@ -60,6 +60,7 @@ private: // For closeIdleConnections void closeIdleImpl(); + void certTrustChangedImpl(); // For getEntry() void getEntryImpl(); |
