Chromium Code Reviews| Index: ios/chrome/browser/reading_list/url_downloader.h |
| diff --git a/ios/chrome/browser/reading_list/url_downloader.h b/ios/chrome/browser/reading_list/url_downloader.h |
| index 3ed0dc7426311a806220b7043c1782a18a9cfb2c..020a4124e2e4d8db785881521ab461504123baa0 100644 |
| --- a/ios/chrome/browser/reading_list/url_downloader.h |
| +++ b/ios/chrome/browser/reading_list/url_downloader.h |
| @@ -54,6 +54,7 @@ class URLDownloader { |
| // The path to downloaded file and title should not be used in case of |
| // failure. |
| using DownloadCompletion = base::Callback<void(const GURL&, |
| + const GURL&, |
| SuccessState, |
| const base::FilePath&, |
| const std::string&)>; |
|
noyau (Ping after 24h)
2017/01/20 15:52:17
Please update comment for the new argument
Olivier
2017/01/20 16:17:34
Done.
|
| @@ -131,6 +132,9 @@ class URLDownloader { |
| images, |
| const std::string& title); |
| + // A callback called if the URL passed to the distilled led to a redirection. |
| + void RedirectionCallback(const GURL& page_url, const GURL& redirected_url); |
| + |
| dom_distiller::DomDistillerService* distiller_service_; |
| reading_list::ReadingListDistillerPageFactory* distiller_page_factory_; |
| PrefService* pref_service_; |
| @@ -139,6 +143,8 @@ class URLDownloader { |
| std::deque<Task> tasks_; |
| bool working_; |
| base::FilePath base_directory_; |
| + GURL original_url_; |
| + GURL distilled_url_; |
| std::unique_ptr<dom_distiller::DistillerViewerInterface> distiller_; |
| base::CancelableTaskTracker task_tracker_; |