Revert "Fix broken channel icon in chrome://help on CrOS" and try again
[chromium-blink-merge.git] / ios / chrome / browser / ui / commands / set_up_for_testing_command.h
blob89f484b0c727f2098143658d9dd1ce7364b6a365
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_SET_UP_FOR_TESTING_COMMAND_H_
6 #define IOS_CHROME_BROWSER_UI_COMMANDS_SET_UP_FOR_TESTING_COMMAND_H_
8 #import <Foundation/Foundation.h>
10 #import "ios/chrome/browser/ui/commands/generic_chrome_command.h"
12 class GURL;
14 // Set up for testing command that can be passed to |chromeExecuteCommand|.
15 @interface SetUpForTestingCommand : GenericChromeCommand
17 // Mark inherited initializer as unavailable to prevent calling it by mistake.
18 - (instancetype)initWithTag:(NSInteger)tag NS_UNAVAILABLE;
20 // Initializes this command by parsing the url query.
21 - (instancetype)initWithURL:(const GURL&)url;
23 // Initializes this command.
24 - (instancetype)initWithClearBrowsingData:(BOOL)clearBrowsingData
25 closeTabs:(BOOL)closeTabs
26 numberOfNewTabs:(NSInteger)numberOfNewTabs
27 NS_DESIGNATED_INITIALIZER;
29 // Whether the browsing data should be cleared.
30 @property(nonatomic, readonly) BOOL clearBrowsingData;
32 // Whether the existing tabs should be closed.
33 @property(nonatomic, readonly) BOOL closeTabs;
35 // The number of new tabs to create.
36 @property(nonatomic, readonly) NSInteger numberOfNewTabs;
38 @end
40 #endif // IOS_CHROME_BROWSER_UI_COMMANDS_SET_UP_FOR_TESTING_COMMAND_H_