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; | 13 @class Tab; |
14 | 14 |
15 namespace net { | 15 namespace net { |
16 class URLRequestContextGetter; | 16 class URLRequestContextGetter; |
17 } // namespace net | 17 } // namespace net |
18 | 18 |
19 namespace web { | |
20 class WebState; | |
21 } // namespace web | |
22 | |
19 // NativeAppNavigationController brings up a GAL Infobar if the webpage directs | 23 // NativeAppNavigationController brings up a GAL Infobar if the webpage directs |
20 // it to do so and there are no other circumstances that would suppress its | 24 // it to do so and there are no other circumstances that would suppress its |
21 // display. | 25 // display. |
22 @interface NativeAppNavigationController | 26 @interface NativeAppNavigationController |
23 : NSObject<CRWWebControllerObserver, NativeAppNavigationControllerProtocol> | 27 : NSObject<CRWWebControllerObserver, NativeAppNavigationControllerProtocol> |
24 | 28 |
25 // Designated initializer. | 29 // Use -initWithWebState:requestContextGetter:tab: instead. |
26 - (id)initWithRequestContextGetter:(net::URLRequestContextGetter*)context | 30 - (instancetype)init NS_UNAVAILABLE; |
rohitrao (ping after 24h)
2017/01/24 14:24:56
We generally put the unavailable initializers afte
pkl (ping after 24h if needed)
2017/01/26 00:30:17
Done.
| |
27 tab:(Tab*)tab; | 31 |
32 // Designated initializer. The use of |tab| will be phased out in the future | |
33 // when all the information needed can be fulfilled by |webState|. | |
34 - (instancetype)initWithWebState:(web::WebState*)webState | |
35 requestContextGetter:(net::URLRequestContextGetter*)context | |
36 tab:(Tab*)tab NS_DESIGNATED_INITIALIZER; | |
28 | 37 |
29 // Copies the list of applications possibly being installed and register to be | 38 // Copies the list of applications possibly being installed and register to be |
30 // notified of their installation. | 39 // notified of their installation. |
31 - (void)copyStateFrom:(NativeAppNavigationController*)controller; | 40 - (void)copyStateFrom:(NativeAppNavigationController*)controller; |
32 @end | 41 @end |
33 | 42 |
34 #endif // IOS_CHROME_BROWSER_NATIVE_APP_LAUNCHER_NATIVE_APP_NAVIGATION_CONTROLL ER_H_ | 43 #endif // IOS_CHROME_BROWSER_NATIVE_APP_LAUNCHER_NATIVE_APP_NAVIGATION_CONTROLL ER_H_ |
OLD | NEW |