Index: ios/chrome/browser/ui/commands/clear_browsing_data_command.h |
diff --git a/ios/chrome/browser/ui/commands/clear_browsing_data_command.h b/ios/chrome/browser/ui/commands/clear_browsing_data_command.h |
index 1378c686e3f47955babd197f80908f9c72ffaf20..cd9100f7594785243f3bf5869d0816adf0b9e69e 100644 |
--- a/ios/chrome/browser/ui/commands/clear_browsing_data_command.h |
+++ b/ios/chrome/browser/ui/commands/clear_browsing_data_command.h |
@@ -7,18 +7,28 @@ |
#import <Foundation/Foundation.h> |
+#import "ios/chrome/browser/ui/commands/generic_chrome_command.h" |
+ |
namespace ios { |
class ChromeBrowserState; |
} |
// Command sent to clear the browsing data associated with a browser state. |
-@interface ClearBrowsingDataCommand : NSObject |
+@interface ClearBrowsingDataCommand : GenericChromeCommand |
+ |
+// Mark inherited initializer as unavailable to prevent calling it by mistake. |
+- (instancetype)initWithTag:(NSInteger)tag NS_UNAVAILABLE; |
+// Initializes a command intented to clear browsing data for |browserState| |
+// that correspong to removal mask |mask|. |
- (instancetype)initWithBrowserState:(ios::ChromeBrowserState*)browserState |
- mask:(int)mask; |
+ mask:(int)mask NS_DESIGNATED_INITIALIZER; |
+ |
+// When executed this command will remove browsing data for this BrowserState. |
+@property(nonatomic, readonly) ios::ChromeBrowserState* browserState; |
-@property(nonatomic, readonly, assign) ios::ChromeBrowserState* browserState; |
-@property(nonatomic, readonly, assign) int mask; |
+// Removal mask: see BrowsingDataRemover::RemoveDataMask. |
+@property(nonatomic, readonly) int mask; |
@end |