summaryrefslogtreecommitdiffstats
path: root/net/base/net_log.cc
diff options
context:
space:
mode:
authormmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-18 18:01:15 +0000
committermmenke@chromium.org <mmenke@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-18 18:01:15 +0000
commit2bb044402ba016977b58014a22b0631ab7ed605d (patch)
tree6e85bb65048d4b262b6bb4e1d6d0e418957b857d /net/base/net_log.cc
parent8748bdf9fe94b62e76e7adf7fac9af7dfd9c0ca3 (diff)
downloadchromium_src-2bb044402ba016977b58014a22b0631ab7ed605d.zip
chromium_src-2bb044402ba016977b58014a22b0631ab7ed605d.tar.gz
chromium_src-2bb044402ba016977b58014a22b0631ab7ed605d.tar.bz2
Revert 56539 - Added HostResolveImpl Requests and Jobs to log.
ConnectJobs point to the requests, Requests point back to ConnectJobs and to the DNS lookup they were attached to, if any. Also CONNECT_JOBs are now identified by their host/port on the Requests list. BUG= 46844 TEST= Look at the net-internals screen. Review URL: http://codereview.chromium.org/3080034 TBR=eroman@chromium.org Review URL: http://codereview.chromium.org/3137022 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56556 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/net_log.cc')
-rw-r--r--net/base/net_log.cc13
1 files changed, 5 insertions, 8 deletions
diff --git a/net/base/net_log.cc b/net/base/net_log.cc
index c91306c..adf8381 100644
--- a/net/base/net_log.cc
+++ b/net/base/net_log.cc
@@ -11,13 +11,6 @@
namespace net {
-Value* NetLog::Source::ToValue() const {
- DictionaryValue* dict = new DictionaryValue();
- dict->SetInteger("type", static_cast<int>(type));
- dict->SetInteger("id", static_cast<int>(id));
- return dict;
-}
-
// static
const char* NetLog::EventTypeToString(EventType event) {
switch (event) {
@@ -176,7 +169,11 @@ Value* NetLogStringParameter::ToValue() const {
Value* NetLogSourceParameter::ToValue() const {
DictionaryValue* dict = new DictionaryValue();
- dict->Set(name_, value_.ToValue());
+ DictionaryValue* source_dict = new DictionaryValue();
+ source_dict->SetInteger("type", static_cast<int>(value_.type));
+ source_dict->SetInteger("id", static_cast<int>(value_.id));
+
+ dict->Set(name_, source_dict);
return dict;
}