Chromium Code Reviews| Index: ios/web/navigation/crw_serialized_navigation_manager.h |
| diff --git a/ios/web/navigation/crw_serialized_navigation_manager.h b/ios/web/navigation/crw_serialized_navigation_manager.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..4f05a7432d5857471b96d94e6987f0b41d5c9263 |
| --- /dev/null |
| +++ b/ios/web/navigation/crw_serialized_navigation_manager.h |
| @@ -0,0 +1,41 @@ |
| +// 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_NAVIGATION_CRW_SERIALIZED_NAVIGATION_MANAGER_H_ |
| +#define IOS_WEB_NAVIGATION_CRW_SERIALIZED_NAVIGATION_MANAGER_H_ |
| + |
| +#import <Foundation/Foundation.h> |
| + |
| +@class CRWSessionCertificatePolicyManager; |
| +@class XCallbackParameters; |
| + |
| +namespace web { |
| +class NavigationManagerImpl; |
| +} |
| + |
| +// NSCoding-compliant class used to serialize NavigationManager's persisted |
| +// properties. |
| +@interface CRWSerializedNavigationManager : NSObject<NSCoding> |
| + |
| +// 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?
|
| +@property(nonatomic, copy) NSString* tabID; |
| +@property(nonatomic, copy) NSString* openerID; |
| +@property(nonatomic, getter=isOpenedByDOM) BOOL openedByDOM; |
| +@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
|
| +@property(nonatomic, copy) NSString* windowName; |
| +@property(nonatomic, assign) NSInteger currentNavigationIndex; |
|
Eugene But (OOO till 7-30)
2015/09/24 18:44:29
ditto
|
| +@property(nonatomic, assign) NSInteger previousNavigationIndex; |
|
Eugene But (OOO till 7-30)
2015/09/24 18:44:29
ditto
|
| +@property(nonatomic, assign) NSTimeInterval lastVisitedTimestamp; |
| +// TODO(kkhorimoto): |entries| currently contains CRWSessionEntries. Once |
| +// NavigationItemImpls are encoded/decoded using CRWSerializedNavigationItems |
| +// (analogous to the approach taken with NavigationManagerImpl), this will |
| +// become an array of CRWSerializedNavigationItems. |
| +@property(nonatomic, copy) NSArray* entries; |
| +@property(nonatomic, retain) |
| + CRWSessionCertificatePolicyManager* sessionCertificatePolicyManager; |
| +@property(nonatomic, retain) XCallbackParameters* XCallbackParameters; |
| + |
| +@end |
| + |
| +#endif // IOS_WEB_NAVIGATION_CRW_SERIALIZED_NAVIGATION_MANAGER_H_ |