OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef IOS_CHROME_BROWSER_APP_STARTUP_PARAMETERS_H_ | 5 #ifndef IOS_CHROME_BROWSER_APP_STARTUP_PARAMETERS_H_ |
6 #define IOS_CHROME_BROWSER_APP_STARTUP_PARAMETERS_H_ | 6 #define IOS_CHROME_BROWSER_APP_STARTUP_PARAMETERS_H_ |
7 | 7 |
8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
9 | 9 |
10 class GURL; | 10 class GURL; |
11 @class XCallbackParameters; | 11 @class XCallbackParameters; |
12 | 12 |
13 // This class stores all the parameters relevant to the app startup in case | 13 // This class stores all the parameters relevant to the app startup in case |
14 // of launch from another app. | 14 // of launch from another app. |
15 @interface AppStartupParameters : NSObject | 15 @interface AppStartupParameters : NSObject |
16 | 16 |
17 // The URL received that should be opened. | 17 // The URL received that should be opened. |
18 @property(nonatomic, readonly, assign) const GURL& externalURL; | 18 @property(nonatomic, readonly, assign) const GURL& externalURL; |
19 | 19 |
20 // Parameters representing an x-callback-url request from another app. | 20 // Parameters representing an x-callback-url request from another app. |
21 // Can be nil. | 21 // Can be nil. |
22 @property(nonatomic, readonly, retain) XCallbackParameters* xCallbackParameters; | 22 @property(nonatomic, readonly, strong) XCallbackParameters* xCallbackParameters; |
23 | 23 |
24 // Boolean to track if a voice search is requested at startup. | 24 // Boolean to track if a voice search is requested at startup. |
25 @property(nonatomic, readwrite, assign) BOOL launchVoiceSearch; | 25 @property(nonatomic, readwrite, assign) BOOL launchVoiceSearch; |
26 // Boolean to track if the app should launch in incognito mode. | 26 // Boolean to track if the app should launch in incognito mode. |
27 @property(nonatomic, readwrite, assign) BOOL launchInIncognito; | 27 @property(nonatomic, readwrite, assign) BOOL launchInIncognito; |
28 // Boolean to track if a QR scanner is requested at startup. | 28 // Boolean to track if a QR scanner is requested at startup. |
29 @property(nonatomic, readwrite, assign) BOOL launchQRScanner; | 29 @property(nonatomic, readwrite, assign) BOOL launchQRScanner; |
30 | 30 |
31 - (instancetype)init NS_UNAVAILABLE; | 31 - (instancetype)init NS_UNAVAILABLE; |
32 | 32 |
33 - (instancetype)initWithExternalURL:(const GURL&)externalURL; | 33 - (instancetype)initWithExternalURL:(const GURL&)externalURL; |
34 | 34 |
35 - (instancetype)initWithExternalURL:(const GURL&)externalURL | 35 - (instancetype)initWithExternalURL:(const GURL&)externalURL |
36 xCallbackParameters:(XCallbackParameters*)xCallbackParameters | 36 xCallbackParameters:(XCallbackParameters*)xCallbackParameters |
37 NS_DESIGNATED_INITIALIZER; | 37 NS_DESIGNATED_INITIALIZER; |
38 | 38 |
39 @end | 39 @end |
40 | 40 |
41 #endif // IOS_CHROME_BROWSER_APP_STARTUP_PARAMETERS_H_ | 41 #endif // IOS_CHROME_BROWSER_APP_STARTUP_PARAMETERS_H_ |
OLD | NEW |