OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 #ifndef IOS_CHROME_BROWSER_XCALLBACK_PARAMETERS_H_ |
| 6 #define IOS_CHROME_BROWSER_XCALLBACK_PARAMETERS_H_ |
| 7 |
| 8 #import <Foundation/Foundation.h> |
| 9 |
| 10 #include "url/gurl.h" |
| 11 |
| 12 // This class contains the defining parameters for an XCallback request from |
| 13 // another app. |
| 14 @interface XCallbackParameters : NSObject<NSCoding, NSCopying> |
| 15 |
| 16 // The id of the calling app. |
| 17 @property(nonatomic, readonly, copy) NSString* sourceAppId; |
| 18 |
| 19 // The user visible name of the calling app. Can be nil. |
| 20 @property(nonatomic, readonly, copy) NSString* sourceAppName; |
| 21 |
| 22 // x-callback-url::x-success URL. If the app is opened using a x-callback-url |
| 23 // compliant URL, the value of this parameter is used as callback URL when the |
| 24 // user taps the back button. |
| 25 @property(nonatomic, readonly) const GURL& successURL; |
| 26 |
| 27 // Flag to force the creation of a new tab. Default YES. |
| 28 @property(nonatomic, readonly) BOOL createNewTab; |
| 29 |
| 30 - (instancetype)initWithSourceAppId:(NSString*)sourceAppId |
| 31 sourceAppName:(NSString*)sourceAppName |
| 32 successURL:(const GURL&)successURL |
| 33 createNewTab:(BOOL)createNewTab |
| 34 NS_DESIGNATED_INITIALIZER; |
| 35 |
| 36 @end |
| 37 |
| 38 #endif // IOS_CHROME_BROWSER_XCALLBACK_PARAMETERS_H_ |
OLD | NEW |