Popular sites on the NTP: Try to keep the ordering constant
[chromium-blink-merge.git] / content / public / browser / notification_database_data.h
blobe10f3146925cf6b0228b48c90197b28a9a49f117
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
3 // found in the LICENSE file.
5 #ifndef CONTENT_PUBLIC_BROWSER_NOTIFICATION_DATABASE_DATA_H_
6 #define CONTENT_PUBLIC_BROWSER_NOTIFICATION_DATABASE_DATA_H_
8 #include <stdint.h>
10 #include "content/public/common/platform_notification_data.h"
11 #include "url/gurl.h"
13 namespace content {
15 // Stores information about a Web Notification as available in the notification
16 // database. Beyond the notification's own data, its id and attribution need
17 // to be available for users of the database as well.
18 struct NotificationDatabaseData {
19 // Id of the notification as allocated by the NotificationDatabase.
20 int64_t notification_id = 0;
22 // Origin of the website this notification is associated with.
23 GURL origin;
25 // Id of the Service Worker registration this notification is associated with.
26 int64_t service_worker_registration_id = 0;
28 // Platform data of the notification that's being stored.
29 PlatformNotificationData notification_data;
32 } // namespace content
34 #endif // CONTENT_PUBLIC_BROWSER_NOTIFICATION_DATABASE_DATA_H_