Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(101)

Side by Side Diff: ios/web/public/crw_navigation_manager_storage.h

Issue 2664113003: Moved serialization out of CRWSessionEntry. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 // |entries| is an NSArray of CRWNavigationItemStorages.
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; 26 @property(nonatomic, copy) NSArray* entries;
30 @property(nonatomic, retain) 27 @property(nonatomic, retain)
31 CRWSessionCertificatePolicyManager* sessionCertificatePolicyManager; 28 CRWSessionCertificatePolicyManager* sessionCertificatePolicyManager;
32 29
33 @end 30 @end
34 31
35 #endif // IOS_WEB_PUBLIC_CRW_NAVIGATION_MANAGER_STORAGE_H_ 32 #endif // IOS_WEB_PUBLIC_CRW_NAVIGATION_MANAGER_STORAGE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698