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 // This class contains the defining parameters for an XCallback request from | |
11 // another app. | |
12 @interface XCallbackParameters : NSObject<NSCoding, NSCopying> | |
13 | |
14 // The id of the calling app. | |
15 @property(nonatomic, readonly, copy) NSString* sourceAppId; | |
16 | |
17 // Designated initializer. |sourceAppId| is the string identifier for the app | |
18 // that launched Chrome and cannot be nil. | |
19 - (instancetype)initWithSourceAppId:(NSString*)sourceAppId | |
20 NS_DESIGNATED_INITIALIZER; | |
21 | |
22 - (instancetype)init NS_UNAVAILABLE; | |
23 | |
24 @end | |
25 | |
26 #endif // IOS_CHROME_BROWSER_XCALLBACK_PARAMETERS_H_ | |
OLD | NEW |