| 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_NATIVE_APP_LAUNCHER_NATIVE_APP_NAVIGATION_CONTROLLER_
H_ | 5 #ifndef IOS_CHROME_BROWSER_NATIVE_APP_LAUNCHER_NATIVE_APP_NAVIGATION_CONTROLLER_
H_ |
| 6 #define IOS_CHROME_BROWSER_NATIVE_APP_LAUNCHER_NATIVE_APP_NAVIGATION_CONTROLLER_
H_ | 6 #define IOS_CHROME_BROWSER_NATIVE_APP_LAUNCHER_NATIVE_APP_NAVIGATION_CONTROLLER_
H_ |
| 7 | 7 |
| 8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
| 9 | 9 |
| 10 @class Tab; | |
| 11 | |
| 12 namespace net { | |
| 13 class URLRequestContextGetter; | |
| 14 } // namespace net | |
| 15 | |
| 16 namespace web { | 10 namespace web { |
| 17 class WebState; | 11 class WebState; |
| 18 } // namespace web | 12 } // namespace web |
| 19 | 13 |
| 20 // NativeAppNavigationController brings up a GAL Infobar if the webpage directs | 14 // NativeAppNavigationController brings up a GAL Infobar if the webpage directs |
| 21 // it to do so and there are no other circumstances that would suppress its | 15 // it to do so and there are no other circumstances that would suppress its |
| 22 // display. | 16 // display. |
| 23 @interface NativeAppNavigationController : NSObject | 17 @interface NativeAppNavigationController : NSObject |
| 24 | 18 |
| 25 // Designated initializer. The use of |tab| will be phased out in the future | |
| 26 // when all the information needed can be fulfilled by |webState|. Use this | |
| 27 // instead of -init. | |
| 28 - (instancetype)initWithWebState:(web::WebState*)webState | 19 - (instancetype)initWithWebState:(web::WebState*)webState |
| 29 requestContextGetter:(net::URLRequestContextGetter*)context | 20 NS_DESIGNATED_INITIALIZER; |
| 30 tab:(Tab*)tab NS_DESIGNATED_INITIALIZER; | |
| 31 | 21 |
| 32 - (instancetype)init NS_UNAVAILABLE; | 22 - (instancetype)init NS_UNAVAILABLE; |
| 33 | 23 |
| 34 // Copies the list of applications possibly being installed and register to be | 24 // Copies the list of applications possibly being installed and register to be |
| 35 // notified of their installation. | 25 // notified of their installation. |
| 36 - (void)copyStateFrom:(NativeAppNavigationController*)controller; | 26 - (void)copyStateFrom:(NativeAppNavigationController*)controller; |
| 37 @end | 27 @end |
| 38 | 28 |
| 39 #endif // IOS_CHROME_BROWSER_NATIVE_APP_LAUNCHER_NATIVE_APP_NAVIGATION_CONTROLL
ER_H_ | 29 #endif // IOS_CHROME_BROWSER_NATIVE_APP_LAUNCHER_NATIVE_APP_NAVIGATION_CONTROLL
ER_H_ |
| OLD | NEW |