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

Unified Diff: chrome/browser/download/download_resource_throttle.h

Issue 9522006: Make DownloadResourceThrottle robust to ContinueDownload being called before (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/download/download_resource_throttle.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_resource_throttle.h
===================================================================
--- chrome/browser/download/download_resource_throttle.h (revision 123743)
+++ chrome/browser/download/download_resource_throttle.h (working copy)
@@ -36,8 +36,12 @@
private:
virtual ~DownloadResourceThrottle();
+ void WillDownload(bool* defer);
void ContinueDownload(bool allow);
+ // Set to true when we are querying the DownloadRequestLimiter.
+ bool querying_limiter_;
+
// Set to true when we know that the request is allowed to start.
bool request_allowed_;
« no previous file with comments | « no previous file | chrome/browser/download/download_resource_throttle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698