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

Unified Diff: content/public/browser/notification_database_data.h

Issue 2300093002: Make //content responsible for generating notification Ids (Closed)
Patch Set: comments Created 4 years, 3 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 | « content/public/browser/BUILD.gn ('k') | content/public/browser/notification_database_data.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/notification_database_data.h
diff --git a/content/public/browser/notification_database_data.h b/content/public/browser/notification_database_data.h
index e10f3146925cf6b0228b48c90197b28a9a49f117..f91abcec5309b771a15a0b3cac2d9957b749a390 100644
--- a/content/public/browser/notification_database_data.h
+++ b/content/public/browser/notification_database_data.h
@@ -6,7 +6,9 @@
#define CONTENT_PUBLIC_BROWSER_NOTIFICATION_DATABASE_DATA_H_
#include <stdint.h>
+#include <string>
+#include "content/common/content_export.h"
#include "content/public/common/platform_notification_data.h"
#include "url/gurl.h"
@@ -15,9 +17,15 @@ namespace content {
// Stores information about a Web Notification as available in the notification
// database. Beyond the notification's own data, its id and attribution need
// to be available for users of the database as well.
-struct NotificationDatabaseData {
- // Id of the notification as allocated by the NotificationDatabase.
- int64_t notification_id = 0;
+struct CONTENT_EXPORT NotificationDatabaseData {
+ NotificationDatabaseData();
+ NotificationDatabaseData(const NotificationDatabaseData& other);
+ ~NotificationDatabaseData();
+
+ NotificationDatabaseData& operator=(const NotificationDatabaseData& other);
+
+ // Id of the notification as assigned by the NotificationIdGenerator.
+ std::string notification_id;
// Origin of the website this notification is associated with.
GURL origin;
« no previous file with comments | « content/public/browser/BUILD.gn ('k') | content/public/browser/notification_database_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698