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

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

Issue 11571025: Initial CL for Downloads resumption. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporated Pawel's comment. Created 7 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: content/browser/download/download_net_log_parameters.h
diff --git a/content/browser/download/download_net_log_parameters.h b/content/browser/download/download_net_log_parameters.h
index 6461fcea52f27fefe1e27b4de3b04c815c805db1..c8d634435bbae6b202560978a95e896d4f27086e 100644
--- a/content/browser/download/download_net_log_parameters.h
+++ b/content/browser/download/download_net_log_parameters.h
@@ -17,7 +17,7 @@ class GURL;
namespace content {
enum DownloadType {
- SRC_NEW_DOWNLOAD,
+ SRC_ACTIVE_DOWNLOAD,
SRC_HISTORY_IMPORT,
SRC_SAVE_PAGE_AS
};
@@ -46,6 +46,13 @@ base::Value* ItemInterruptedNetLogCallback(DownloadInterruptReason reason,
const std::string* hash_state,
net::NetLog::LogLevel log_level);
+// Returns NetLog parameters when a DownloadItem is resumed.
+base::Value* ItemResumingNetLogCallback(bool user_initiated,
+ DownloadInterruptReason reason,
+ int64 bytes_so_far,
+ const std::string* hash_state,
+ net::NetLog::LogLevel log_level);
+
// Returns NetLog parameters when a DownloadItem is completing.
base::Value* ItemCompletingNetLogCallback(int64 bytes_so_far,
const std::string* final_hash,
« no previous file with comments | « content/browser/download/download_manager_impl_unittest.cc ('k') | content/browser/download/download_net_log_parameters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698