Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(95)

Unified Diff: ios/chrome/browser/ui/commands/clear_browsing_data_command.h

Issue 1124173004: [iOS] Upstream //ios/chrome/browser/ui/commands changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compilation Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ios/chrome/browser/ui/commands/clear_browsing_data_command.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | ios/chrome/browser/ui/commands/clear_browsing_data_command.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698