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

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

Issue 1360993002: Moved NavigationManagerImpl serialization out of CRWSessionController. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Eugene's comments Created 5 years, 3 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/serialized_navigation_manager_builder.h
diff --git a/ios/web/navigation/serialized_navigation_manager_builder.h b/ios/web/navigation/serialized_navigation_manager_builder.h
new file mode 100644
index 0000000000000000000000000000000000000000..ff95c9c014cd52ce73a587fd4ddda3c4a07333b9
--- /dev/null
+++ b/ios/web/navigation/serialized_navigation_manager_builder.h
@@ -0,0 +1,32 @@
+// 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_
+
+#import <Foundation/Foundation.h>
+
+#include "base/memory/scoped_ptr.h"
+
+@class CRWSerializedNavigationManager;
+
+namespace web {
+
+class NavigationManagerImpl;
+
+class SerializedNavigationManagerBuilder {
+ public:
+ // Construct an autoreleased CRWSerializedNavigationManager from
+ // |navigationManager|.
+ static CRWSerializedNavigationManager* FromNavigationManager(
+ NavigationManagerImpl* navigation_manager);
+
+ // Constructs a NavigationManagerImpl from |serializedNavigationManager|.
+ static scoped_ptr<NavigationManagerImpl> ToNavigationManager(
+ CRWSerializedNavigationManager* serialized_navigation_manager);
+};
+
+} // namespace web
+
+#endif // IOS_WEB_NAVIGATION_SERIALIZED_NAVIGATION_MANAGER_BUILDER_H_

Powered by Google App Engine
This is Rietveld 408576698