Chromium Code Reviews| 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_NAVIGATION_CRW_SERIALIZED_NAVIGATION_MANAGER_H_ | |
| 6 #define IOS_WEB_NAVIGATION_CRW_SERIALIZED_NAVIGATION_MANAGER_H_ | |
| 7 | |
| 8 #import <Foundation/Foundation.h> | |
| 9 | |
| 10 @class CRWSessionCertificatePolicyManager; | |
| 11 @class XCallbackParameters; | |
| 12 | |
| 13 namespace web { | |
| 14 class NavigationManagerImpl; | |
| 15 } | |
| 16 | |
| 17 // NSCoding-compliant class used to serialize NavigationManager's persisted | |
| 18 // properties. | |
| 19 @interface CRWSerializedNavigationManager : NSObject<NSCoding> | |
| 20 | |
| 21 // Properties taken from NavigationManagerImpl and CRWSessionController. | |
|
Eugene But (OOO till 7-30)
2015/09/24 18:44:29
Do you want to mention CRWSessionController here?
| |
| 22 @property(nonatomic, copy) NSString* tabID; | |
| 23 @property(nonatomic, copy) NSString* openerID; | |
| 24 @property(nonatomic, getter=isOpenedByDOM) BOOL openedByDOM; | |
| 25 @property(nonatomic, assign) NSInteger openerNavigationIndex; | |
|
Eugene But (OOO till 7-30)
2015/09/24 18:44:29
This property is encoded/decoded as int. Navigatio
| |
| 26 @property(nonatomic, copy) NSString* windowName; | |
| 27 @property(nonatomic, assign) NSInteger currentNavigationIndex; | |
|
Eugene But (OOO till 7-30)
2015/09/24 18:44:29
ditto
| |
| 28 @property(nonatomic, assign) NSInteger previousNavigationIndex; | |
|
Eugene But (OOO till 7-30)
2015/09/24 18:44:29
ditto
| |
| 29 @property(nonatomic, assign) NSTimeInterval lastVisitedTimestamp; | |
| 30 // TODO(kkhorimoto): |entries| currently contains CRWSessionEntries. Once | |
| 31 // NavigationItemImpls are encoded/decoded using CRWSerializedNavigationItems | |
| 32 // (analogous to the approach taken with NavigationManagerImpl), this will | |
| 33 // become an array of CRWSerializedNavigationItems. | |
| 34 @property(nonatomic, copy) NSArray* entries; | |
| 35 @property(nonatomic, retain) | |
| 36 CRWSessionCertificatePolicyManager* sessionCertificatePolicyManager; | |
| 37 @property(nonatomic, retain) XCallbackParameters* XCallbackParameters; | |
| 38 | |
| 39 @end | |
| 40 | |
| 41 #endif // IOS_WEB_NAVIGATION_CRW_SERIALIZED_NAVIGATION_MANAGER_H_ | |
| OLD | NEW |