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

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

Issue 2334603002: Fix SSLUITest.TestBadHTTPSDownload with PlzNavigate. (Closed)
Patch Set: fix android temporarily Created 4 years, 3 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 fd1447bcadb280a1a9d0e014f8e74161ab5e39e1..620f58c70b21df02f92e2aeca6df3a673da193c7 100644
--- a/chrome/browser/android/intercept_download_resource_throttle.h
+++ b/chrome/browser/android/intercept_download_resource_throttle.h
@@ -7,6 +7,7 @@
#include "base/memory/weak_ptr.h"
#include "chrome/browser/android/download/download_controller_base.h"
+#include "content/public/browser/resource_request_info.h"
#include "content/public/browser/resource_throttle.h"
#include "net/cookies/cookie_store.h"
@@ -22,10 +23,10 @@ class InterceptDownloadResourceThrottle : public content::ResourceThrottle {
public:
static bool IsDownloadInterceptionEnabled();
- InterceptDownloadResourceThrottle(net::URLRequest* request,
- int render_process_id,
- int render_view_id,
- bool must_download);
+ InterceptDownloadResourceThrottle(
+ net::URLRequest* request,
+ const content::ResourceRequestInfo::WebContentsGetter& wc_getter,
+ bool must_download);
// content::ResourceThrottle implementation:
void WillProcessResponse(bool* defer) override;
@@ -40,8 +41,7 @@ class InterceptDownloadResourceThrottle : public content::ResourceThrottle {
// Set to true when if we want chrome to handle the download.
const net::URLRequest* request_;
- int render_process_id_;
- int render_view_id_;
+ content::ResourceRequestInfo::WebContentsGetter wc_getter_;
bool must_download_;
base::WeakPtrFactory<InterceptDownloadResourceThrottle> weak_factory_;

Powered by Google App Engine
This is Rietveld 408576698