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

Unified Diff: chrome/browser/notifications/persistent_notification_delegate.h

Issue 1026853002: Integrate the notification database with the normal code path. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@n-db-ConfirmShow
Patch Set: Created 5 years, 8 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
Index: chrome/browser/notifications/persistent_notification_delegate.h
diff --git a/chrome/browser/notifications/persistent_notification_delegate.h b/chrome/browser/notifications/persistent_notification_delegate.h
index 28e9420051033cee3040385fbb8d80bdf29b4b0d..003d46be9d58a7f36b067608b83cce3f2927cd82 100644
--- a/chrome/browser/notifications/persistent_notification_delegate.h
+++ b/chrome/browser/notifications/persistent_notification_delegate.h
@@ -5,10 +5,10 @@
#ifndef CHROME_BROWSER_NOTIFICATIONS_PERSISTENT_NOTIFICATION_DELEGATE_H_
#define CHROME_BROWSER_NOTIFICATIONS_PERSISTENT_NOTIFICATION_DELEGATE_H_
+#include <stdint.h>
#include <string>
#include "chrome/browser/notifications/notification_delegate.h"
-#include "content/public/common/platform_notification_data.h"
#include "url/gurl.h"
namespace content {
@@ -22,16 +22,13 @@ class PersistentNotificationDelegate : public NotificationDelegate {
public:
PersistentNotificationDelegate(
content::BrowserContext* browser_context,
- int64 service_worker_registration_id,
- const GURL& origin,
- const content::PlatformNotificationData& notification_data);
+ int64_t persistent_notification_id,
+ const GURL& origin);
- int64 service_worker_registration_id() const {
- return service_worker_registration_id_;
- }
-
- const content::PlatformNotificationData& notification_data() const {
- return notification_data_;
+ // Persistent id of this notification in the notification database. To be
+ // used when retrieving all information associated with it.
+ int64_t persistent_notification_id() const {
+ return persistent_notification_id_;
}
// NotificationDelegate implementation.
@@ -45,9 +42,8 @@ class PersistentNotificationDelegate : public NotificationDelegate {
private:
content::BrowserContext* browser_context_;
- int64 service_worker_registration_id_;
+ int64_t persistent_notification_id_;
GURL origin_;
- content::PlatformNotificationData notification_data_;
std::string id_;
};

Powered by Google App Engine
This is Rietveld 408576698