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