summaryrefslogtreecommitdiffstats
path: root/content/browser/download/download_resource_handler.h
diff options
context:
space:
mode:
authorahendrickson@chromium.org <ahendrickson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-12 22:51:33 +0000
committerahendrickson@chromium.org <ahendrickson@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-12 22:51:33 +0000
commit89e6aa7ae672b643dbfdf45d2e77ab9f2869ae5e (patch)
tree67eb10a9c32facd35a41486b65b791f92b0fe390 /content/browser/download/download_resource_handler.h
parent9a9ab7d35bd9ac77530f99414205a48c05310a0c (diff)
downloadchromium_src-89e6aa7ae672b643dbfdf45d2e77ab9f2869ae5e.zip
chromium_src-89e6aa7ae672b643dbfdf45d2e77ab9f2869ae5e.tar.gz
chromium_src-89e6aa7ae672b643dbfdf45d2e77ab9f2869ae5e.tar.bz2
Added callback to DownloadUrl() so we can find download failures where the download item isn't created at all.
Added observer class for browser tests, which uses the callback. BUG=117033 TEST=None Review URL: http://codereview.chromium.org/9570005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@126251 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/browser/download/download_resource_handler.h')
-rw-r--r--content/browser/download/download_resource_handler.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/content/browser/download/download_resource_handler.h b/content/browser/download/download_resource_handler.h
index 5b9c708..042a6ed 100644
--- a/content/browser/download/download_resource_handler.h
+++ b/content/browser/download/download_resource_handler.h
@@ -13,6 +13,7 @@
#include "base/timer.h"
#include "content/browser/download/download_types.h"
#include "content/browser/renderer_host/resource_handler.h"
+#include "content/public/browser/download_manager.h"
#include "content/public/browser/download_id.h"
#include "content/public/browser/global_request_id.h"
#include "net/base/net_errors.h"
@@ -32,8 +33,7 @@ class URLRequest;
// Forwards data to the download thread.
class DownloadResourceHandler : public ResourceHandler {
public:
- typedef base::Callback<void(content::DownloadId, net::Error)>
- OnStartedCallback;
+ typedef content::DownloadManager::OnStartedCallback OnStartedCallback;
static const size_t kLoadsToWrite = 100; // number of data buffers queued