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

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

Issue 2664113003: Moved serialization out of CRWSessionEntry. (Closed)
Patch Set: 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
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..e59e12b80b5d36ba7fd1100808b5234f14cf8ace
--- /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* BuildSerialization(
+ 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_

Powered by Google App Engine
This is Rietveld 408576698