Revert "Fix broken channel icon in chrome://help on CrOS" and try again
[chromium-blink-merge.git] / ios / chrome / browser / ui / commands / clear_browsing_data_command.h
blobcd9100f7594785243f3bf5869d0816adf0b9e69e
1 // Copyright 2012 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_CHROME_BROWSER_UI_COMMANDS_CLEAR_BROWSING_DATA_COMMAND_H_
6 #define IOS_CHROME_BROWSER_UI_COMMANDS_CLEAR_BROWSING_DATA_COMMAND_H_
8 #import <Foundation/Foundation.h>
10 #import "ios/chrome/browser/ui/commands/generic_chrome_command.h"
12 namespace ios {
13 class ChromeBrowserState;
16 // Command sent to clear the browsing data associated with a browser state.
17 @interface ClearBrowsingDataCommand : GenericChromeCommand
19 // Mark inherited initializer as unavailable to prevent calling it by mistake.
20 - (instancetype)initWithTag:(NSInteger)tag NS_UNAVAILABLE;
22 // Initializes a command intented to clear browsing data for |browserState|
23 // that correspong to removal mask |mask|.
24 - (instancetype)initWithBrowserState:(ios::ChromeBrowserState*)browserState
25 mask:(int)mask NS_DESIGNATED_INITIALIZER;
27 // When executed this command will remove browsing data for this BrowserState.
28 @property(nonatomic, readonly) ios::ChromeBrowserState* browserState;
30 // Removal mask: see BrowsingDataRemover::RemoveDataMask.
31 @property(nonatomic, readonly) int mask;
33 @end
35 #endif // IOS_CHROME_BROWSER_UI_COMMANDS_CLEAR_BROWSING_DATA_COMMAND_H_