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
3 // found in the LICENSE file.
5 #ifndef IOS_WEB_BROWSING_DATA_MANAGERS_CRW_BROWSING_DATA_MANAGER_H_
6 #define IOS_WEB_BROWSING_DATA_MANAGERS_CRW_BROWSING_DATA_MANAGER_H_
8 #import <Foundation/Foundation.h>
10 // A protocol implemented by a class that can manage browsing data between
11 // BrowserStates. Callers of these methods must do so on a background thread.
12 @protocol CRWBrowsingDataManager
<NSObject
>
14 // Removes browsing data at the associated BrowserState's state path.
15 - (void)removeDataAtStashPath
;
17 // Removes browsing data at the canonical path that a web view stores its data.
18 - (void)removeDataAtCanonicalPath
;
20 // Stashes browsing data to the associated BrowserState's state path.
23 // Restores browsing data from the associated BrowserState's state path.
28 #endif // IOS_WEB_BROWSING_DATA_MANAGERS_CRW_BROWSING_DATA_MANAGER_H_