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 @interface CRWSerializedNavigationManager : NSObject<NSCoding> | |
|
Eugene But (OOO till 7-30)
2015/09/23 16:33:44
class needs comments
Eugene But (OOO till 7-30)
2015/09/23 16:33:44
This is not actually a manager. Maybe CRWNavigatio
kkhorimoto
2015/09/24 18:12:59
I added the comment, but left the name the same.
Eugene But (OOO till 7-30)
2015/09/24 18:44:29
SerializedNavigationEntry is unambiguous name. But
stuartmorgan
2015/09/28 22:27:33
I think Eugene's point is a good one. For instance
| |
| 18 | |
| 19 // Properties taken from NavigationManagerImpl and CRWSessionController. | |
| 20 @property(nonatomic, copy) NSString* tabId; | |
|
Eugene But (OOO till 7-30)
2015/09/23 16:33:44
s/tabId/tabID
kkhorimoto
2015/09/24 18:12:59
Done.
| |
| 21 @property(nonatomic, copy) NSString* openerId; | |
|
Eugene But (OOO till 7-30)
2015/09/23 16:33:43
openerID
kkhorimoto
2015/09/24 18:12:59
Done.
| |
| 22 @property(nonatomic, getter=isOpenedByDOM) BOOL openedByDOM; | |
| 23 @property(nonatomic, assign) NSInteger openerNavigationIndex; | |
| 24 @property(nonatomic, copy) NSString* windowName; | |
| 25 @property(nonatomic, assign) NSInteger currentNavigationIndex; | |
| 26 @property(nonatomic, assign) NSInteger previousNavigationIndex; | |
| 27 @property(nonatomic, assign) NSTimeInterval lastVisitedTimestamp; | |
| 28 // TODO(kkhorimoto): |entries| currently contains CRWSessionEntries. Once | |
| 29 // NavigationItemImpls are encoded/decoded using CRWSerializedNavigationItems | |
| 30 // (analogous to the approach taken with NavigationManagerImpl), this will | |
| 31 // become an array of CRWSerializedNavigationItems. | |
| 32 @property(nonatomic, copy) NSArray* entries; | |
| 33 @property(nonatomic, retain) | |
| 34 CRWSessionCertificatePolicyManager* sessionCertificatePolicyManager; | |
| 35 @property(nonatomic, retain) XCallbackParameters* xCallbackParameters; | |
|
Eugene But (OOO till 7-30)
2015/09/23 16:33:44
s/xCallbackParameters/XCallbackParameters
kkhorimoto
2015/09/24 18:12:59
Done.
| |
| 36 | |
| 37 @end | |
| 38 | |
| 39 #endif // IOS_WEB_NAVIGATION_CRW_SERIALIZED_NAVIGATION_MANAGER_H_ | |
| OLD | NEW |