Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 17 matching lines...) Expand all Loading... | |
| 28 explicit SQLitePersistentCookieStore(const FilePath& path); | 28 explicit SQLitePersistentCookieStore(const FilePath& path); |
| 29 virtual ~SQLitePersistentCookieStore(); | 29 virtual ~SQLitePersistentCookieStore(); |
| 30 | 30 |
| 31 virtual bool Load(std::vector<net::CookieMonster::CanonicalCookie*>*); | 31 virtual bool Load(std::vector<net::CookieMonster::CanonicalCookie*>*); |
| 32 | 32 |
| 33 virtual void AddCookie(const net::CookieMonster::CanonicalCookie&); | 33 virtual void AddCookie(const net::CookieMonster::CanonicalCookie&); |
| 34 virtual void UpdateCookieAccessTime( | 34 virtual void UpdateCookieAccessTime( |
| 35 const net::CookieMonster::CanonicalCookie&); | 35 const net::CookieMonster::CanonicalCookie&); |
| 36 virtual void DeleteCookie(const net::CookieMonster::CanonicalCookie&); | 36 virtual void DeleteCookie(const net::CookieMonster::CanonicalCookie&); |
| 37 | 37 |
| 38 static void ClearLocalState(const FilePath& path); | 38 virtual void ClearLocalState(); |
|
Mattias Nissler (ping if slow)
2010/12/01 17:23:24
Could use a comment :) I'm aware this class doesn'
pastarmovj
2010/12/02 14:54:36
Actually commented the class with a notice what it
| |
| 39 | 39 |
| 40 private: | 40 private: |
| 41 class Backend; | 41 class Backend; |
| 42 | 42 |
| 43 // Database upgrade statements. | 43 // Database upgrade statements. |
| 44 bool EnsureDatabaseVersion(sql::Connection* db); | 44 bool EnsureDatabaseVersion(sql::Connection* db); |
| 45 | 45 |
| 46 FilePath path_; | 46 FilePath path_; |
| 47 scoped_refptr<Backend> backend_; | 47 scoped_refptr<Backend> backend_; |
| 48 | 48 |
| 49 sql::MetaTable meta_table_; | 49 sql::MetaTable meta_table_; |
| 50 | 50 |
| 51 DISALLOW_COPY_AND_ASSIGN(SQLitePersistentCookieStore); | 51 DISALLOW_COPY_AND_ASSIGN(SQLitePersistentCookieStore); |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 #endif // CHROME_BROWSER_NET_SQLITE_PERSISTENT_COOKIE_STORE_H_ | 54 #endif // CHROME_BROWSER_NET_SQLITE_PERSISTENT_COOKIE_STORE_H_ |
| OLD | NEW |