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

Side by Side Diff: chrome/browser/net/sqlite_persistent_cookie_store.h

Issue 10071032: RefCounted types should not have public destructors, chrome/browser/ part 1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 | Annotate | Revision Log
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 // 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
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/callback_forward.h" 14 #include "base/callback_forward.h"
15 #include "base/compiler_specific.h" 15 #include "base/compiler_specific.h"
16 #include "base/memory/ref_counted.h" 16 #include "base/memory/ref_counted.h"
17 #include "net/cookies/cookie_monster.h" 17 #include "net/cookies/cookie_monster.h"
18 18
19 class FilePath; 19 class FilePath;
20 class Task; 20 class Task;
21 21
22 // Implements the PersistentCookieStore interface in terms of a SQLite database. 22 // Implements the PersistentCookieStore interface in terms of a SQLite database.
23 // For documentation about the actual member functions consult the documentation 23 // For documentation about the actual member functions consult the documentation
24 // of the parent class |net::CookieMonster::PersistentCookieStore|. 24 // of the parent class |net::CookieMonster::PersistentCookieStore|.
25 class SQLitePersistentCookieStore 25 class SQLitePersistentCookieStore
26 : public net::CookieMonster::PersistentCookieStore { 26 : public net::CookieMonster::PersistentCookieStore {
27 public: 27 public:
28 SQLitePersistentCookieStore(const FilePath& path, 28 SQLitePersistentCookieStore(const FilePath& path,
29 bool restore_old_session_cookies); 29 bool restore_old_session_cookies);
30 virtual ~SQLitePersistentCookieStore();
31 30
32 virtual void Load(const LoadedCallback& loaded_callback) OVERRIDE; 31 virtual void Load(const LoadedCallback& loaded_callback) OVERRIDE;
33 32
34 virtual void LoadCookiesForKey(const std::string& key, 33 virtual void LoadCookiesForKey(const std::string& key,
35 const LoadedCallback& callback) OVERRIDE; 34 const LoadedCallback& callback) OVERRIDE;
36 35
37 virtual void AddCookie( 36 virtual void AddCookie(
38 const net::CookieMonster::CanonicalCookie& cc) OVERRIDE; 37 const net::CookieMonster::CanonicalCookie& cc) OVERRIDE;
39 38
40 virtual void UpdateCookieAccessTime( 39 virtual void UpdateCookieAccessTime(
41 const net::CookieMonster::CanonicalCookie& cc) OVERRIDE; 40 const net::CookieMonster::CanonicalCookie& cc) OVERRIDE;
42 41
43 virtual void DeleteCookie( 42 virtual void DeleteCookie(
44 const net::CookieMonster::CanonicalCookie& cc) OVERRIDE; 43 const net::CookieMonster::CanonicalCookie& cc) OVERRIDE;
45 44
46 virtual void SetClearLocalStateOnExit(bool clear_local_state) OVERRIDE; 45 virtual void SetClearLocalStateOnExit(bool clear_local_state) OVERRIDE;
47 46
48 virtual void Flush(const base::Closure& callback) OVERRIDE; 47 virtual void Flush(const base::Closure& callback) OVERRIDE;
49 48
50 private: 49 private:
51 class Backend; 50 class Backend;
52 51
52 virtual ~SQLitePersistentCookieStore();
eroman 2012/04/13 18:47:25 Is it intentional that these lack implementations?
Ryan Sleevi 2012/04/13 18:52:35 The implementation is in the .cc file. All that ch
eroman 2012/04/13 19:26:38 oops, misread that!
53
53 scoped_refptr<Backend> backend_; 54 scoped_refptr<Backend> backend_;
54 55
55 DISALLOW_COPY_AND_ASSIGN(SQLitePersistentCookieStore); 56 DISALLOW_COPY_AND_ASSIGN(SQLitePersistentCookieStore);
56 }; 57 };
57 58
58 #endif // CHROME_BROWSER_NET_SQLITE_PERSISTENT_COOKIE_STORE_H_ 59 #endif // CHROME_BROWSER_NET_SQLITE_PERSISTENT_COOKIE_STORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698