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

Side by Side Diff: content/browser/notifications/notification_database_data_conversions.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 unified diff | Download patch
OLDNEW
(Empty)
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.
4
5 #ifndef CONTENT_BROWSER_NOTIFICATIONS_NOTIFICATION_DATABASE_DATA_CONVERSIONS_H_
6 #define CONTENT_BROWSER_NOTIFICATIONS_NOTIFICATION_DATABASE_DATA_CONVERSIONS_H_
7
8 #include <string>
9
10 #include "content/common/content_export.h"
11
12 namespace content {
13
14 struct NotificationDatabaseData;
15
16 // Parses the serialized notification data |input| into a new object, |output|.
17 // Returns whether the serialized |input| could be deserialized successfully.
18 CONTENT_EXPORT bool DeserializeNotificationDatabaseData(
19 const std::string& input,
20 NotificationDatabaseData* output);
21
22 // Serializes the contents of |input| into the string |output|. Returns whether
23 // the notification data could be serialized successfully.
24 CONTENT_EXPORT bool SerializeNotificationDatabaseData(
25 const NotificationDatabaseData& input,
26 std::string* output);
27
28 } // namespace content
29
30 #endif // CONTENT_BROWSER_NOTIFICATIONS_NOTIFICATION_DATABASE_DATA_CONVERSIONS_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698