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 3// found in the LICENSE file. 4 5#ifndef CONTENT_RENDERER_HISTORY_SERIALIZATION_H_ 6#define CONTENT_RENDERER_HISTORY_SERIALIZATION_H_ 7 8#include <string> 9 10#include "base/memory/scoped_ptr.h" 11#include "content/common/content_export.h" 12 13namespace blink { 14class WebHistoryItem; 15} 16 17namespace content { 18class HistoryEntry; 19class PageState; 20 21CONTENT_EXPORT PageState HistoryEntryToPageState(HistoryEntry* entry); 22CONTENT_EXPORT PageState SingleHistoryItemToPageState( 23 const blink::WebHistoryItem& item); 24CONTENT_EXPORT scoped_ptr<HistoryEntry> PageStateToHistoryEntry( 25 const PageState& state); 26 27} // namespace content 28 29#endif // CONTENT_RENDERER_HISTORY_SERIALIZATION_H_ 30