Revert "Fix broken channel icon in chrome://help on CrOS" and try again
[chromium-blink-merge.git] / ios / chrome / browser / app_startup_parameters.h
blob46dc2dc5e96a7a76fdfe7bb73820bb046835faf1
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_APP_STARTUP_PARAMETERS_H_
6 #define IOS_CHROME_BROWSER_APP_STARTUP_PARAMETERS_H_
8 #import <Foundation/Foundation.h>
10 class GURL;
11 @class XCallbackParameters;
13 // This class stores all the parameters relevant to the app startup in case
14 // of launch from another app.
15 @interface AppStartupParameters : NSObject
17 // The URL received that should be opened.
18 @property(nonatomic, readonly, assign) const GURL& externalURL;
20 // Parameters representing an x-callback-url request from another app.
21 // Can be nil.
22 @property(nonatomic, readonly, retain) XCallbackParameters* xCallbackParameters;
24 // Boolean to track if a voice search is requested at startup.
25 @property(nonatomic, readonly, assign) BOOL launchVoiceSearch;
27 - (instancetype)initWithExternalURL:(const GURL&)externalURL;
29 - (instancetype)initWithExternalURL:(const GURL&)externalURL
30 xCallbackParameters:(XCallbackParameters*)xCallbackParameters;
32 - (instancetype)initWithExternalURL:(const GURL&)externalURL
33 xCallbackParameters:(XCallbackParameters*)xCallbackParameters
34 voiceSearch:(BOOL)voicesearch NS_DESIGNATED_INITIALIZER;
36 @end
38 #endif // IOS_CHROME_BROWSER_APP_STARTUP_PARAMETERS_H_