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

Unified Diff: ios/chrome/browser/native_app_launcher/native_app_navigation_controller.h

Issue 2585233003: Upstream Chrome on iOS source code [2/11]. (Closed)
Patch Set: Created 4 years 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 side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698