summaryrefslogtreecommitdiffstats
path: root/webkit/glue/glue_serialize.h
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2010-07-29 17:14:53 +0100
committerBen Murdoch <benm@google.com>2010-08-04 14:29:45 +0100
commitc407dc5cd9bdc5668497f21b26b09d988ab439de (patch)
tree7eaf8707c0309516bdb042ad976feedaf72b0bb1 /webkit/glue/glue_serialize.h
parent0998b1cdac5733f299c12d88bc31ef9c8035b8fa (diff)
downloadexternal_chromium-c407dc5cd9bdc5668497f21b26b09d988ab439de.zip
external_chromium-c407dc5cd9bdc5668497f21b26b09d988ab439de.tar.gz
external_chromium-c407dc5cd9bdc5668497f21b26b09d988ab439de.tar.bz2
Merge Chromium src@r53293
Change-Id: Ia79acf8670f385cee48c45b0a75371d8e950af34
Diffstat (limited to 'webkit/glue/glue_serialize.h')
-rw-r--r--webkit/glue/glue_serialize.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/webkit/glue/glue_serialize.h b/webkit/glue/glue_serialize.h
new file mode 100644
index 0000000..303fe3a
--- /dev/null
+++ b/webkit/glue/glue_serialize.h
@@ -0,0 +1,31 @@
+// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+//
+// This file contains (de)serialization (or if you like python, pickling)
+// methods for various objects that we want to persist.
+// In serialization, we write an object's state to a string in some opaque
+// format. Deserialization reconstructs the object's state from such a string.
+
+#ifndef WEBKIT_GLUE_GLUE_SERIALIZE_H_
+#define WEBKIT_GLUE_GLUE_SERIALIZE_H_
+
+#include <string>
+#include "third_party/WebKit/WebKit/chromium/public/WebHistoryItem.h"
+
+namespace webkit_glue {
+
+// HistoryItem serialization.
+std::string HistoryItemToString(
+ const WebKit::WebHistoryItem& item);
+WebKit::WebHistoryItem HistoryItemFromString(
+ const std::string& serialized_item);
+
+// For testing purposes only.
+void HistoryItemToVersionedString(
+ const WebKit::WebHistoryItem& item, int version,
+ std::string* serialized_item);
+
+} // namespace webkit_glue
+
+#endif // #ifndef WEBKIT_GLUE_GLUE_SERIALIZE_H_