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

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

Issue 387020: Upstreaming WebKit.gyp (Closed)
Patch Set: Created 11 years, 1 month 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 | « webkit/glue/ftp_directory_listing_response_delegate.cc ('k') | 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_
11 #define WEBKIT_GLUE_GLUE_SERIALIZE_H_ 11 #define WEBKIT_GLUE_GLUE_SERIALIZE_H_
12 12
13 #include <string> 13 #include <string>
14 #include "webkit/api/public/WebHistoryItem.h" 14 #include "third_party/WebKit/WebKit/chromium/public/WebHistoryItem.h"
15 15
16 namespace webkit_glue { 16 namespace webkit_glue {
17 17
18 // HistoryItem serialization. 18 // HistoryItem serialization.
19 std::string HistoryItemToString( 19 std::string HistoryItemToString(
20 const WebKit::WebHistoryItem& item); 20 const WebKit::WebHistoryItem& item);
21 WebKit::WebHistoryItem HistoryItemFromString( 21 WebKit::WebHistoryItem HistoryItemFromString(
22 const std::string& serialized_item); 22 const std::string& serialized_item);
23 23
24 // For testing purposes only. 24 // For testing purposes only.
25 void HistoryItemToVersionedString( 25 void HistoryItemToVersionedString(
26 const WebKit::WebHistoryItem& item, int version, 26 const WebKit::WebHistoryItem& item, int version,
27 std::string* serialized_item); 27 std::string* serialized_item);
28 28
29 } // namespace webkit_glue 29 } // namespace webkit_glue
30 30
31 #endif // #ifndef WEBKIT_GLUE_GLUE_SERIALIZE_H_ 31 #endif // #ifndef WEBKIT_GLUE_GLUE_SERIALIZE_H_
OLDNEW
« no previous file with comments | « webkit/glue/ftp_directory_listing_response_delegate.cc ('k') | webkit/glue/glue_serialize.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698