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

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

Issue 2720613005: Refactor serialisation of openerId & openerNavigationIndex. (Closed)
Patch Set: Fix CRWSessionController's initializer comment. Created 3 years, 9 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
« no previous file with comments | « ios/web/navigation/session_storage_builder.mm ('k') | ios/web/public/crw_session_storage.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_SESSION_STORAGE_H_ 5 #ifndef IOS_WEB_PUBLIC_CRW_SESSION_STORAGE_H_
6 #define IOS_WEB_PUBLIC_CRW_SESSION_STORAGE_H_ 6 #define IOS_WEB_PUBLIC_CRW_SESSION_STORAGE_H_
7 7
8 #import <Foundation/Foundation.h> 8 #import <Foundation/Foundation.h>
9 #include <memory> 9 #include <memory>
10 10
11 @class CRWSessionCertificatePolicyManager; 11 @class CRWSessionCertificatePolicyManager;
12 12
13 namespace web { 13 namespace web {
14 class SerializableUserData; 14 class SerializableUserData;
15 } 15 }
16 16
17 // NSCoding-compliant class used to serialize session state. 17 // NSCoding-compliant class used to serialize session state.
18 // TODO(crbug.com/685388): Investigate using code from the sessions component. 18 // TODO(crbug.com/685388): Investigate using code from the sessions component.
19 @interface CRWSessionStorage : NSObject<NSCoding> 19 @interface CRWSessionStorage : NSObject<NSCoding>
20 20
21 @property(nonatomic, copy) NSString* openerID;
22 @property(nonatomic, getter=isOpenedByDOM) BOOL openedByDOM; 21 @property(nonatomic, getter=isOpenedByDOM) BOOL openedByDOM;
23 @property(nonatomic, assign) NSInteger openerNavigationIndex;
24 @property(nonatomic, copy) NSString* windowName; 22 @property(nonatomic, copy) NSString* windowName;
25 @property(nonatomic, assign) NSInteger currentNavigationIndex; 23 @property(nonatomic, assign) NSInteger currentNavigationIndex;
26 @property(nonatomic, assign) NSInteger previousNavigationIndex; 24 @property(nonatomic, assign) NSInteger previousNavigationIndex;
27 @property(nonatomic, assign) NSTimeInterval lastVisitedTimestamp; 25 @property(nonatomic, assign) NSTimeInterval lastVisitedTimestamp;
28 @property(nonatomic, copy) NSArray* itemStorages; 26 @property(nonatomic, copy) NSArray* itemStorages;
29 @property(nonatomic, retain) 27 @property(nonatomic, retain)
30 CRWSessionCertificatePolicyManager* sessionCertificatePolicyManager; 28 CRWSessionCertificatePolicyManager* sessionCertificatePolicyManager;
31 @property(nonatomic, readonly) web::SerializableUserData* userData; 29 @property(nonatomic, readonly) web::SerializableUserData* userData;
32 30
33 // Setter for |userData|. The receiver takes ownership of |userData|. 31 // Setter for |userData|. The receiver takes ownership of |userData|.
34 - (void)setSerializableUserData: 32 - (void)setSerializableUserData:
35 (std::unique_ptr<web::SerializableUserData>)userData; 33 (std::unique_ptr<web::SerializableUserData>)userData;
36 34
37 @end 35 @end
38 36
39 #endif // IOS_WEB_PUBLIC_CRW_SESSION_STORAGE_H_ 37 #endif // IOS_WEB_PUBLIC_CRW_SESSION_STORAGE_H_
OLDNEW
« no previous file with comments | « ios/web/navigation/session_storage_builder.mm ('k') | ios/web/public/crw_session_storage.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698