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

Unified Diff: chrome/browser/android/intercept_download_resource_throttle.h

Issue 1854523002: If a download is initiated by download attribute, don't use stream viewer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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: chrome/browser/android/intercept_download_resource_throttle.h
diff --git a/chrome/browser/android/intercept_download_resource_throttle.h b/chrome/browser/android/intercept_download_resource_throttle.h
index 12123c31be6830543299f97508a011d66e7440f1..c4e891ca660ed6e8f54de9aeccb4f3502be89b40 100644
--- a/chrome/browser/android/intercept_download_resource_throttle.h
+++ b/chrome/browser/android/intercept_download_resource_throttle.h
@@ -24,7 +24,8 @@ class InterceptDownloadResourceThrottle : public content::ResourceThrottle {
InterceptDownloadResourceThrottle(net::URLRequest* request,
int render_process_id,
int render_view_id,
- int request_id);
+ int request_id,
+ bool must_download);
// content::ResourceThrottle implementation:
void WillProcessResponse(bool* defer) override;
@@ -39,6 +40,7 @@ class InterceptDownloadResourceThrottle : public content::ResourceThrottle {
int render_process_id_;
int render_view_id_;
int request_id_;
+ bool must_download_;
DISALLOW_COPY_AND_ASSIGN(InterceptDownloadResourceThrottle);
};

Powered by Google App Engine
This is Rietveld 408576698