summaryrefslogtreecommitdiffstats
path: root/net/base/cookie_store.cc
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 /net/base/cookie_store.cc
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 'net/base/cookie_store.cc')
-rw-r--r--net/base/cookie_store.cc26
1 files changed, 0 insertions, 26 deletions
diff --git a/net/base/cookie_store.cc b/net/base/cookie_store.cc
index 0b75580..a806d6c 100644
--- a/net/base/cookie_store.cc
+++ b/net/base/cookie_store.cc
@@ -8,32 +8,6 @@
namespace net {
-bool CookieStore::SetCookie(const GURL& url, const std::string& cookie_line) {
- return SetCookieWithOptions(url, cookie_line, CookieOptions());
-}
-
-std::string CookieStore::GetCookies(const GURL& url) {
- return GetCookiesWithOptions(url, CookieOptions());
-}
-
-void CookieStore::GetCookiesAsync(
- const GURL& url, const GetCookiesCallback& callback) {
- GetCookiesWithOptionsAsync(url, CookieOptions(), callback);
-}
-
-void CookieStore::SetCookiesWithOptions(
- const GURL& url,
- const std::vector<std::string>& cookie_lines,
- const CookieOptions& options) {
- for (size_t i = 0; i < cookie_lines.size(); ++i)
- SetCookieWithOptions(url, cookie_lines[i], options);
-}
-
-void CookieStore::SetCookies(const GURL& url,
- const std::vector<std::string>& cookie_lines) {
- SetCookiesWithOptions(url, cookie_lines, CookieOptions());
-}
-
CookieStore::CookieStore() {}
CookieStore::~CookieStore() {}