| OLD | NEW |
| 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 void Close(const base::Closure& callback); | 55 void Close(const base::Closure& callback); |
| 56 | 56 |
| 57 // CookieMonster::PersistentCookieStore: | 57 // CookieMonster::PersistentCookieStore: |
| 58 void Load(const LoadedCallback& loaded_callback) override; | 58 void Load(const LoadedCallback& loaded_callback) override; |
| 59 void LoadCookiesForKey(const std::string& key, | 59 void LoadCookiesForKey(const std::string& key, |
| 60 const LoadedCallback& callback) override; | 60 const LoadedCallback& callback) override; |
| 61 void AddCookie(const CanonicalCookie& cc) override; | 61 void AddCookie(const CanonicalCookie& cc) override; |
| 62 void UpdateCookieAccessTime(const CanonicalCookie& cc) override; | 62 void UpdateCookieAccessTime(const CanonicalCookie& cc) override; |
| 63 void DeleteCookie(const CanonicalCookie& cc) override; | 63 void DeleteCookie(const CanonicalCookie& cc) override; |
| 64 void SetForceKeepSessionState() override; | 64 void SetForceKeepSessionState() override; |
| 65 void Flush(const base::Closure& callback) override; | 65 void Flush(base::OnceClosure callback) override; |
| 66 | 66 |
| 67 private: | 67 private: |
| 68 ~SQLitePersistentCookieStore() override; | 68 ~SQLitePersistentCookieStore() override; |
| 69 | 69 |
| 70 class Backend; | 70 class Backend; |
| 71 | 71 |
| 72 scoped_refptr<Backend> backend_; | 72 scoped_refptr<Backend> backend_; |
| 73 | 73 |
| 74 DISALLOW_COPY_AND_ASSIGN(SQLitePersistentCookieStore); | 74 DISALLOW_COPY_AND_ASSIGN(SQLitePersistentCookieStore); |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 } // namespace net | 77 } // namespace net |
| 78 | 78 |
| 79 #endif // NET_EXTRAS_SQLITE_SQLITE_PERSISTENT_COOKIE_STORE_H_ | 79 #endif // NET_EXTRAS_SQLITE_SQLITE_PERSISTENT_COOKIE_STORE_H_ |
| OLD | NEW |