Index: ios/chrome/browser/native_app_launcher/native_app_navigation_controller.h |
diff --git a/ios/chrome/browser/native_app_launcher/native_app_navigation_controller.h b/ios/chrome/browser/native_app_launcher/native_app_navigation_controller.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0fc92b4a16765ac05761c81d1d80a3f8fdd3a665 |
--- /dev/null |
+++ b/ios/chrome/browser/native_app_launcher/native_app_navigation_controller.h |
@@ -0,0 +1,34 @@ |
+// 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_NATIVE_APP_LAUNCHER_NATIVE_APP_NAVIGATION_CONTROLLER_H_ |
+#define IOS_CHROME_BROWSER_NATIVE_APP_LAUNCHER_NATIVE_APP_NAVIGATION_CONTROLLER_H_ |
+ |
+#import <Foundation/Foundation.h> |
+ |
+#import "ios/chrome/browser/native_app_launcher/native_app_navigation_controller_protocol.h" |
+#import "ios/web/public/web_state/crw_web_controller_observer.h" |
+ |
+@class Tab; |
+ |
+namespace net { |
+class URLRequestContextGetter; |
+} // namespace net |
+ |
+// NativeAppNavigationController brings up a GAL Infobar if the webpage directs |
+// it to do so and there are no other circumstances that would suppress its |
+// display. |
+@interface NativeAppNavigationController |
+ : NSObject<CRWWebControllerObserver, NativeAppNavigationControllerProtocol> |
+ |
+// Designated initializer. |
+- (id)initWithRequestContextGetter:(net::URLRequestContextGetter*)context |
+ tab:(Tab*)tab; |
+ |
+// Copies the list of applications possibly being installed and register to be |
+// notified of their installation. |
+- (void)copyStateFrom:(NativeAppNavigationController*)controller; |
+@end |
+ |
+#endif // IOS_CHROME_BROWSER_NATIVE_APP_LAUNCHER_NATIVE_APP_NAVIGATION_CONTROLLER_H_ |