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

Unified Diff: chrome/browser/extensions/api/image_writer_private/write_from_url_operation.h

Issue 114193009: [Download] Return DownloadInterruptReason from OnStartedCallback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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/extensions/api/image_writer_private/write_from_url_operation.h
diff --git a/chrome/browser/extensions/api/image_writer_private/write_from_url_operation.h b/chrome/browser/extensions/api/image_writer_private/write_from_url_operation.h
index 95e55749b32a8db37666054e6aba7ac3e6c3b2cb..ee2374c3f0fff3223aa1d0ce52fc6052b6f306b0 100644
--- a/chrome/browser/extensions/api/image_writer_private/write_from_url_operation.h
+++ b/chrome/browser/extensions/api/image_writer_private/write_from_url_operation.h
@@ -7,8 +7,8 @@
#include "base/scoped_observer.h"
#include "chrome/browser/extensions/api/image_writer_private/operation.h"
+#include "content/public/browser/download_interrupt_reasons.h"
#include "content/public/browser/download_item.h"
-#include "net/base/net_errors.h"
#include "url/gurl.h"
namespace content {
@@ -39,7 +39,8 @@ class WriteFromUrlOperation : public Operation,
void CreateTempFile();
void DownloadStart();
- void OnDownloadStarted(content::DownloadItem*, net::Error);
+ void OnDownloadStarted(content::DownloadItem*,
+ content::DownloadInterruptReason interrupt_reason);
virtual void OnDownloadUpdated(content::DownloadItem* download) OVERRIDE;
void DownloadComplete();
void DownloadCleanUp();

Powered by Google App Engine
This is Rietveld 408576698