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

Unified Diff: content/browser/notifications/notification_database.h

Issue 1006493005: Introduce the PlatformNotificationContext class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@n-db-ReadWriteDelete
Patch Set: y Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/browser/notifications/notification_database.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/notifications/notification_database.h
diff --git a/content/browser/notifications/notification_database.h b/content/browser/notifications/notification_database.h
index fb7a78ead50c5d2cbd5217a95767ac00ad016e36..1d9a0d7623f2d1268c51879d69590172e57ca316 100644
--- a/content/browser/notifications/notification_database.h
+++ b/content/browser/notifications/notification_database.h
@@ -7,7 +7,6 @@
#include <stdint.h>
-#include "base/callback.h"
#include "base/files/file_path.h"
#include "base/sequence_checker.h"
#include "content/common/content_export.h"
@@ -26,9 +25,13 @@ struct NotificationDatabaseData;
// Implementation of the persistent notification database.
//
-// This class can be constructed on any thread, but method calls must only be
-// made on a thread or sequenced task runner that allows file I/O. The same
-// thread or task runner must be used for all method calls.
+// The database is built on top of a LevelDB database, either in memory or on
+// the filesystem depending on the path passed to the constructor. When writing
+// a new notification, it will be assigned an id guaranteed to be unique for the
+// lifetime of the database.
+//
+// This class must only be used on a thread or sequenced task runner that allows
+// file I/O. The same thread or task runner must be used for all method calls.
class CONTENT_EXPORT NotificationDatabase {
public:
// Result status codes for interations with the database. Will be used for
« no previous file with comments | « no previous file | content/browser/notifications/notification_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698