Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 | |
|
johnme
2015/03/17 12:28:26
Unused
Peter Beverloo
2015/03/17 13:55:31
Done.
| |
| 8 #include <stdint.h> | |
| 9 #include <string> | |
| 10 | |
| 11 #include "content/common/content_export.h" | |
| 12 | |
| 13 namespace content { | |
| 14 | |
| 15 struct NotificationDatabaseData; | |
| 16 | |
| 17 // Parses the serialized notification data |input| into a new object, |output|. | |
| 18 // 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.
| |
| 19 CONTENT_EXPORT bool DeserializeNotificationDatabaseData( | |
| 20 const std::string& input, | |
| 21 NotificationDatabaseData* output); | |
| 22 | |
| 23 // Serializes the contents of |input| into the string |output|. Returns if the | |
| 24 // notification data could be serialized successfully. | |
| 25 CONTENT_EXPORT bool SerializeNotificationDatabaseData( | |
| 26 const NotificationDatabaseData& input, | |
| 27 std::string* output); | |
| 28 | |
| 29 } // namespace content | |
| 30 | |
| 31 #endif // CONTENT_BROWSER_NOTIFICATIONS_NOTIFICATION_DATABASE_DATA_CONVERSIONS_ H_ | |
| OLD | NEW |