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

Unified Diff: ios/web/public/crw_session_storage.h

Issue 2687353003: Created SerializableUserDataManager. (Closed)
Patch Set: Eugene's comments 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/web/public/crw_navigation_manager_storage.mm ('k') | ios/web/public/crw_session_storage.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/public/crw_session_storage.h
diff --git a/ios/web/public/crw_navigation_manager_storage.h b/ios/web/public/crw_session_storage.h
similarity index 63%
rename from ios/web/public/crw_navigation_manager_storage.h
rename to ios/web/public/crw_session_storage.h
index 7360c7d9897da809752d229f82e0f9b4144897a5..fa7446520865b9833ee433345c119bfbfcf6426f 100644
--- a/ios/web/public/crw_navigation_manager_storage.h
+++ b/ios/web/public/crw_session_storage.h
@@ -2,17 +2,21 @@
// 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_STORAGE_H_
-#define IOS_WEB_PUBLIC_CRW_NAVIGATION_MANAGER_STORAGE_H_
+#ifndef IOS_WEB_PUBLIC_CRW_SESSION_STORAGE_H_
+#define IOS_WEB_PUBLIC_CRW_SESSION_STORAGE_H_
#import <Foundation/Foundation.h>
+#include <memory>
@class CRWSessionCertificatePolicyManager;
-// NSCoding-compliant class used to serialize NavigationManager's persisted
-// properties.
+namespace web {
+class SerializableUserData;
+}
+
+// NSCoding-compliant class used to serialize session state.
// TODO(crbug.com/685388): Investigate using code from the sessions component.
-@interface CRWNavigationManagerStorage : NSObject<NSCoding>
+@interface CRWSessionStorage : NSObject<NSCoding>
@property(nonatomic, copy) NSString* tabID;
@property(nonatomic, copy) NSString* openerID;
@@ -25,7 +29,12 @@
@property(nonatomic, copy) NSArray* itemStorages;
@property(nonatomic, retain)
CRWSessionCertificatePolicyManager* sessionCertificatePolicyManager;
+@property(nonatomic, readonly) web::SerializableUserData* userData;
+
+// Setter for |userData|. The receiver takes ownership of |userData|.
+- (void)setSerializableUserData:
+ (std::unique_ptr<web::SerializableUserData>)userData;
@end
-#endif // IOS_WEB_PUBLIC_CRW_NAVIGATION_MANAGER_STORAGE_H_
+#endif // IOS_WEB_PUBLIC_CRW_SESSION_STORAGE_H_
« no previous file with comments | « ios/web/public/crw_navigation_manager_storage.mm ('k') | ios/web/public/crw_session_storage.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698