summaryrefslogtreecommitdiffstats
path: root/chrome/browser/net/sqlite_persistent_cookie_store.h
diff options
context:
space:
mode:
authorerikwright@chromium.org <erikwright@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-08 18:03:31 +0000
committererikwright@chromium.org <erikwright@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-08 18:03:31 +0000
commit5e9791ee25e21ea59ffbde31d9330b4d3ccb4b85 (patch)
tree08280972fffb91b4729a4f2d3d61db84d9f0630b /chrome/browser/net/sqlite_persistent_cookie_store.h
parent73455b1bf7535666dd7d0655b398934f5ea9e953 (diff)
downloadchromium_src-5e9791ee25e21ea59ffbde31d9330b4d3ccb4b85.zip
chromium_src-5e9791ee25e21ea59ffbde31d9330b4d3ccb4b85.tar.gz
chromium_src-5e9791ee25e21ea59ffbde31d9330b4d3ccb4b85.tar.bz2
Finalize a CL originally by departed intern ycxiao@ that detaches the loading of cookies from the IO thread.
They are now loaded on the DB thread. Cookie operations received in the meantime are queued and executed, on the IO thread, in the order they were received, when loading completes. A few straggler clients are updated to use the asynchronous CookieStore/CookieMonster API as part of this CL, as the synchronous API is removed. BUG=68657 TEST=net_unittests / DeferredCookieTaskTest.* and CookieMonsterTest.* Review URL: http://codereview.chromium.org/7833042 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@100188 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/net/sqlite_persistent_cookie_store.h')
-rw-r--r--chrome/browser/net/sqlite_persistent_cookie_store.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/chrome/browser/net/sqlite_persistent_cookie_store.h b/chrome/browser/net/sqlite_persistent_cookie_store.h
index f589f25..12a7de5 100644
--- a/chrome/browser/net/sqlite_persistent_cookie_store.h
+++ b/chrome/browser/net/sqlite_persistent_cookie_store.h
@@ -25,16 +25,20 @@ class SQLitePersistentCookieStore
explicit SQLitePersistentCookieStore(const FilePath& path);
virtual ~SQLitePersistentCookieStore();
- virtual bool Load(std::vector<net::CookieMonster::CanonicalCookie*>* cookies);
+ virtual bool Load(const LoadedCallback& loaded_callback) OVERRIDE;
+
+ virtual void AddCookie(
+ const net::CookieMonster::CanonicalCookie& cc) OVERRIDE;
- virtual void AddCookie(const net::CookieMonster::CanonicalCookie& cc);
virtual void UpdateCookieAccessTime(
- const net::CookieMonster::CanonicalCookie& cc);
- virtual void DeleteCookie(const net::CookieMonster::CanonicalCookie& cc);
+ const net::CookieMonster::CanonicalCookie& cc) OVERRIDE;
+
+ virtual void DeleteCookie(
+ const net::CookieMonster::CanonicalCookie& cc) OVERRIDE;
- virtual void SetClearLocalStateOnExit(bool clear_local_state);
+ virtual void SetClearLocalStateOnExit(bool clear_local_state) OVERRIDE;
- virtual void Flush(Task* completion_task);
+ virtual void Flush(Task* completion_task) OVERRIDE;
private:
class Backend;