Chromium Code Reviews| 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..9b050d6fab9c5dc95e774c6d68b3b5f1c647007e 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,10 @@ 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. |
| +- (id)initWithWebState:(web::WebState*)webState downloadURL:(const GURL&)url; |
|
sdefresne
2017/03/07 17:15:49
nit: can you use the opportunity you are changing
pkl (ping after 24h if needed)
2017/03/07 22:07:19
Done.
|
| // Starts loading the data for the file at the url passed into the |
| // initializer. This should only be called once, immediately after |