Chromium Code Reviews| 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 #import "ios/chrome/browser/native_app_launcher/native_app_navigation_controller _protocol.h" | 10 #import "ios/chrome/browser/native_app_launcher/native_app_navigation_controller _protocol.h" |
| 11 #import "ios/web/public/web_state/crw_web_controller_observer.h" | 11 #import "ios/web/public/web_state/crw_web_controller_observer.h" |
| 12 | 12 |
| 13 @class Tab; | |
| 14 | |
| 15 namespace net { | 13 namespace net { |
| 16 class URLRequestContextGetter; | 14 class URLRequestContextGetter; |
| 17 } // namespace net | 15 } // namespace net |
| 18 | 16 |
| 19 namespace web { | 17 namespace web { |
| 20 class WebState; | 18 class WebState; |
| 21 } // namespace web | 19 } // namespace web |
| 22 | 20 |
| 23 // NativeAppNavigationController brings up a GAL Infobar if the webpage directs | 21 // NativeAppNavigationController brings up a GAL Infobar if the webpage directs |
| 24 // it to do so and there are no other circumstances that would suppress its | 22 // it to do so and there are no other circumstances that would suppress its |
| 25 // display. | 23 // display. |
| 26 @interface NativeAppNavigationController | 24 @interface NativeAppNavigationController |
| 27 : NSObject<CRWWebControllerObserver, NativeAppNavigationControllerProtocol> | 25 : NSObject<CRWWebControllerObserver, NativeAppNavigationControllerProtocol> |
| 28 | 26 |
| 29 // Designated initializer. The use of |tab| will be phased out in the future | 27 // Designated initializer. |
|
sdefresne
2017/03/06 19:44:03
This comment is redundant with "NS_DESIGNATED_INIT
pkl (ping after 24h if needed)
2017/03/07 01:17:53
Done.
| |
| 30 // when all the information needed can be fulfilled by |webState|. Use this | |
| 31 // instead of -init. | |
| 32 - (instancetype)initWithWebState:(web::WebState*)webState | 28 - (instancetype)initWithWebState:(web::WebState*)webState |
| 33 requestContextGetter:(net::URLRequestContextGetter*)context | 29 requestContextGetter:(net::URLRequestContextGetter*)context |
| 34 tab:(Tab*)tab NS_DESIGNATED_INITIALIZER; | 30 NS_DESIGNATED_INITIALIZER; |
| 35 | 31 |
| 36 - (instancetype)init NS_UNAVAILABLE; | 32 - (instancetype)init NS_UNAVAILABLE; |
| 37 | 33 |
| 38 // Copies the list of applications possibly being installed and register to be | 34 // Copies the list of applications possibly being installed and register to be |
| 39 // notified of their installation. | 35 // notified of their installation. |
| 40 - (void)copyStateFrom:(NativeAppNavigationController*)controller; | 36 - (void)copyStateFrom:(NativeAppNavigationController*)controller; |
| 41 @end | 37 @end |
| 42 | 38 |
| 43 #endif // IOS_CHROME_BROWSER_NATIVE_APP_LAUNCHER_NATIVE_APP_NAVIGATION_CONTROLL ER_H_ | 39 #endif // IOS_CHROME_BROWSER_NATIVE_APP_LAUNCHER_NATIVE_APP_NAVIGATION_CONTROLL ER_H_ |
| OLD | NEW |