OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 NET_EXTRAS_SQLITE_SQLITE_CHANNEL_ID_STORE_H_ | 5 #ifndef NET_EXTRAS_SQLITE_SQLITE_CHANNEL_ID_STORE_H_ |
6 #define NET_EXTRAS_SQLITE_SQLITE_CHANNEL_ID_STORE_H_ | 6 #define NET_EXTRAS_SQLITE_SQLITE_CHANNEL_ID_STORE_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/callback_forward.h" | 11 #include "base/callback_forward.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
15 #include "net/ssl/default_channel_id_store.h" | 15 #include "net/ssl/default_channel_id_store.h" |
16 | 16 |
17 namespace base { | 17 namespace base { |
18 class FilePath; | 18 class FilePath; |
19 class SequencedTaskRunner; | 19 class SequencedTaskRunner; |
20 } | 20 } |
21 | 21 |
22 class GURL; | |
23 | |
24 namespace net { | 22 namespace net { |
25 | 23 |
26 // Implements the DefaultChannelIDStore::PersistentStore interface | 24 // Implements the DefaultChannelIDStore::PersistentStore interface |
27 // in terms of a SQLite database. For documentation about the actual member | 25 // in terms of a SQLite database. For documentation about the actual member |
28 // functions consult the documentation of the parent class | 26 // functions consult the documentation of the parent class |
29 // DefaultChannelIDStore::PersistentCertStore. | 27 // DefaultChannelIDStore::PersistentCertStore. |
30 class SQLiteChannelIDStore : public DefaultChannelIDStore::PersistentStore { | 28 class SQLiteChannelIDStore : public DefaultChannelIDStore::PersistentStore { |
31 public: | 29 public: |
32 // Create or open persistent store in file |path|. All I/O tasks are performed | 30 // Create or open persistent store in file |path|. All I/O tasks are performed |
33 // in background using |background_task_runner|. | 31 // in background using |background_task_runner|. |
(...skipping 18 matching lines...) Expand all Loading... |
52 class Backend; | 50 class Backend; |
53 | 51 |
54 scoped_refptr<Backend> backend_; | 52 scoped_refptr<Backend> backend_; |
55 | 53 |
56 DISALLOW_COPY_AND_ASSIGN(SQLiteChannelIDStore); | 54 DISALLOW_COPY_AND_ASSIGN(SQLiteChannelIDStore); |
57 }; | 55 }; |
58 | 56 |
59 } // namespace net | 57 } // namespace net |
60 | 58 |
61 #endif // NET_EXTRAS_SQLITE_SQLITE_CHANNEL_ID_STORE_H_ | 59 #endif // NET_EXTRAS_SQLITE_SQLITE_CHANNEL_ID_STORE_H_ |
OLD | NEW |