Chromium Code Reviews| Index: ios/web/public/crw_navigation_manager_serialization.h |
| diff --git a/ios/web/public/crw_navigation_manager_serialization.h b/ios/web/public/crw_navigation_manager_serialization.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..1aec5e6009825606426aeeac18bd629448bc49e0 |
| --- /dev/null |
| +++ b/ios/web/public/crw_navigation_manager_serialization.h |
| @@ -0,0 +1,34 @@ |
| +// 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_SERIALIZATION_H_ |
| +#define IOS_WEB_PUBLIC_CRW_NAVIGATION_MANAGER_SERIALIZATION_H_ |
| + |
| +#import <Foundation/Foundation.h> |
| + |
| +@class CRWSessionCertificatePolicyManager; |
| + |
| +// NSCoding-compliant class used to serialize NavigationManager's persisted |
| +// properties. |
| +@interface CRWNavigationManagerSerialization : NSObject<NSCoding> |
|
Eugene But (OOO till 7-30)
2017/01/25 16:03:38
Is there //content analogue for this public class?
kkhorimoto
2017/01/26 07:19:10
It looks like content uses SessionTab as an analog
|
| + |
| +@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_SERIALIZATION_H_ |