Index: content/browser/renderer_host/resource_dispatcher_host_delegate.h |
diff --git a/content/browser/renderer_host/resource_dispatcher_host_delegate.h b/content/browser/renderer_host/resource_dispatcher_host_delegate.h |
index 4e1e00cb03d308f04f47f4ec23a8247977161f6d..0aee39aefa3c1369441c4a6dfe13b4a1ac7dc62b 100644 |
--- a/content/browser/renderer_host/resource_dispatcher_host_delegate.h |
+++ b/content/browser/renderer_host/resource_dispatcher_host_delegate.h |
@@ -83,6 +83,11 @@ class ResourceDispatcherHostDelegate { |
int child_id, |
int route_id); |
+ // Returns true if we should force the given resource to be downloaded. |
+ // Otherwise, the content layer decides. |
+ virtual bool ShouldForceDownloadResource( |
+ const GURL& url, const std::string& mime_type); |
+ |
protected: |
ResourceDispatcherHostDelegate(); |
virtual ~ResourceDispatcherHostDelegate(); |