| 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 c4e891ca660ed6e8f54de9aeccb4f3502be89b40..8d387556e58f51fb412227588ede4e4b18d63cdd 100644
|
| --- a/chrome/browser/android/intercept_download_resource_throttle.h
|
| +++ b/chrome/browser/android/intercept_download_resource_throttle.h
|
| @@ -5,9 +5,9 @@
|
| #ifndef CHROME_BROWSER_ANDROID_INTERCEPT_DOWNLOAD_RESOURCE_THROTTLE_H_
|
| #define CHROME_BROWSER_ANDROID_INTERCEPT_DOWNLOAD_RESOURCE_THROTTLE_H_
|
|
|
| -#include "base/compiler_specific.h"
|
| -#include "base/macros.h"
|
| +#include "chrome/browser/android/download/download_controller_base.h"
|
| #include "content/public/browser/resource_throttle.h"
|
| +#include "net/cookies/cookie_store.h"
|
|
|
| namespace net {
|
| class URLRequest;
|
| @@ -24,7 +24,6 @@ class InterceptDownloadResourceThrottle : public content::ResourceThrottle {
|
| InterceptDownloadResourceThrottle(net::URLRequest* request,
|
| int render_process_id,
|
| int render_view_id,
|
| - int request_id,
|
| bool must_download);
|
|
|
| // content::ResourceThrottle implementation:
|
| @@ -35,11 +34,24 @@ class InterceptDownloadResourceThrottle : public content::ResourceThrottle {
|
| ~InterceptDownloadResourceThrottle() override;
|
|
|
| void ProcessDownloadRequest();
|
| +
|
| + typedef base::Callback<void(const DownloadInfo&)>
|
| + StartDownloadCB;
|
| +
|
| + void CheckCookiePolicy(const DownloadInfo& info,
|
| + const StartDownloadCB& callback,
|
| + const net::CookieList& cookie_list);
|
| + void DoLoadCookies(const DownloadInfo& info,
|
| + const StartDownloadCB& callback);
|
| + void OnCookieResponse(DownloadInfo info,
|
| + const StartDownloadCB& callback,
|
| + const std::string& cookie);
|
| + void StartDownload(const DownloadInfo& info);
|
| +
|
| // Set to true when if we want chrome to handle the download.
|
| const net::URLRequest* request_;
|
| int render_process_id_;
|
| int render_view_id_;
|
| - int request_id_;
|
| bool must_download_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(InterceptDownloadResourceThrottle);
|
|
|