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

Unified Diff: ios/web/public/crw_navigation_manager_storage.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
« no previous file with comments | « ios/web/net/crw_ssl_status_updater_unittest.mm ('k') | ios/web/public/crw_navigation_manager_storage.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/public/crw_navigation_manager_storage.h
diff --git a/ios/web/public/crw_navigation_manager_storage.h b/ios/web/public/crw_navigation_manager_storage.h
new file mode 100644
index 0000000000000000000000000000000000000000..d1425d7122b4c172b29d871e0f188ea83c82e125
--- /dev/null
+++ b/ios/web/public/crw_navigation_manager_storage.h
@@ -0,0 +1,35 @@
+// 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_STORAGE_H_
+#define IOS_WEB_PUBLIC_CRW_NAVIGATION_MANAGER_STORAGE_H_
+
+#import <Foundation/Foundation.h>
+
+@class CRWSessionCertificatePolicyManager;
+
+// NSCoding-compliant class used to serialize NavigationManager's persisted
+// properties.
+// TODO(crbug.com/685388): Investigate using code from the sessions component.
+@interface CRWNavigationManagerStorage : NSObject<NSCoding>
+
+@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_STORAGE_H_
« no previous file with comments | « ios/web/net/crw_ssl_status_updater_unittest.mm ('k') | ios/web/public/crw_navigation_manager_storage.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698