Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(368)

Side by Side Diff: ios/chrome/browser/xcallback_parameters.h

Issue 1171203004: Correct iOS build for latest Xcode beta. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_XCALLBACK_PARAMETERS_H_ 5 #ifndef IOS_CHROME_BROWSER_XCALLBACK_PARAMETERS_H_
6 #define IOS_CHROME_BROWSER_XCALLBACK_PARAMETERS_H_ 6 #define IOS_CHROME_BROWSER_XCALLBACK_PARAMETERS_H_
7 7
8 #import <Foundation/Foundation.h> 8 #import <Foundation/Foundation.h>
9 9
10 #include "url/gurl.h" 10 #include "url/gurl.h"
11 11
12 // This class contains the defining parameters for an XCallback request from 12 // This class contains the defining parameters for an XCallback request from
13 // another app. 13 // another app.
14 @interface XCallbackParameters : NSObject<NSCoding, NSCopying> 14 @interface XCallbackParameters : NSObject<NSCoding, NSCopying>
15 15
16 // The id of the calling app. 16 // The id of the calling app.
17 @property(nonatomic, readonly, copy) NSString* sourceAppId; 17 @property(nonatomic, readonly, copy) NSString* sourceAppId;
18 18
19 // The user visible name of the calling app. Can be nil. 19 // The user visible name of the calling app. Can be nil.
20 @property(nonatomic, readonly, copy) NSString* sourceAppName; 20 @property(nonatomic, readonly, copy) NSString* sourceAppName;
21 21
22 // x-callback-url::x-success URL. If the app is opened using a x-callback-url 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 23 // compliant URL, the value of this parameter is used as callback URL when the
24 // user taps the back button. 24 // user taps the back button.
25 @property(nonatomic, readonly) const GURL& successURL; 25 @property(nonatomic, readonly) const GURL& successURL;
26 26
27 // Flag to force the creation of a new tab. Default YES. 27 // Flag to force the creation of a new tab. Default YES.
28 @property(nonatomic, readonly) BOOL createNewTab; 28 @property(nonatomic, readonly) BOOL createNewTab;
29 29
30 - (instancetype)init NS_UNAVAILABLE;
31
30 - (instancetype)initWithSourceAppId:(NSString*)sourceAppId 32 - (instancetype)initWithSourceAppId:(NSString*)sourceAppId
31 sourceAppName:(NSString*)sourceAppName 33 sourceAppName:(NSString*)sourceAppName
32 successURL:(const GURL&)successURL 34 successURL:(const GURL&)successURL
33 createNewTab:(BOOL)createNewTab 35 createNewTab:(BOOL)createNewTab
34 NS_DESIGNATED_INITIALIZER; 36 NS_DESIGNATED_INITIALIZER;
35 37
36 @end 38 @end
37 39
38 #endif // IOS_CHROME_BROWSER_XCALLBACK_PARAMETERS_H_ 40 #endif // IOS_CHROME_BROWSER_XCALLBACK_PARAMETERS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698