| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef IOS_WEB_PUBLIC_CRW_NAVIGATION_MANAGER_STORAGE_H_ |
| 6 #define IOS_WEB_PUBLIC_CRW_NAVIGATION_MANAGER_STORAGE_H_ |
| 7 |
| 8 #import <Foundation/Foundation.h> |
| 9 |
| 10 @class CRWSessionCertificatePolicyManager; |
| 11 |
| 12 // NSCoding-compliant class used to serialize NavigationManager's persisted |
| 13 // properties. |
| 14 // TODO(crbug.com/685388): Investigate using code from the sessions component. |
| 15 @interface CRWNavigationManagerStorage : NSObject<NSCoding> |
| 16 |
| 17 @property(nonatomic, copy) NSString* tabID; |
| 18 @property(nonatomic, copy) NSString* openerID; |
| 19 @property(nonatomic, getter=isOpenedByDOM) BOOL openedByDOM; |
| 20 @property(nonatomic, assign) NSInteger openerNavigationIndex; |
| 21 @property(nonatomic, copy) NSString* windowName; |
| 22 @property(nonatomic, assign) NSInteger currentNavigationIndex; |
| 23 @property(nonatomic, assign) NSInteger previousNavigationIndex; |
| 24 @property(nonatomic, assign) NSTimeInterval lastVisitedTimestamp; |
| 25 // TODO(crbug.com/454984): |entries| currently contains CRWSessionEntries. Once |
| 26 // NavigationItemImpls are encoded/decoded using CRWNavigationItemSerializations |
| 27 // (analogous to the approach taken with NavigationManager), this will |
| 28 // become an array of CRWNavigationItemSerializations. |
| 29 @property(nonatomic, copy) NSArray* entries; |
| 30 @property(nonatomic, retain) |
| 31 CRWSessionCertificatePolicyManager* sessionCertificatePolicyManager; |
| 32 |
| 33 @end |
| 34 |
| 35 #endif // IOS_WEB_PUBLIC_CRW_NAVIGATION_MANAGER_STORAGE_H_ |
| OLD | NEW |