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

Unified Diff: content/browser/download/download_file_manager.h

Issue 8369005: Fix a bug where putting a laptop to sleep causes downloads to end normally. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 | « no previous file | content/browser/download/download_file_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/download/download_file_manager.h
diff --git a/content/browser/download/download_file_manager.h b/content/browser/download/download_file_manager.h
index 715d7916224bf6b6615d617c57257e8b47a6326d..9ee8b978d1b9e8781ff903bf0430ab2600fa3812 100644
--- a/content/browser/download/download_file_manager.h
+++ b/content/browser/download/download_file_manager.h
@@ -50,6 +50,7 @@
#include "base/timer.h"
#include "content/browser/download/download_id.h"
#include "content/browser/download/download_request_handle.h"
+#include "content/browser/download/interrupt_reasons.h"
#include "content/common/content_export.h"
#include "net/base/net_errors.h"
#include "ui/gfx/native_widget_types.h"
@@ -86,13 +87,13 @@ class CONTENT_EXPORT DownloadFileManager
// FILE thread.
void UpdateDownload(DownloadId global_id, content::DownloadBuffer* buffer);
- // |net_error| is 0 for normal completions, and non-0 for errors.
+ // |reason| is the reason for interruption, if one occurs.
// |security_info| contains SSL information (cert_id, cert_status,
// security_bits, ssl_connection_status), which can be used to
// fine-tune the error message. It is empty if the transaction
// was not performed securely.
void OnResponseCompleted(DownloadId global_id,
- net::Error net_error,
+ InterruptReason reason,
const std::string& security_info);
// Handlers for notifications sent from the UI thread and run on the
« no previous file with comments | « no previous file | content/browser/download/download_file_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698