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

Side by Side Diff: ios/chrome/browser/native_app_launcher/native_app_navigation_controller.h

Issue 2731443003: Removed CRWWebController dependency from NativeAppNavigationController. (Closed)
Patch Set: Added missing import Created 3 years, 9 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_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"
11 #import "ios/web/public/web_state/crw_web_controller_observer.h"
12
13 @class Tab; 10 @class Tab;
14 11
15 namespace net { 12 namespace net {
16 class URLRequestContextGetter; 13 class URLRequestContextGetter;
17 } // namespace net 14 } // namespace net
18 15
19 namespace web { 16 namespace web {
20 class WebState; 17 class WebState;
21 } // namespace web 18 } // namespace web
22 19
23 // NativeAppNavigationController brings up a GAL Infobar if the webpage directs 20 // 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 21 // it to do so and there are no other circumstances that would suppress its
25 // display. 22 // display.
26 @interface NativeAppNavigationController 23 @interface NativeAppNavigationController : NSObject
27 : NSObject<CRWWebControllerObserver, NativeAppNavigationControllerProtocol>
28 24
29 // Designated initializer. The use of |tab| will be phased out in the future 25 // Designated initializer. The use of |tab| will be phased out in the future
30 // when all the information needed can be fulfilled by |webState|. Use this 26 // when all the information needed can be fulfilled by |webState|. Use this
31 // instead of -init. 27 // 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 tab:(Tab*)tab 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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698