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

Side by Side Diff: webkit/glue/glue_serialize.h

Issue 10153008: Manage versioned fields correctly in GlueSerializeTest. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 8 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
« no previous file with comments | « no previous file | webkit/glue/glue_serialize.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | webkit/glue/glue_serialize.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698