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

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

Issue 2014803002: Move DownloadControllerAndroid from content/ to chrome/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: removed deprecated cookie apis Created 4 years, 6 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 c4e891ca660ed6e8f54de9aeccb4f3502be89b40..0635297680bcaff5034eaff49c584245d13e158f 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:
@@ -34,13 +33,18 @@ class InterceptDownloadResourceThrottle : public content::ResourceThrottle {
private:
~InterceptDownloadResourceThrottle() override;
- void ProcessDownloadRequest();
+ void ProcessDownloadRequest(bool* defer);
+ void CheckCookiePolicy(const net::CookieList& cookie_list);
+ void ResumeDeferredRequest();
+ 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_;
+ bool cookie_completed_;
+ std::string cookie_;
DISALLOW_COPY_AND_ASSIGN(InterceptDownloadResourceThrottle);
};

Powered by Google App Engine
This is Rietveld 408576698