Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(169)

Unified Diff: net/extras/sqlite/sqlite_persistent_cookie_store.h

Issue 1231493002: mandoline filesystem: Save cookie data to the mojo:filesystem. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge with ToT Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/extras/sqlite/sqlite_persistent_cookie_store.h
diff --git a/net/extras/sqlite/sqlite_persistent_cookie_store.h b/net/extras/sqlite/sqlite_persistent_cookie_store.h
index e29471ae0a23c7add115b6c4cfdca0e3cee48006..c55ef6deec045817712eaf92d76ecf7a509f2d33 100644
--- a/net/extras/sqlite/sqlite_persistent_cookie_store.h
+++ b/net/extras/sqlite/sqlite_persistent_cookie_store.h
@@ -48,6 +48,13 @@ class SQLitePersistentCookieStore
// Deletes the cookies whose origins match those given in |cookies|.
void DeleteAllInList(const std::list<CookieOrigin>& cookies);
+ // Closes the database backend and fires |callback| on the worker
+ // thread. After Close() is called, further calls to the
+ // PersistentCookieStore methods will do nothing, with Load() and
+ // LoadCookiesForKey() additionally calling their callback methods
+ // with an empty vector of CanonicalCookies.
+ void Close(const base::Closure& callback);
+
// CookieMonster::PersistentCookieStore:
void Load(const LoadedCallback& loaded_callback) override;
void LoadCookiesForKey(const std::string& key,

Powered by Google App Engine
This is Rietveld 408576698