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

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

Issue 6459005: Cancel prerender when we discover a download starting from a page we are prer... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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
Index: chrome/browser/renderer_host/download_throttling_resource_handler.cc
===================================================================
--- chrome/browser/renderer_host/download_throttling_resource_handler.cc (revision 74962)
+++ chrome/browser/renderer_host/download_throttling_resource_handler.cc (working copy)
@@ -5,6 +5,7 @@
#include "chrome/browser/renderer_host/download_throttling_resource_handler.h"
#include "base/logging.h"
+#include "chrome/browser/download/download_util.h"
#include "chrome/browser/renderer_host/download_resource_handler.h"
#include "chrome/browser/renderer_host/resource_dispatcher_host.h"
#include "chrome/common/resource_response.h"
@@ -31,8 +32,13 @@
host_->PauseRequest(render_process_host_id_, request_id_, true);
host_->download_request_limiter()->CanDownloadOnIOThread(
render_process_host_id_, render_view_id, this);
- }
+ BrowserThread::PostTask(
+ BrowserThread::UI, FROM_HERE,
+ NewRunnableFunction(&download_util::NotifyDownloadInitiated,
+ render_process_host_id_, render_view_id_));
+}
+
DownloadThrottlingResourceHandler::~DownloadThrottlingResourceHandler() {
}
« no previous file with comments | « chrome/browser/prerender/prerender_final_status.h ('k') | chrome/browser/renderer_host/resource_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698