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

Unified Diff: ios/chrome/browser/xcallback_parameters.h

Issue 1095203006: [iOS] Upstream XCallbackParameters (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unused #include Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ios/chrome/browser/xcallback_parameters.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/xcallback_parameters.h
diff --git a/ios/chrome/browser/xcallback_parameters.h b/ios/chrome/browser/xcallback_parameters.h
new file mode 100644
index 0000000000000000000000000000000000000000..82b89965a0910316812d32c95f7f7f155cec3163
--- /dev/null
+++ b/ios/chrome/browser/xcallback_parameters.h
@@ -0,0 +1,38 @@
+// Copyright 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef IOS_CHROME_BROWSER_XCALLBACK_PARAMETERS_H_
+#define IOS_CHROME_BROWSER_XCALLBACK_PARAMETERS_H_
+
+#import <Foundation/Foundation.h>
+
+#include "url/gurl.h"
+
+// This class contains the defining parameters for an XCallback request from
+// another app.
+@interface XCallbackParameters : NSObject<NSCoding, NSCopying>
+
+// The id of the calling app.
+@property(nonatomic, readonly, copy) NSString* sourceAppId;
+
+// The user visible name of the calling app. Can be nil.
+@property(nonatomic, readonly, copy) NSString* sourceAppName;
+
+// x-callback-url::x-success URL. If the app is opened using a x-callback-url
+// compliant URL, the value of this parameter is used as callback URL when the
+// user taps the back button.
+@property(nonatomic, readonly) const GURL& successURL;
+
+// Flag to force the creation of a new tab. Default YES.
+@property(nonatomic, readonly) BOOL createNewTab;
+
+- (instancetype)initWithSourceAppId:(NSString*)sourceAppId
+ sourceAppName:(NSString*)sourceAppName
+ successURL:(const GURL&)successURL
+ createNewTab:(BOOL)createNewTab
+ NS_DESIGNATED_INITIALIZER;
+
+@end
+
+#endif // IOS_CHROME_BROWSER_XCALLBACK_PARAMETERS_H_
« no previous file with comments | « no previous file | ios/chrome/browser/xcallback_parameters.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698