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

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

Issue 11150027: Handle the case where IAttachmentExecute::Save() deletes a downloaded file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
Index: content/browser/download/download_net_log_parameters.cc
diff --git a/content/browser/download/download_net_log_parameters.cc b/content/browser/download/download_net_log_parameters.cc
index 00a9d5dee77393c8b9ea9ad0bdbe5a5da2330a8f..53738eb40f7617838045a7ed4643c571bf619b5e 100644
--- a/content/browser/download/download_net_log_parameters.cc
+++ b/content/browser/download/download_net_log_parameters.cc
@@ -183,4 +183,15 @@ base::Value* FileErrorCallback(const char* operation,
return dict;
}
+base::Value* AnnotateWithSourceCallback(int os_error,
+ net::Error net_error,
+ net::NetLog::LogLevel /* log level */) {
+ DictionaryValue* dict = new DictionaryValue();
+
+ dict->SetInteger("os_error", os_error);
+ dict->SetInteger("net_error", net_error);
+
+ return dict;
+}
+
} // namespace download_net_logs

Powered by Google App Engine
This is Rietveld 408576698