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

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

Issue 12163003: Add FilePath to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
11 #include "net/base/default_server_bound_cert_store.h" 11 #include "net/base/default_server_bound_cert_store.h"
12 12
13 class ClearOnExitPolicy; 13 class ClearOnExitPolicy;
14
15 namespace base {
14 class FilePath; 16 class FilePath;
17 }
15 18
16 // Implements the net::DefaultServerBoundCertStore::PersistentStore interface 19 // Implements the net::DefaultServerBoundCertStore::PersistentStore interface
17 // in terms of a SQLite database. For documentation about the actual member 20 // in terms of a SQLite database. For documentation about the actual member
18 // functions consult the documentation of the parent class 21 // functions consult the documentation of the parent class
19 // |net::DefaultServerBoundCertStore::PersistentCertStore|. 22 // |net::DefaultServerBoundCertStore::PersistentCertStore|.
20 // If provided, a |ClearOnExitPolicy| is consulted when the SQLite database is 23 // If provided, a |ClearOnExitPolicy| is consulted when the SQLite database is
21 // closed to decide which certificates to keep. 24 // closed to decide which certificates to keep.
22 class SQLiteServerBoundCertStore 25 class SQLiteServerBoundCertStore
23 : public net::DefaultServerBoundCertStore::PersistentStore { 26 : public net::DefaultServerBoundCertStore::PersistentStore {
24 public: 27 public:
25 // If non-NULL, SQLiteServerBoundCertStore will keep a scoped_refptr to the 28 // If non-NULL, SQLiteServerBoundCertStore will keep a scoped_refptr to the
26 // |clear_on_exit_policy| throughout its lifetime. 29 // |clear_on_exit_policy| throughout its lifetime.
27 SQLiteServerBoundCertStore(const FilePath& path, 30 SQLiteServerBoundCertStore(const base::FilePath& path,
28 ClearOnExitPolicy* clear_on_exit_policy); 31 ClearOnExitPolicy* clear_on_exit_policy);
29 32
30 // net::DefaultServerBoundCertStore::PersistentStore: 33 // net::DefaultServerBoundCertStore::PersistentStore:
31 virtual void Load(const LoadedCallback& loaded_callback) OVERRIDE; 34 virtual void Load(const LoadedCallback& loaded_callback) OVERRIDE;
32 virtual void AddServerBoundCert( 35 virtual void AddServerBoundCert(
33 const net::DefaultServerBoundCertStore::ServerBoundCert& cert) OVERRIDE; 36 const net::DefaultServerBoundCertStore::ServerBoundCert& cert) OVERRIDE;
34 virtual void DeleteServerBoundCert( 37 virtual void DeleteServerBoundCert(
35 const net::DefaultServerBoundCertStore::ServerBoundCert& cert) OVERRIDE; 38 const net::DefaultServerBoundCertStore::ServerBoundCert& cert) OVERRIDE;
36 virtual void SetForceKeepSessionState() OVERRIDE; 39 virtual void SetForceKeepSessionState() OVERRIDE;
37 virtual void Flush(const base::Closure& completion_task) OVERRIDE; 40 virtual void Flush(const base::Closure& completion_task) OVERRIDE;
38 41
39 protected: 42 protected:
40 virtual ~SQLiteServerBoundCertStore(); 43 virtual ~SQLiteServerBoundCertStore();
41 44
42 private: 45 private:
43 class Backend; 46 class Backend;
44 47
45 scoped_refptr<Backend> backend_; 48 scoped_refptr<Backend> backend_;
46 49
47 DISALLOW_COPY_AND_ASSIGN(SQLiteServerBoundCertStore); 50 DISALLOW_COPY_AND_ASSIGN(SQLiteServerBoundCertStore);
48 }; 51 };
49 52
50 #endif // CHROME_BROWSER_NET_SQLITE_SERVER_BOUND_CERT_STORE_H_ 53 #endif // CHROME_BROWSER_NET_SQLITE_SERVER_BOUND_CERT_STORE_H_
OLDNEW
« no previous file with comments | « chrome/browser/net/sqlite_persistent_cookie_store.h ('k') | chrome/browser/net/url_fixer_upper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698