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

Unified Diff: chrome/browser/renderer_host/download_throttling_resource_handler.h

Issue 6713008: Don't destroy a request while it is being processed (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: . Created 9 years, 9 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/renderer_host/download_throttling_resource_handler.h
diff --git a/chrome/browser/renderer_host/download_throttling_resource_handler.h b/chrome/browser/renderer_host/download_throttling_resource_handler.h
index 4e10c0dff4b23eb98149745c4392f9b0ddc45d4b..1fab3eaf01f9145dfe2b3925f67114b8f4f57858 100644
--- a/chrome/browser/renderer_host/download_throttling_resource_handler.h
+++ b/chrome/browser/renderer_host/download_throttling_resource_handler.h
@@ -58,7 +58,6 @@ class DownloadThrottlingResourceHandler
// DownloadRequestLimiter::Callback implementation:
virtual void CancelDownload();
virtual void ContinueDownload();
- virtual int GetRequestId();
private:
virtual ~DownloadThrottlingResourceHandler();
@@ -91,6 +90,10 @@ class DownloadThrottlingResourceHandler
// we ignore one of them.
bool ignore_on_read_complete_;
+ // Have we received OnRequestClosed()? If so, we shouldn't act on
+ // CancelDownload()/ContinueDownload().
+ bool request_closed_;
+
DISALLOW_COPY_AND_ASSIGN(DownloadThrottlingResourceHandler);
};

Powered by Google App Engine
This is Rietveld 408576698