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