Index: webkit/glue/glue_serialize.cc |
=================================================================== |
--- webkit/glue/glue_serialize.cc (revision 37384) |
+++ webkit/glue/glue_serialize.cc (working copy) |
@@ -1,4 +1,4 @@ |
-// Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. |
+// Copyright (c) 2010 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. |
@@ -49,8 +49,9 @@ |
// This version checks and reads v1 and v2 correctly. |
// 4: Adds support for storing FormData::identifier(). |
// 5: Adds support for empty FormData |
+// 6: Adds support for documentSequenceNumbers |
// Should be const, but unit tests may modify it. |
-int kVersion = 5; |
+int kVersion = 6; |
// A bunch of convenience functions to read/write to SerializeObjects. |
// The serializers assume the input data is in the correct format and so does |
@@ -273,6 +274,8 @@ |
WriteStringVector(item.documentState(), obj); |
+ WriteInteger64(item.documentSequenceNumber(), obj); |
+ |
// Yes, the referrer is written twice. This is for backwards |
// compatibility with the format. |
WriteFormData(item.httpBody(), obj); |
@@ -315,6 +318,9 @@ |
item.setDocumentState(ReadStringVector(obj)); |
+ if (obj->version >= 6) |
+ item.setDocumentSequenceNumber(ReadInteger64(obj)); |
+ |
// The extra referrer string is read for backwards compat. |
const WebHTTPBody& http_body = ReadFormData(obj); |
const WebString& http_content_type = ReadString(obj); |