| 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 // A sqlite implementation of a cookie monster persistent store. | 5 // A sqlite implementation of a cookie monster persistent store. |
| 6 | 6 |
| 7 #ifndef CONTENT_BROWSER_NET_SQLITE_PERSISTENT_COOKIE_STORE_H_ | 7 #ifndef CONTENT_BROWSER_NET_SQLITE_PERSISTENT_COOKIE_STORE_H_ |
| 8 #define CONTENT_BROWSER_NET_SQLITE_PERSISTENT_COOKIE_STORE_H_ | 8 #define CONTENT_BROWSER_NET_SQLITE_PERSISTENT_COOKIE_STORE_H_ |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 // callbacks. | 47 // callbacks. |
| 48 SQLitePersistentCookieStore( | 48 SQLitePersistentCookieStore( |
| 49 const base::FilePath& path, | 49 const base::FilePath& path, |
| 50 const scoped_refptr<base::SequencedTaskRunner>& client_task_runner, | 50 const scoped_refptr<base::SequencedTaskRunner>& client_task_runner, |
| 51 const scoped_refptr<base::SequencedTaskRunner>& background_task_runner, | 51 const scoped_refptr<base::SequencedTaskRunner>& background_task_runner, |
| 52 bool restore_old_session_cookies, | 52 bool restore_old_session_cookies, |
| 53 storage::SpecialStoragePolicy* special_storage_policy, | 53 storage::SpecialStoragePolicy* special_storage_policy, |
| 54 CookieCryptoDelegate* crypto_delegate); | 54 CookieCryptoDelegate* crypto_delegate); |
| 55 | 55 |
| 56 // net::CookieMonster::PersistentCookieStore: | 56 // net::CookieMonster::PersistentCookieStore: |
| 57 virtual void Load(const LoadedCallback& loaded_callback) override; | 57 void Load(const LoadedCallback& loaded_callback) override; |
| 58 virtual void LoadCookiesForKey(const std::string& key, | 58 void LoadCookiesForKey(const std::string& key, |
| 59 const LoadedCallback& callback) override; | 59 const LoadedCallback& callback) override; |
| 60 virtual void AddCookie(const net::CanonicalCookie& cc) override; | 60 void AddCookie(const net::CanonicalCookie& cc) override; |
| 61 virtual void UpdateCookieAccessTime(const net::CanonicalCookie& cc) override; | 61 void UpdateCookieAccessTime(const net::CanonicalCookie& cc) override; |
| 62 virtual void DeleteCookie(const net::CanonicalCookie& cc) override; | 62 void DeleteCookie(const net::CanonicalCookie& cc) override; |
| 63 virtual void SetForceKeepSessionState() override; | 63 void SetForceKeepSessionState() override; |
| 64 virtual void Flush(const base::Closure& callback) override; | 64 void Flush(const base::Closure& callback) override; |
| 65 | 65 |
| 66 protected: | 66 protected: |
| 67 virtual ~SQLitePersistentCookieStore(); | 67 ~SQLitePersistentCookieStore() override; |
| 68 | 68 |
| 69 private: | 69 private: |
| 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 content | 77 } // namespace content |
| 78 | 78 |
| 79 #endif // CONTENT_BROWSER_NET_SQLITE_PERSISTENT_COOKIE_STORE_H_ | 79 #endif // CONTENT_BROWSER_NET_SQLITE_PERSISTENT_COOKIE_STORE_H_ |
| OLD | NEW |