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

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

Issue 8573031: base::Bind fixes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed net_unittest Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_ORIGIN_BOUND_CERT_STORE_H_ 5 #ifndef CHROME_BROWSER_NET_SQLITE_ORIGIN_BOUND_CERT_STORE_H_
6 #define CHROME_BROWSER_NET_SQLITE_ORIGIN_BOUND_CERT_STORE_H_ 6 #define CHROME_BROWSER_NET_SQLITE_ORIGIN_BOUND_CERT_STORE_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/bind.h"
9 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
11 #include "net/base/default_origin_bound_cert_store.h" 12 #include "net/base/default_origin_bound_cert_store.h"
12 13
13 class FilePath; 14 class FilePath;
14 15
15 // Implements the net::DefaultOriginBoundCertStore::PersistentStore interface 16 // Implements the net::DefaultOriginBoundCertStore::PersistentStore interface
16 // 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
17 // functions consult the documentation of the parent class 18 // functions consult the documentation of the parent class
18 // |net::DefaultOriginBoundCertStore::PersistentCertStore|. 19 // |net::DefaultOriginBoundCertStore::PersistentCertStore|.
19 class SQLiteOriginBoundCertStore 20 class SQLiteOriginBoundCertStore
20 : public net::DefaultOriginBoundCertStore::PersistentStore { 21 : public net::DefaultOriginBoundCertStore::PersistentStore {
21 public: 22 public:
22 explicit SQLiteOriginBoundCertStore(const FilePath& path); 23 explicit SQLiteOriginBoundCertStore(const FilePath& path);
23 virtual ~SQLiteOriginBoundCertStore(); 24 virtual ~SQLiteOriginBoundCertStore();
24 25
25 // net::DefaultOriginBoundCertStore::PersistentStore implementation. 26 // net::DefaultOriginBoundCertStore::PersistentStore implementation.
26 virtual bool Load( 27 virtual bool Load(
27 std::vector<net::DefaultOriginBoundCertStore::OriginBoundCert*>* certs) 28 std::vector<net::DefaultOriginBoundCertStore::OriginBoundCert*>* certs)
28 OVERRIDE; 29 OVERRIDE;
29 virtual void AddOriginBoundCert( 30 virtual void AddOriginBoundCert(
30 const net::DefaultOriginBoundCertStore::OriginBoundCert& cert) OVERRIDE; 31 const net::DefaultOriginBoundCertStore::OriginBoundCert& cert) OVERRIDE;
31 virtual void DeleteOriginBoundCert( 32 virtual void DeleteOriginBoundCert(
32 const net::DefaultOriginBoundCertStore::OriginBoundCert& cert) OVERRIDE; 33 const net::DefaultOriginBoundCertStore::OriginBoundCert& cert) OVERRIDE;
33 virtual void SetClearLocalStateOnExit(bool clear_local_state) OVERRIDE; 34 virtual void SetClearLocalStateOnExit(bool clear_local_state) OVERRIDE;
34 virtual void Flush(Task* completion_task) OVERRIDE; 35 virtual void Flush(const base::Closure& completion_task) OVERRIDE;
35 36
36 private: 37 private:
37 class Backend; 38 class Backend;
38 39
39 scoped_refptr<Backend> backend_; 40 scoped_refptr<Backend> backend_;
40 41
41 DISALLOW_COPY_AND_ASSIGN(SQLiteOriginBoundCertStore); 42 DISALLOW_COPY_AND_ASSIGN(SQLiteOriginBoundCertStore);
42 }; 43 };
43 44
44 #endif // CHROME_BROWSER_NET_SQLITE_ORIGIN_BOUND_CERT_STORE_H_ 45 #endif // CHROME_BROWSER_NET_SQLITE_ORIGIN_BOUND_CERT_STORE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/net/sqlite_origin_bound_cert_store.cc » ('j') | net/base/default_origin_bound_cert_store.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698