OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef CONTENT_RENDERER_HISTORY_SERIALIZATION_H_ | 5 #ifndef CONTENT_RENDERER_HISTORY_SERIALIZATION_H_ |
6 #define CONTENT_RENDERER_HISTORY_SERIALIZATION_H_ | 6 #define CONTENT_RENDERER_HISTORY_SERIALIZATION_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
| 9 #include <vector> |
9 | 10 |
10 #include "content/common/content_export.h" | 11 #include "content/common/content_export.h" |
11 | 12 |
12 namespace blink { | |
13 class WebHistoryItem; | |
14 } | |
15 | |
16 namespace content { | 13 namespace content { |
| 14 class HistoryEntry; |
17 class PageState; | 15 class PageState; |
18 | 16 |
19 CONTENT_EXPORT PageState HistoryItemToPageState( | 17 CONTENT_EXPORT PageState HistoryEntryToPageState(HistoryEntry* entry); |
20 const blink::WebHistoryItem& item); | 18 CONTENT_EXPORT HistoryEntry* PageStateToHistoryEntry(const PageState& state, |
21 CONTENT_EXPORT blink::WebHistoryItem PageStateToHistoryItem( | 19 int main_routing_id); |
22 const PageState& state); | |
23 | |
24 } // namespace content | 20 } // namespace content |
25 | 21 |
26 #endif // CONTENT_RENDERER_HISTORY_SERIALIZATION_H_ | 22 #endif // CONTENT_RENDERER_HISTORY_SERIALIZATION_H_ |
OLD | NEW |