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

Unified Diff: chrome/browser/net/sqlite_persistent_cookie_store.h

Issue 5430004: Refactored cookies persistent store clean-up on shutdown. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Lock protected the clear on exit flag. Created 10 years 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: chrome/browser/net/sqlite_persistent_cookie_store.h
diff --git a/chrome/browser/net/sqlite_persistent_cookie_store.h b/chrome/browser/net/sqlite_persistent_cookie_store.h
index 4fcc03148c29643b14cf5f88fdca8d0f58bcd1e5..05cb550b3536bbb7eb0e59c0c69509f9010009de 100644
--- a/chrome/browser/net/sqlite_persistent_cookie_store.h
+++ b/chrome/browser/net/sqlite_persistent_cookie_store.h
@@ -16,20 +16,23 @@
class FilePath;
+// Implements the PersistentCookieStore interface in terms of a SQLite database.
+// For documentation about the actual member functions consult the documentation
+// of the parent class |net::CookieMonster::PersistentCookieStore|.
class SQLitePersistentCookieStore
: public net::CookieMonster::PersistentCookieStore {
public:
explicit SQLitePersistentCookieStore(const FilePath& path);
virtual ~SQLitePersistentCookieStore();
- virtual bool Load(std::vector<net::CookieMonster::CanonicalCookie*>*);
+ virtual bool Load(std::vector<net::CookieMonster::CanonicalCookie*>* cookies);
- virtual void AddCookie(const net::CookieMonster::CanonicalCookie&);
+ virtual void AddCookie(const net::CookieMonster::CanonicalCookie& cc);
virtual void UpdateCookieAccessTime(
- const net::CookieMonster::CanonicalCookie&);
- virtual void DeleteCookie(const net::CookieMonster::CanonicalCookie&);
+ const net::CookieMonster::CanonicalCookie& cc);
+ virtual void DeleteCookie(const net::CookieMonster::CanonicalCookie& cc);
- static void ClearLocalState(const FilePath& path);
+ virtual void SetClearLocalStateOnExit(bool clear_local_state);
private:
class Backend;
« no previous file with comments | « chrome/browser/net/chrome_url_request_context.cc ('k') | chrome/browser/net/sqlite_persistent_cookie_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698