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

Unified Diff: ios/web/public/crw_navigation_manager_serialization.h

Issue 1360993002: Moved NavigationManagerImpl serialization out of CRWSessionController. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test fix 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/public/crw_navigation_manager_serialization.h
diff --git a/ios/web/public/crw_navigation_manager_serialization.h b/ios/web/public/crw_navigation_manager_serialization.h
new file mode 100644
index 0000000000000000000000000000000000000000..1aec5e6009825606426aeeac18bd629448bc49e0
--- /dev/null
+++ b/ios/web/public/crw_navigation_manager_serialization.h
@@ -0,0 +1,34 @@
+// 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_PUBLIC_CRW_NAVIGATION_MANAGER_SERIALIZATION_H_
+#define IOS_WEB_PUBLIC_CRW_NAVIGATION_MANAGER_SERIALIZATION_H_
+
+#import <Foundation/Foundation.h>
+
+@class CRWSessionCertificatePolicyManager;
+
+// NSCoding-compliant class used to serialize NavigationManager's persisted
+// properties.
+@interface CRWNavigationManagerSerialization : NSObject<NSCoding>
Eugene But (OOO till 7-30) 2017/01/25 16:03:38 Is there //content analogue for this public class?
kkhorimoto 2017/01/26 07:19:10 It looks like content uses SessionTab as an analog
+
+@property(nonatomic, copy) NSString* tabID;
+@property(nonatomic, copy) NSString* openerID;
+@property(nonatomic, getter=isOpenedByDOM) BOOL openedByDOM;
+@property(nonatomic, assign) NSInteger openerNavigationIndex;
+@property(nonatomic, copy) NSString* windowName;
+@property(nonatomic, assign) NSInteger currentNavigationIndex;
+@property(nonatomic, assign) NSInteger previousNavigationIndex;
+@property(nonatomic, assign) NSTimeInterval lastVisitedTimestamp;
+// TODO(crbug.com/454984): |entries| currently contains CRWSessionEntries. Once
+// NavigationItemImpls are encoded/decoded using CRWNavigationItemSerializations
+// (analogous to the approach taken with NavigationManager), this will
+// become an array of CRWNavigationItemSerializations.
+@property(nonatomic, copy) NSArray* entries;
+@property(nonatomic, retain)
+ CRWSessionCertificatePolicyManager* sessionCertificatePolicyManager;
+
+@end
+
+#endif // IOS_WEB_PUBLIC_CRW_NAVIGATION_MANAGER_SERIALIZATION_H_

Powered by Google App Engine
This is Rietveld 408576698