| Index: chrome/browser/download/download_resource_throttle.h
|
| diff --git a/chrome/browser/download/download_resource_throttle.h b/chrome/browser/download/download_resource_throttle.h
|
| index 4218c6aab25fdeb30c1daf4ce3fa7f58bd8eedc2..292848cd2f2c43cbf6effee660f0dda710576083 100644
|
| --- a/chrome/browser/download/download_resource_throttle.h
|
| +++ b/chrome/browser/download/download_resource_throttle.h
|
| @@ -26,16 +26,14 @@ class DownloadResourceThrottle
|
| struct DownloadRequestInfo {
|
| DownloadRequestInfo(
|
| scoped_refptr<DownloadRequestLimiter> limiter,
|
| - int render_process_id,
|
| - int render_view_id,
|
| + const base::Callback<content::WebContents*(void)>& web_contents_getter,
|
| const GURL& url,
|
| const std::string& request_method,
|
| const DownloadRequestLimiter::Callback& continue_callback);
|
| ~DownloadRequestInfo();
|
|
|
| scoped_refptr<DownloadRequestLimiter> limiter;
|
| - int render_process_id;
|
| - int render_view_id;
|
| + base::Callback<content::WebContents*(void)> web_contents_getter;
|
| GURL url;
|
| std::string request_method;
|
| DownloadRequestLimiter::Callback continue_callback;
|
| @@ -43,11 +41,11 @@ class DownloadResourceThrottle
|
| DISALLOW_COPY_AND_ASSIGN(DownloadRequestInfo);
|
| };
|
|
|
| - DownloadResourceThrottle(scoped_refptr<DownloadRequestLimiter> limiter,
|
| - int render_process_id,
|
| - int render_view_id,
|
| - const GURL& url,
|
| - const std::string& request_method);
|
| + DownloadResourceThrottle(
|
| + scoped_refptr<DownloadRequestLimiter> limiter,
|
| + const base::Callback<content::WebContents*(void)>& web_contents_getter,
|
| + const GURL& url,
|
| + const std::string& request_method);
|
|
|
| // content::ResourceThrottle implementation:
|
| void WillStartRequest(bool* defer) override;
|
|
|