| 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 cd9100f7594785243f3bf5869d0816adf0b9e69e..d07c7e952c397d87ba15cb7de4e773d76db44414 100644
|
| --- a/ios/chrome/browser/ui/commands/clear_browsing_data_command.h
|
| +++ b/ios/chrome/browser/ui/commands/clear_browsing_data_command.h
|
| @@ -7,6 +7,7 @@
|
|
|
| #import <Foundation/Foundation.h>
|
|
|
| +#import "components/browsing_data/core/browsing_data_utils.h"
|
| #import "ios/chrome/browser/ui/commands/generic_chrome_command.h"
|
|
|
| namespace ios {
|
| @@ -20,7 +21,14 @@ class ChromeBrowserState;
|
| - (instancetype)initWithTag:(NSInteger)tag NS_UNAVAILABLE;
|
|
|
| // Initializes a command intented to clear browsing data for |browserState|
|
| -// that correspong to removal mask |mask|.
|
| +// that corresponds to removal mask |mask| for the time period |timePeriod|.
|
| +- (instancetype)initWithBrowserState:(ios::ChromeBrowserState*)browserState
|
| + mask:(int)mask
|
| + timePeriod:(browsing_data::TimePeriod)timePeriod
|
| + NS_DESIGNATED_INITIALIZER;
|
| +
|
| +// Initializes a command intented to clear browsing data for |browserState|
|
| +// that corresponds to removal mask |mask|.
|
| - (instancetype)initWithBrowserState:(ios::ChromeBrowserState*)browserState
|
| mask:(int)mask NS_DESIGNATED_INITIALIZER;
|
|
|
| @@ -30,6 +38,9 @@ class ChromeBrowserState;
|
| // Removal mask: see BrowsingDataRemover::RemoveDataMask.
|
| @property(nonatomic, readonly) int mask;
|
|
|
| +// Time period for which the browsing data will be removed.
|
| +@property(nonatomic, readonly) browsing_data::TimePeriod timePeriod;
|
| +
|
| @end
|
|
|
| #endif // IOS_CHROME_BROWSER_UI_COMMANDS_CLEAR_BROWSING_DATA_COMMAND_H_
|
|
|