Index: content/browser/notifications/notification_database_data_conversions.h |
diff --git a/content/browser/notifications/notification_database_data_conversions.h b/content/browser/notifications/notification_database_data_conversions.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0a4144a740f9d509dc3b0d7a7e7883156b14ee45 |
--- /dev/null |
+++ b/content/browser/notifications/notification_database_data_conversions.h |
@@ -0,0 +1,31 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// 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_CONVERSIONS_H_ |
+#define CONTENT_BROWSER_NOTIFICATIONS_NOTIFICATION_DATABASE_DATA_CONVERSIONS_H_ |
+ |
johnme
2015/03/17 12:28:26
Unused
Peter Beverloo
2015/03/17 13:55:31
Done.
|
+#include <stdint.h> |
+#include <string> |
+ |
+#include "content/common/content_export.h" |
+ |
+namespace content { |
+ |
+struct NotificationDatabaseData; |
+ |
+// Parses the serialized notification data |input| into a new object, |output|. |
+// Returns if the serialized |input| could be deserialized successfully. |
johnme
2015/03/17 12:28:26
Nit: s/if/whether/ to avoid ambiguity
Peter Beverloo
2015/03/17 13:55:31
Done.
|
+CONTENT_EXPORT bool DeserializeNotificationDatabaseData( |
+ const std::string& input, |
+ NotificationDatabaseData* output); |
+ |
+// Serializes the contents of |input| into the string |output|. Returns if the |
+// notification data could be serialized successfully. |
+CONTENT_EXPORT bool SerializeNotificationDatabaseData( |
+ const NotificationDatabaseData& input, |
+ std::string* output); |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_BROWSER_NOTIFICATIONS_NOTIFICATION_DATABASE_DATA_CONVERSIONS_H_ |