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

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: 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..1dce58aa79c49283d534daef8fd4f415004ed83f
--- /dev/null
+++ b/ios/web/navigation/serialized_navigation_manager_builder.h
@@ -0,0 +1,33 @@
+// 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"
+#import "base/mac/scoped_nsobject.h"
Eugene But (OOO till 7-30) 2015/09/23 16:33:44 This include is unused
kkhorimoto 2015/09/24 18:12:59 Done.
+
+@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