Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(693)

Unified Diff: ios/web/navigation/navigation_item_storage_builder.h

Issue 2664113003: Moved serialization out of CRWSessionEntry. (Closed)
Patch Set: Eugene's comments Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/web/navigation/navigation_item_impl.h ('k') | ios/web/navigation/navigation_item_storage_builder.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/navigation/navigation_item_storage_builder.h
diff --git a/ios/web/navigation/navigation_item_storage_builder.h b/ios/web/navigation/navigation_item_storage_builder.h
new file mode 100644
index 0000000000000000000000000000000000000000..c180441d26c4da31294d50cfeb75c2662b253647
--- /dev/null
+++ b/ios/web/navigation/navigation_item_storage_builder.h
@@ -0,0 +1,29 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef IOS_WEB_NAVIGATION_NAVIGATION_ITEM_STORAGE_BUILDER_H_
+#define IOS_WEB_NAVIGATION_NAVIGATION_ITEM_STORAGE_BUILDER_H_
+
+#include <memory>
+
+@class CRWNavigationItemStorage;
+
+namespace web {
+
+class NavigationItemImpl;
+
+// Class that can serialize and deserialize NavigationItems.
+class NavigationItemStorageBuilder {
+ public:
+ // Creates a serialized NavigationItem from |navigation_Item|.
+ CRWNavigationItemStorage* BuildStorage(
+ NavigationItemImpl* navigation_item) const;
+ // Creates a NavigationItem from |navigation_Item_storage|.
+ std::unique_ptr<NavigationItemImpl> BuildNavigationItemImpl(
+ CRWNavigationItemStorage* navigation_item_storage) const;
+};
+
+} // namespace web
+
+#endif // IOS_WEB_NAVIGATION_NAVIGATION_ITEM_STORAGE_BUILDER_H_
« no previous file with comments | « ios/web/navigation/navigation_item_impl.h ('k') | ios/web/navigation/navigation_item_storage_builder.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698