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

Unified Diff: content/public/browser/download_url_parameters.h

Issue 11068027: OnDownloadStarted takes DownloadItem* instead of DownloadId (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: @r160830 Created 8 years, 2 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
« no previous file with comments | « content/public/browser/download_manager.h ('k') | content/public/browser/resource_dispatcher_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/browser/download_url_parameters.h
diff --git a/content/public/browser/download_url_parameters.h b/content/public/browser/download_url_parameters.h
index 7df92ff3aee718b34557016a88f2f75c3f8d1cb0..6a319487deda2f422f647f0eb5247577944b5bcd 100644
--- a/content/public/browser/download_url_parameters.h
+++ b/content/public/browser/download_url_parameters.h
@@ -10,7 +10,6 @@
#include "base/basictypes.h"
#include "base/callback.h"
-#include "content/public/browser/download_id.h"
#include "content/public/browser/download_save_info.h"
#include "content/public/common/referrer.h"
#include "googleurl/src/gurl.h"
@@ -18,6 +17,7 @@
namespace content {
+class DownloadItem;
class ResourceContext;
class ResourceDispatcherHost;
class WebContents;
@@ -38,8 +38,8 @@ class WebContents;
class CONTENT_EXPORT DownloadUrlParameters {
public:
- // The DownloadId will be invalid if-and-only-if there is an error.
- typedef base::Callback<void(DownloadId, net::Error)> OnStartedCallback;
+ // If there is an error, then |item| will be NULL.
+ typedef base::Callback<void(DownloadItem*, net::Error)> OnStartedCallback;
typedef std::pair<std::string, std::string> RequestHeadersNameValuePair;
typedef std::vector<RequestHeadersNameValuePair> RequestHeadersType;
« no previous file with comments | « content/public/browser/download_manager.h ('k') | content/public/browser/resource_dispatcher_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698