| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 const std::string& content_state); | 48 const std::string& content_state); |
| 49 | 49 |
| 50 // Creates serialized state for the specified URL. This is a variant of | 50 // Creates serialized state for the specified URL. This is a variant of |
| 51 // HistoryItemToString (in glue_serialize) that is used during session restore | 51 // HistoryItemToString (in glue_serialize) that is used during session restore |
| 52 // if the saved state is empty. | 52 // if the saved state is empty. |
| 53 WEBKIT_GLUE_EXPORT std::string CreateHistoryStateForURL(const GURL& url); | 53 WEBKIT_GLUE_EXPORT std::string CreateHistoryStateForURL(const GURL& url); |
| 54 | 54 |
| 55 } // namespace webkit_glue | 55 } // namespace webkit_glue |
| 56 | 56 |
| 57 #endif // #ifndef WEBKIT_GLUE_GLUE_SERIALIZE_H_ | 57 #endif // #ifndef WEBKIT_GLUE_GLUE_SERIALIZE_H_ |
| OLD | NEW |