diff options
Diffstat (limited to 'content/public/browser/resource_dispatcher_host.h')
-rw-r--r-- | content/public/browser/resource_dispatcher_host.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/content/public/browser/resource_dispatcher_host.h b/content/public/browser/resource_dispatcher_host.h index 1eb4c44..030dd75 100644 --- a/content/public/browser/resource_dispatcher_host.h +++ b/content/public/browser/resource_dispatcher_host.h @@ -37,9 +37,12 @@ class CONTENT_EXPORT ResourceDispatcherHost { // Initiates a download by explicit request of the renderer, e.g. due to // alt-clicking a link. If the download is started, |started_callback| will // be called on the UI thread with the DownloadId; otherwise an error code - // will be returned. + // will be returned. |is_content_initiated| is used to indicate that + // the request was generated from a web page, and hence may not be + // as trustworthy as a browser generated request. virtual net::Error BeginDownload( scoped_ptr<net::URLRequest> request, + bool is_content_initiated, ResourceContext* context, int child_id, int route_id, |