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

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

Issue 1360993002: Moved NavigationManagerImpl serialization out of CRWSessionController. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compilation fix after rebase 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_manager_storage_builder.h
diff --git a/ios/web/navigation/navigation_manager_storage_builder.h b/ios/web/navigation/navigation_manager_storage_builder.h
new file mode 100644
index 0000000000000000000000000000000000000000..0934327154b1513f04185d8e000b58b0fe047fee
--- /dev/null
+++ b/ios/web/navigation/navigation_manager_storage_builder.h
@@ -0,0 +1,29 @@
+// Copyright 2015 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_SERIALIZED_NAVIGATION_MANAGER_BUILDER_H_
+#define IOS_WEB_NAVIGATION_SERIALIZED_NAVIGATION_MANAGER_BUILDER_H_
+
+#include <memory>
+
+@class CRWNavigationManagerStorage;
+
+namespace web {
+
+class NavigationManagerImpl;
+
+// Class that can serialize and deserialize NavigationManagers.
+class NavigationManagerStorageBuilder {
+ public:
+ // Creates a serialized NavigationManager from |navigation_manager|.
+ CRWNavigationManagerStorage* BuildSerialization(
+ NavigationManagerImpl* navigation_manager) const;
+ // Creates a NavigationManager from |navigation_manager_storage|.
+ std::unique_ptr<NavigationManagerImpl> BuildNavigationManagerImpl(
+ CRWNavigationManagerStorage* navigation_manager_storage) const;
+};
+
+} // namespace web
+
+#endif // IOS_WEB_NAVIGATION_SERIALIZED_NAVIGATION_MANAGER_BUILDER_H_
« no previous file with comments | « ios/web/navigation/navigation_manager_impl_unittest.mm ('k') | ios/web/navigation/navigation_manager_storage_builder.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698