summaryrefslogtreecommitdiffstats
path: root/WebKit/android/WebCoreSupport/WebCookieJar.h
diff options
context:
space:
mode:
authorIain Merrick <husky@google.com>2010-12-02 11:24:53 +0000
committerIain Merrick <husky@google.com>2010-12-03 11:14:40 +0000
commite4aa630adb18846d4420dc328cdfcfef6b47caa5 (patch)
tree7fc87ae43a70a8189a734183a0ef322a8339db13 /WebKit/android/WebCoreSupport/WebCookieJar.h
parent8fe068b72b160f7bc81892e9c40bfa917aa132d1 (diff)
downloadexternal_webkit-e4aa630adb18846d4420dc328cdfcfef6b47caa5.zip
external_webkit-e4aa630adb18846d4420dc328cdfcfef6b47caa5.tar.gz
external_webkit-e4aa630adb18846d4420dc328cdfcfef6b47caa5.tar.bz2
CookieManager::flushCookieStore() is now synchronous.
This ensures that all data is correctly stored before onPause() returns. There's no API change on the Java side (although I should update the comment to explain it's now synchronous; I'll do that in another CL). Depends on a new completion callback added to CookieMonster. See change Ieb3e787b in external/chromium. Change-Id: I008f35d101a9223fe705396273bc4cd563a5f77e
Diffstat (limited to 'WebKit/android/WebCoreSupport/WebCookieJar.h')
-rw-r--r--WebKit/android/WebCoreSupport/WebCookieJar.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/WebKit/android/WebCoreSupport/WebCookieJar.h b/WebKit/android/WebCoreSupport/WebCookieJar.h
index ecaa228..1372064 100644
--- a/WebKit/android/WebCoreSupport/WebCookieJar.h
+++ b/WebKit/android/WebCoreSupport/WebCookieJar.h
@@ -39,6 +39,9 @@ public:
static WebCookieJar* get(bool isPrivateBrowsing);
static void cleanup(bool isPrivateBrowsing);
+ // Flush all cookies to disk. Synchronous.
+ static void flush();
+
// CookiePolicy implementation from external/chromium
virtual int CanGetCookies(const GURL& url, const GURL& first_party_for_cookies, net::CompletionCallback*);
virtual int CanSetCookie(const GURL& url, const GURL& first_party_for_cookies, const std::string& cookie_line, net::CompletionCallback*);