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

Unified Diff: net/url_request/url_request_netlog_params.cc

Issue 11276050: Add upload identifier to URLRequest::Start net log event. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix unit test 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 | « net/url_request/url_request_netlog_params.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_netlog_params.cc
diff --git a/net/url_request/url_request_netlog_params.cc b/net/url_request/url_request_netlog_params.cc
index 67d44c34a400396f43081366a3959578fe4ea6ce..dbc535704962c037c80b86eeea6f0532978a6b84 100644
--- a/net/url_request/url_request_netlog_params.cc
+++ b/net/url_request/url_request_netlog_params.cc
@@ -4,6 +4,7 @@
#include "net/url_request/url_request_netlog_params.h"
+#include "base/string_number_conversions.h"
#include "base/values.h"
#include "googleurl/src/gurl.h"
@@ -13,12 +14,15 @@ Value* NetLogURLRequestStartCallback(const GURL* url,
const std::string* method,
int load_flags,
RequestPriority priority,
+ int64 upload_id,
NetLog::LogLevel /* log_level */) {
DictionaryValue* dict = new DictionaryValue();
dict->SetString("url", url->possibly_invalid_spec());
dict->SetString("method", *method);
dict->SetInteger("load_flags", load_flags);
dict->SetInteger("priority", static_cast<int>(priority));
+ if (upload_id > -1)
+ dict->SetString("upload_id", base::Int64ToString(upload_id));
return dict;
}
« no previous file with comments | « net/url_request/url_request_netlog_params.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698