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

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

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: Adding browser test 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.h
===================================================================
--- chrome/browser/renderer_host/download_throttling_resource_handler.h (revision 74194)
+++ chrome/browser/renderer_host/download_throttling_resource_handler.h (working copy)
@@ -10,10 +10,12 @@
#include "chrome/browser/download/download_request_limiter.h"
#include "chrome/browser/renderer_host/resource_handler.h"
+#include "chrome/common/notification_type.h"
#include "googleurl/src/gurl.h"
class DownloadResourceHandler;
class ResourceDispatcherHost;
+class ResourceRequestDetails;
namespace net {
class URLRequest;
@@ -65,6 +67,12 @@
void CopyTmpBufferToDownloadHandler();
+ ResourceRequestDetails* GetResourceRequestDetails();
+
+ template<NotificationType::Type T>
cbentzel 2011/02/09 12:11:14 Move this into .cc file and put in anonymous names
dominich 2011/02/09 22:33:30 I was following the pattern established in the Res
dominich 2011/02/09 22:33:30 Done.
+ static void NotifyOnUI(int process_id, int view_id,
+ ResourceRequestDetails* details);
+
ResourceDispatcherHost* host_;
net::URLRequest* request_;
GURL url_;

Powered by Google App Engine
This is Rietveld 408576698