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 #include "webkit/glue/glue_serialize.h" | 5 #include "webkit/glue/glue_serialize.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/pickle.h" | 9 #include "base/pickle.h" |
10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
572 int real_version = kVersion; | 572 int real_version = kVersion; |
573 kVersion = version; | 573 kVersion = version; |
574 | 574 |
575 SerializeObject obj; | 575 SerializeObject obj; |
576 WriteHistoryItem(item, &obj); | 576 WriteHistoryItem(item, &obj); |
577 *serialized_item = obj.GetAsString(); | 577 *serialized_item = obj.GetAsString(); |
578 | 578 |
579 kVersion = real_version; | 579 kVersion = real_version; |
580 } | 580 } |
581 | 581 |
| 582 int HistoryItemCurrentVersion() { |
| 583 return kVersion; |
| 584 } |
| 585 |
582 } // namespace webkit_glue | 586 } // namespace webkit_glue |
OLD | NEW |