OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 CONTENT_BROWSER_NOTIFICATIONS_NOTIFICATION_DATABASE_H_ | 5 #ifndef CONTENT_BROWSER_NOTIFICATIONS_NOTIFICATION_DATABASE_H_ |
6 #define CONTENT_BROWSER_NOTIFICATIONS_NOTIFICATION_DATABASE_H_ | 6 #define CONTENT_BROWSER_NOTIFICATIONS_NOTIFICATION_DATABASE_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <set> | 11 #include <set> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "base/sequence_checker.h" | 16 #include "base/sequence_checker.h" |
17 #include "content/common/content_export.h" | 17 #include "content/common/content_export.h" |
18 | 18 |
19 class GURL; | 19 class GURL; |
20 | 20 |
21 namespace leveldb { | 21 namespace leveldb { |
22 class DB; | 22 class DB; |
23 class Env; | 23 class Env; |
24 class FilterPolicy; | 24 class FilterPolicy; |
25 class WriteBatch; | |
26 } | 25 } |
27 | 26 |
28 namespace content { | 27 namespace content { |
29 | 28 |
30 struct NotificationDatabaseData; | 29 struct NotificationDatabaseData; |
31 | 30 |
32 // Implementation of the persistent notification database. | 31 // Implementation of the persistent notification database. |
33 // | 32 // |
34 // The database is built on top of a LevelDB database, either in memory or on | 33 // The database is built on top of a LevelDB database, either in memory or on |
35 // the filesystem depending on the path passed to the constructor. When writing | 34 // the filesystem depending on the path passed to the constructor. When writing |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 State state_ = STATE_UNINITIALIZED; | 206 State state_ = STATE_UNINITIALIZED; |
208 | 207 |
209 base::SequenceChecker sequence_checker_; | 208 base::SequenceChecker sequence_checker_; |
210 | 209 |
211 DISALLOW_COPY_AND_ASSIGN(NotificationDatabase); | 210 DISALLOW_COPY_AND_ASSIGN(NotificationDatabase); |
212 }; | 211 }; |
213 | 212 |
214 } // namespace content | 213 } // namespace content |
215 | 214 |
216 #endif // CONTENT_BROWSER_NOTIFICATIONS_NOTIFICATION_DATABASE_H_ | 215 #endif // CONTENT_BROWSER_NOTIFICATIONS_NOTIFICATION_DATABASE_H_ |
OLD | NEW |