| OLD | NEW |
| (Empty) |
| 1 // Copyright 2017 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_VIEW_PUBLIC_CRIWV_WEBSITE_DATA_STORE_H_ | |
| 6 #define IOS_WEB_VIEW_PUBLIC_CRIWV_WEBSITE_DATA_STORE_H_ | |
| 7 | |
| 8 #import <Foundation/Foundation.h> | |
| 9 | |
| 10 // Controls persistence of website data such as cookies, caches, and local | |
| 11 // storage. | |
| 12 @interface CRIWVWebsiteDataStore : NSObject | |
| 13 | |
| 14 // Whether or not this data store persists data to disk. | |
| 15 @property(readonly, getter=isPersistent) BOOL persistent; | |
| 16 | |
| 17 // Persistent data store which stores all data on disk. | |
| 18 + (instancetype)defaultDataStore; | |
| 19 // Ephemeral data store that never stores data on disk. | |
| 20 + (instancetype)nonPersistentDataStore; | |
| 21 | |
| 22 @end | |
| 23 | |
| 24 #endif // IOS_WEB_VIEW_PUBLIC_CRIWV_WEBSITE_DATA_STORE_H_ | |
| OLD | NEW |