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 CHROME_BROWSER_NET_SQLITE_PERSISTENT_COOKIE_STORE_H_ | 7 #ifndef CHROME_BROWSER_NET_SQLITE_PERSISTENT_COOKIE_STORE_H_ |
8 #define CHROME_BROWSER_NET_SQLITE_PERSISTENT_COOKIE_STORE_H_ | 8 #define CHROME_BROWSER_NET_SQLITE_PERSISTENT_COOKIE_STORE_H_ |
9 #pragma once | 9 #pragma once |
10 | 10 |
(...skipping 27 matching lines...) Expand all Loading... | |
38 // net::CookieMonster::PersistentCookieStore: | 38 // net::CookieMonster::PersistentCookieStore: |
39 virtual void Load(const LoadedCallback& loaded_callback) OVERRIDE; | 39 virtual void Load(const LoadedCallback& loaded_callback) OVERRIDE; |
40 virtual void LoadCookiesForKey(const std::string& key, | 40 virtual void LoadCookiesForKey(const std::string& key, |
41 const LoadedCallback& callback) OVERRIDE; | 41 const LoadedCallback& callback) OVERRIDE; |
42 virtual void AddCookie( | 42 virtual void AddCookie( |
43 const net::CookieMonster::CanonicalCookie& cc) OVERRIDE; | 43 const net::CookieMonster::CanonicalCookie& cc) OVERRIDE; |
44 virtual void UpdateCookieAccessTime( | 44 virtual void UpdateCookieAccessTime( |
45 const net::CookieMonster::CanonicalCookie& cc) OVERRIDE; | 45 const net::CookieMonster::CanonicalCookie& cc) OVERRIDE; |
46 virtual void DeleteCookie( | 46 virtual void DeleteCookie( |
47 const net::CookieMonster::CanonicalCookie& cc) OVERRIDE; | 47 const net::CookieMonster::CanonicalCookie& cc) OVERRIDE; |
48 virtual void SetClearLocalStateOnExit(bool clear_local_state) OVERRIDE; | 48 virtual void SetKeepSessionCookies() OVERRIDE; |
marja
2012/05/31 15:30:32
Isn't this the same as SaveSessionState in other s
jochen (gone - plz use gerrit)
2012/05/31 15:54:41
sure. Erik, wdyt?
erikwright (departed)
2012/05/31 18:02:02
I think I prefer it having the 'Set' in the name.
jochen (gone - plz use gerrit)
2012/06/01 12:15:19
I called it SetForceKeepSessionState
| |
49 virtual void Flush(const base::Closure& callback) OVERRIDE; | 49 virtual void Flush(const base::Closure& callback) OVERRIDE; |
50 | 50 |
51 protected: | 51 protected: |
52 virtual ~SQLitePersistentCookieStore(); | 52 virtual ~SQLitePersistentCookieStore(); |
53 | 53 |
54 private: | 54 private: |
55 class Backend; | 55 class Backend; |
56 | 56 |
57 scoped_refptr<Backend> backend_; | 57 scoped_refptr<Backend> backend_; |
58 | 58 |
59 DISALLOW_COPY_AND_ASSIGN(SQLitePersistentCookieStore); | 59 DISALLOW_COPY_AND_ASSIGN(SQLitePersistentCookieStore); |
60 }; | 60 }; |
61 | 61 |
62 #endif // CHROME_BROWSER_NET_SQLITE_PERSISTENT_COOKIE_STORE_H_ | 62 #endif // CHROME_BROWSER_NET_SQLITE_PERSISTENT_COOKIE_STORE_H_ |
OLD | NEW |