OLD | NEW |
(Empty) | |
| 1 // Copyright 2017 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 IOS_WEB_NAVIGATION_NAVIGATION_ITEM_STORAGE_BUILDER_H_ |
| 6 #define IOS_WEB_NAVIGATION_NAVIGATION_ITEM_STORAGE_BUILDER_H_ |
| 7 |
| 8 #include <memory> |
| 9 |
| 10 @class CRWNavigationItemStorage; |
| 11 |
| 12 namespace web { |
| 13 |
| 14 class NavigationItemImpl; |
| 15 |
| 16 // Class that can serialize and deserialize NavigationItems. |
| 17 class NavigationItemStorageBuilder { |
| 18 public: |
| 19 // Creates a serialized NavigationItem from |navigation_Item|. |
| 20 CRWNavigationItemStorage* BuildSerialization( |
| 21 NavigationItemImpl* navigation_item) const; |
| 22 // Creates a NavigationItem from |navigation_Item_storage|. |
| 23 std::unique_ptr<NavigationItemImpl> BuildNavigationItemImpl( |
| 24 CRWNavigationItemStorage* navigation_item_storage) const; |
| 25 }; |
| 26 |
| 27 } // namespace web |
| 28 |
| 29 #endif // IOS_WEB_NAVIGATION_NAVIGATION_ITEM_STORAGE_BUILDER_H_ |
OLD | NEW |