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

Side by Side Diff: chrome/browser/net/sqlite_server_bound_cert_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: Implementation fixes 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 #ifndef CHROME_BROWSER_NET_SQLITE_SERVER_BOUND_CERT_STORE_H_ 5 #ifndef CHROME_BROWSER_NET_SQLITE_SERVER_BOUND_CERT_STORE_H_
6 #define CHROME_BROWSER_NET_SQLITE_SERVER_BOUND_CERT_STORE_H_ 6 #define CHROME_BROWSER_NET_SQLITE_SERVER_BOUND_CERT_STORE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/callback_forward.h" 9 #include "base/callback_forward.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "net/base/default_server_bound_cert_store.h" 12 #include "net/base/default_server_bound_cert_store.h"
13 13
14 class FilePath; 14 class FilePath;
15 15
16 // Implements the net::DefaultServerBoundCertStore::PersistentStore interface 16 // Implements the net::DefaultServerBoundCertStore::PersistentStore interface
17 // in terms of a SQLite database. For documentation about the actual member 17 // in terms of a SQLite database. For documentation about the actual member
18 // functions consult the documentation of the parent class 18 // functions consult the documentation of the parent class
19 // |net::DefaultServerBoundCertStore::PersistentCertStore|. 19 // |net::DefaultServerBoundCertStore::PersistentCertStore|.
20 class SQLiteServerBoundCertStore 20 class SQLiteServerBoundCertStore
21 : public net::DefaultServerBoundCertStore::PersistentStore { 21 : public net::DefaultServerBoundCertStore::PersistentStore {
22 public: 22 public:
23 explicit SQLiteServerBoundCertStore(const FilePath& path); 23 explicit SQLiteServerBoundCertStore(const FilePath& path);
24 virtual ~SQLiteServerBoundCertStore();
25 24
26 // net::DefaultServerBoundCertStore::PersistentStore implementation. 25 // net::DefaultServerBoundCertStore::PersistentStore:
27 virtual bool Load( 26 virtual bool Load(
28 std::vector<net::DefaultServerBoundCertStore::ServerBoundCert*>* certs) 27 std::vector<net::DefaultServerBoundCertStore::ServerBoundCert*>* certs)
29 OVERRIDE; 28 OVERRIDE;
30 virtual void AddServerBoundCert( 29 virtual void AddServerBoundCert(
31 const net::DefaultServerBoundCertStore::ServerBoundCert& cert) OVERRIDE; 30 const net::DefaultServerBoundCertStore::ServerBoundCert& cert) OVERRIDE;
32 virtual void DeleteServerBoundCert( 31 virtual void DeleteServerBoundCert(
33 const net::DefaultServerBoundCertStore::ServerBoundCert& cert) OVERRIDE; 32 const net::DefaultServerBoundCertStore::ServerBoundCert& cert) OVERRIDE;
34 virtual void SetClearLocalStateOnExit(bool clear_local_state) OVERRIDE; 33 virtual void SetClearLocalStateOnExit(bool clear_local_state) OVERRIDE;
35 virtual void Flush(const base::Closure& completion_task) OVERRIDE; 34 virtual void Flush(const base::Closure& completion_task) OVERRIDE;
36 35
36 protected:
37 virtual ~SQLiteServerBoundCertStore();
38
37 private: 39 private:
38 class Backend; 40 class Backend;
39 41
40 scoped_refptr<Backend> backend_; 42 scoped_refptr<Backend> backend_;
41 43
42 DISALLOW_COPY_AND_ASSIGN(SQLiteServerBoundCertStore); 44 DISALLOW_COPY_AND_ASSIGN(SQLiteServerBoundCertStore);
43 }; 45 };
44 46
45 #endif // CHROME_BROWSER_NET_SQLITE_SERVER_BOUND_CERT_STORE_H_ 47 #endif // CHROME_BROWSER_NET_SQLITE_SERVER_BOUND_CERT_STORE_H_
OLDNEW
« no previous file with comments | « chrome/browser/net/sqlite_persistent_cookie_store_unittest.cc ('k') | chrome/browser/net/sqlite_server_bound_cert_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698