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

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

Issue 1010833002: Expose bits of the Web Notification database in the //content API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@n-db-DeleteInContext
Patch Set: add NON_EXPORTED_BASE 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 | « content/content_browser.gypi ('k') | content/public/browser/platform_notification_context.h » ('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/browser/notifications/notification_database_data.h b/content/public/browser/notification_database_data.h
similarity index 54%
rename from content/browser/notifications/notification_database_data.h
rename to content/public/browser/notification_database_data.h
index ea4bf3874fe7624e73de8d3cdd024bd17266ca5e..e10f3146925cf6b0228b48c90197b28a9a49f117 100644
--- a/content/browser/notifications/notification_database_data.h
+++ b/content/public/browser/notification_database_data.h
@@ -2,12 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_BROWSER_NOTIFICATIONS_NOTIFICATION_DATABASE_DATA_H_
-#define CONTENT_BROWSER_NOTIFICATIONS_NOTIFICATION_DATABASE_DATA_H_
+#ifndef CONTENT_PUBLIC_BROWSER_NOTIFICATION_DATABASE_DATA_H_
+#define CONTENT_PUBLIC_BROWSER_NOTIFICATION_DATABASE_DATA_H_
#include <stdint.h>
-#include "content/common/content_export.h"
#include "content/public/common/platform_notification_data.h"
#include "url/gurl.h"
@@ -16,25 +15,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 CONTENT_EXPORT NotificationDatabaseData {
- NotificationDatabaseData();
- ~NotificationDatabaseData();
-
- // Parses the serialized notification database data |input| into this object.
- bool ParseFromString(const std::string& input);
-
- // Serializes the contents of this object to |output|. Returns if the data
- // could be serialized successfully.
- bool SerializeToString(std::string* output) const;
-
+struct NotificationDatabaseData {
// Id of the notification as allocated by the NotificationDatabase.
- int64_t notification_id;
+ int64_t notification_id = 0;
// Origin of the website this notification is associated with.
GURL origin;
// Id of the Service Worker registration this notification is associated with.
- int64_t service_worker_registration_id;
+ int64_t service_worker_registration_id = 0;
// Platform data of the notification that's being stored.
PlatformNotificationData notification_data;
@@ -42,4 +31,4 @@ struct CONTENT_EXPORT NotificationDatabaseData {
} // namespace content
-#endif // CONTENT_BROWSER_NOTIFICATIONS_NOTIFICATION_DATABASE_DATA_H_
+#endif // CONTENT_PUBLIC_BROWSER_NOTIFICATION_DATABASE_DATA_H_
« no previous file with comments | « content/content_browser.gypi ('k') | content/public/browser/platform_notification_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698