| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 // |
| 5 #ifndef ANDROID_WEBVIEW_NATIVE_STATE_SERIALIZER_H_ |
| 6 #define ANDROID_WEBVIEW_NATIVE_STATE_SERIALIZER_H_ |
| 7 |
| 8 #include "base/compiler_specific.h" |
| 9 |
| 10 class Pickle; |
| 11 class PickleIterator; |
| 12 |
| 13 namespace content { |
| 14 |
| 15 class NavigationEntry; |
| 16 class WebContents; |
| 17 |
| 18 } // namespace content |
| 19 |
| 20 namespace android_webview { |
| 21 |
| 22 bool WriteToPickle(const content::WebContents& web_contents, |
| 23 Pickle* pickle) WARN_UNUSED_RESULT; |
| 24 |
| 25 bool RestoreFromPickle(PickleIterator* iterator, |
| 26 content::WebContents* web_contents) WARN_UNUSED_RESULT; |
| 27 |
| 28 |
| 29 // Functions below are individual helper functiosn called by functions above. |
| 30 // They are broken up for unit testing, and probalby should not be called out |
| 31 // side of tests. |
| 32 bool WriteHeaderToPickle(Pickle* pickle) WARN_UNUSED_RESULT; |
| 33 bool RestoreHeaderFromPickle(PickleIterator* iterator) WARN_UNUSED_RESULT; |
| 34 bool WriteNavigationEntryToPickle(const content::NavigationEntry& entry, |
| 35 Pickle* pickle) WARN_UNUSED_RESULT; |
| 36 bool RestoreNavigationEntryFromPickle( |
| 37 PickleIterator* iterator, |
| 38 content::NavigationEntry* entry) WARN_UNUSED_RESULT; |
| 39 } // namespace android_webview |
| 40 |
| 41 #endif // ANDROID_WEBVIEW_NATIVE_STATE_SERIALIZER_H_ |
| OLD | NEW |