[email protected] | dc06435 | 2014-04-25 08:36:38 | [diff] [blame] | 1 | // Copyright 2014 The Chromium Authors. All rights reserved. |
[email protected] | 691aa2f | 2013-05-28 22:52:04 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
3 | // found in the LICENSE file. | ||||
4 | |||||
[email protected] | dc06435 | 2014-04-25 08:36:38 | [diff] [blame] | 5 | #ifndef CONTENT_RENDERER_HISTORY_SERIALIZATION_H_ |
6 | #define CONTENT_RENDERER_HISTORY_SERIALIZATION_H_ | ||||
[email protected] | 691aa2f | 2013-05-28 22:52:04 | [diff] [blame] | 7 | |
dcheng | cedca561 | 2016-04-09 01:40:15 | [diff] [blame] | 8 | #include <memory> |
[email protected] | 691aa2f | 2013-05-28 22:52:04 | [diff] [blame] | 9 | #include <string> |
10 | |||||
11 | #include "content/common/content_export.h" | ||||
12 | |||||
[email protected] | 180ef24 | 2013-11-07 06:50:46 | [diff] [blame] | 13 | namespace blink { |
[email protected] | 691aa2f | 2013-05-28 22:52:04 | [diff] [blame] | 14 | class WebHistoryItem; |
15 | } | ||||
16 | |||||
17 | namespace content { | ||||
[email protected] | 9cd14ef | 2014-04-30 18:26:03 | [diff] [blame] | 18 | class HistoryEntry; |
[email protected] | 691aa2f | 2013-05-28 22:52:04 | [diff] [blame] | 19 | class PageState; |
20 | |||||
[email protected] | 9cd14ef | 2014-04-30 18:26:03 | [diff] [blame] | 21 | CONTENT_EXPORT PageState HistoryEntryToPageState(HistoryEntry* entry); |
22 | CONTENT_EXPORT PageState SingleHistoryItemToPageState( | ||||
[email protected] | 180ef24 | 2013-11-07 06:50:46 | [diff] [blame] | 23 | const blink::WebHistoryItem& item); |
dcheng | cedca561 | 2016-04-09 01:40:15 | [diff] [blame] | 24 | CONTENT_EXPORT std::unique_ptr<HistoryEntry> PageStateToHistoryEntry( |
[email protected] | 477f1e7 | 2014-05-01 00:49:09 | [diff] [blame] | 25 | const PageState& state); |
[email protected] | 691aa2f | 2013-05-28 22:52:04 | [diff] [blame] | 26 | |
27 | } // namespace content | ||||
28 | |||||
[email protected] | dc06435 | 2014-04-25 08:36:38 | [diff] [blame] | 29 | #endif // CONTENT_RENDERER_HISTORY_SERIALIZATION_H_ |