OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef IOS_CHROME_BROWSER_UI_SETTINGS_NATIVE_APPS_COLLECTION_VIEW_CONTROLLER_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_SETTINGS_NATIVE_APPS_COLLECTION_VIEW_CONTROLLER_H_ |
| 7 |
| 8 #import "ios/chrome/browser/storekit_launcher.h" |
| 9 #import "ios/chrome/browser/ui/settings/settings_root_collection_view_controller
.h" |
| 10 |
| 11 namespace net { |
| 12 class URLRequestContextGetter; |
| 13 } // namespace net |
| 14 |
| 15 // Settings view controller that displays the list of native apps that Chrome |
| 16 // can launch given a specific URL. From this view controller, native apps can |
| 17 // be installed if they are not present on the device. If they are present, a |
| 18 // switch lets the user opt-in to open automatically related links. |
| 19 // Icons for apps are static resources on a server and are therefore retrieved |
| 20 // and displayed asynchronously. |
| 21 @interface NativeAppsCollectionViewController |
| 22 : SettingsRootCollectionViewController<StoreKitLauncher> |
| 23 |
| 24 // Designated initializer. |requestContextGetter| is kept as a weak reference, |
| 25 // therefore must outlive the initialized instance. |
| 26 - (id)initWithURLRequestContextGetter: |
| 27 (net::URLRequestContextGetter*)requestContextGetter; |
| 28 |
| 29 @end |
| 30 |
| 31 #endif // IOS_CHROME_BROWSER_UI_SETTINGS_NATIVE_APPS_COLLECTION_VIEW_CONTROLLER
_H_ |
OLD | NEW |