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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_EXTRAS_SQLITE_SQLITE_PERSISTENT_COOKIE_STORE_H_ 5 #ifndef NET_EXTRAS_SQLITE_SQLITE_PERSISTENT_COOKIE_STORE_H_
6 #define NET_EXTRAS_SQLITE_SQLITE_PERSISTENT_COOKIE_STORE_H_ 6 #define NET_EXTRAS_SQLITE_SQLITE_PERSISTENT_COOKIE_STORE_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 30 matching lines...) Expand all
41 SQLitePersistentCookieStore( 41 SQLitePersistentCookieStore(
42 const base::FilePath& path, 42 const base::FilePath& path,
43 const scoped_refptr<base::SequencedTaskRunner>& client_task_runner, 43 const scoped_refptr<base::SequencedTaskRunner>& client_task_runner,
44 const scoped_refptr<base::SequencedTaskRunner>& background_task_runner, 44 const scoped_refptr<base::SequencedTaskRunner>& background_task_runner,
45 bool restore_old_session_cookies, 45 bool restore_old_session_cookies,
46 CookieCryptoDelegate* crypto_delegate); 46 CookieCryptoDelegate* crypto_delegate);
47 47
48 // Deletes the cookies whose origins match those given in |cookies|. 48 // Deletes the cookies whose origins match those given in |cookies|.
49 void DeleteAllInList(const std::list<CookieOrigin>& cookies); 49 void DeleteAllInList(const std::list<CookieOrigin>& cookies);
50 50
51 // Closes the database backend and fires |callback| on the worker
52 // thread. After Close() is called, further calls to the
53 // PersistentCookieStore methods will do nothing, with Load() and
54 // LoadCookiesForKey() additionally calling their callback methods
55 // with an empty vector of CanonicalCookies.
56 void Close(const base::Closure& callback);
57
51 // CookieMonster::PersistentCookieStore: 58 // CookieMonster::PersistentCookieStore:
52 void Load(const LoadedCallback& loaded_callback) override; 59 void Load(const LoadedCallback& loaded_callback) override;
53 void LoadCookiesForKey(const std::string& key, 60 void LoadCookiesForKey(const std::string& key,
54 const LoadedCallback& callback) override; 61 const LoadedCallback& callback) override;
55 void AddCookie(const CanonicalCookie& cc) override; 62 void AddCookie(const CanonicalCookie& cc) override;
56 void UpdateCookieAccessTime(const CanonicalCookie& cc) override; 63 void UpdateCookieAccessTime(const CanonicalCookie& cc) override;
57 void DeleteCookie(const CanonicalCookie& cc) override; 64 void DeleteCookie(const CanonicalCookie& cc) override;
58 void SetForceKeepSessionState() override; 65 void SetForceKeepSessionState() override;
59 void Flush(const base::Closure& callback) override; 66 void Flush(const base::Closure& callback) override;
60 67
61 private: 68 private:
62 ~SQLitePersistentCookieStore() override; 69 ~SQLitePersistentCookieStore() override;
63 70
64 class Backend; 71 class Backend;
65 72
66 scoped_refptr<Backend> backend_; 73 scoped_refptr<Backend> backend_;
67 74
68 DISALLOW_COPY_AND_ASSIGN(SQLitePersistentCookieStore); 75 DISALLOW_COPY_AND_ASSIGN(SQLitePersistentCookieStore);
69 }; 76 };
70 77
71 } // namespace net 78 } // namespace net
72 79
73 #endif // NET_EXTRAS_SQLITE_SQLITE_PERSISTENT_COOKIE_STORE_H_ 80 #endif // NET_EXTRAS_SQLITE_SQLITE_PERSISTENT_COOKIE_STORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698