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

Unified Diff: ios/chrome/browser/ui/downloads/download_manager_controller.h

Issue 2740473002: DownloadManagerController now uses WebState (Closed)
Patch Set: handles nil StoreKitTabHelper 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 side-by-side diff with in-line comments
Download patch
Index: ios/chrome/browser/ui/downloads/download_manager_controller.h
diff --git a/ios/chrome/browser/ui/downloads/download_manager_controller.h b/ios/chrome/browser/ui/downloads/download_manager_controller.h
index cd5af4a61019ba77adddc752f6f6d47d5df11122..ddb97a6c8b8c61bb54a4933bb8691708a46720b9 100644
--- a/ios/chrome/browser/ui/downloads/download_manager_controller.h
+++ b/ios/chrome/browser/ui/downloads/download_manager_controller.h
@@ -9,11 +9,9 @@
#import "ios/chrome/browser/ui/native_content_controller.h"
-@protocol StoreKitLauncher;
-
-namespace net {
-class URLRequestContextGetter;
-}
+namespace web {
+class WebState;
+} // namespace web
// This controller shows the native download manager. It shows the user basic
// information about the file (namely its type, size, and name), and gives them
@@ -23,13 +21,11 @@ class URLRequestContextGetter;
@interface DownloadManagerController
: NativeContentController<UIDocumentInteractionControllerDelegate>
-// Initializes a controller for content from |url|, using
-// |requestContextGetter| for all requests necessary to download the file.
-// |storeLauncher| is used to open a controller that allows the user to
-// install Google Drive if they don't have it installed.
-- (id)initWithURL:(const GURL&)url
- requestContextGetter:(net::URLRequestContextGetter*)requestContextGetter
- storeKitLauncher:(id<StoreKitLauncher>)storeLauncher;
+// Initializes a controller for content from |url| using |webState| to provide
+// the context to open a controller that allows the user to install Google Drive
+// if they don't have it installed.
+- (instancetype)initWithWebState:(web::WebState*)webState
+ downloadURL:(const GURL&)url;
// Starts loading the data for the file at the url passed into the
// initializer. This should only be called once, immediately after
« no previous file with comments | « ios/chrome/browser/ui/downloads/BUILD.gn ('k') | ios/chrome/browser/ui/downloads/download_manager_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698