| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 // | 4 // |
| 5 // This file contains (de)serialization (or if you like python, pickling) | 5 // This file contains (de)serialization (or if you like python, pickling) |
| 6 // methods for various objects that we want to persist. | 6 // methods for various objects that we want to persist. |
| 7 // In serialization, we write an object's state to a string in some opaque | 7 // In serialization, we write an object's state to a string in some opaque |
| 8 // format. Deserialization reconstructs the object's state from such a string. | 8 // format. Deserialization reconstructs the object's state from such a string. |
| 9 | 9 |
| 10 #ifndef WEBKIT_GLUE_GLUE_SERIALIZE_H_ | 10 #ifndef WEBKIT_GLUE_GLUE_SERIALIZE_H_ |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 // Reads file paths from the HTTP body of a serialized WebHistoryItem. | 27 // Reads file paths from the HTTP body of a serialized WebHistoryItem. |
| 28 WEBKIT_GLUE_EXPORT std::vector<FilePath> FilePathsFromHistoryState( | 28 WEBKIT_GLUE_EXPORT std::vector<FilePath> FilePathsFromHistoryState( |
| 29 const std::string& content_state); | 29 const std::string& content_state); |
| 30 | 30 |
| 31 // For testing purposes only. | 31 // For testing purposes only. |
| 32 WEBKIT_GLUE_EXPORT void HistoryItemToVersionedString( | 32 WEBKIT_GLUE_EXPORT void HistoryItemToVersionedString( |
| 33 const WebKit::WebHistoryItem& item, | 33 const WebKit::WebHistoryItem& item, |
| 34 int version, | 34 int version, |
| 35 std::string* serialized_item); | 35 std::string* serialized_item); |
| 36 WEBKIT_GLUE_EXPORT int HistoryItemCurrentVersion(); |
| 36 | 37 |
| 37 } // namespace webkit_glue | 38 } // namespace webkit_glue |
| 38 | 39 |
| 39 #endif // #ifndef WEBKIT_GLUE_GLUE_SERIALIZE_H_ | 40 #endif // #ifndef WEBKIT_GLUE_GLUE_SERIALIZE_H_ |
| OLD | NEW |