blob: 2904d56f11e114f4a4e1cdf31de09de138bb6cb2 [file] [log] [blame]
// 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.
#import <Foundation/Foundation.h>
#include <memory>
@class CRWSessionCertificatePolicyCacheStorage;
namespace web {
class SerializableUserData;
// NSCoding-compliant class used to serialize session state.
// TODO( Investigate using code from the sessions component.
@interface CRWSessionStorage : NSObject<NSCoding>
@property(nonatomic, assign) BOOL hasOpener;
@property(nonatomic, assign) NSInteger lastCommittedItemIndex;
@property(nonatomic, assign) NSInteger previousItemIndex;
@property(nonatomic, copy) NSArray* itemStorages;
@property(nonatomic, strong)
CRWSessionCertificatePolicyCacheStorage* certPolicyCacheStorage;
@property(nonatomic, readonly) web::SerializableUserData* userData;
// Setter for |userData|. The receiver takes ownership of |userData|.
- (void)setSerializableUserData: