diff options
author | cbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-04 18:14:15 +0000 |
---|---|---|
committer | cbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-04 18:14:15 +0000 |
commit | 815d63d9f1c68ffa056ad2c2c8fee34f0d0b70b8 (patch) | |
tree | 21a4f80d542cc40f09576ca16010b22bf6e8884e /net/spdy | |
parent | a4bb001e1a5a666b10f27d4c2b3c1f24c715306e (diff) | |
download | chromium_src-815d63d9f1c68ffa056ad2c2c8fee34f0d0b70b8.zip chromium_src-815d63d9f1c68ffa056ad2c2c8fee34f0d0b70b8.tar.gz chromium_src-815d63d9f1c68ffa056ad2c2c8fee34f0d0b70b8.tar.bz2 |
Adds an option, enabled by default, to net-internals to
remove cookies from log dumps. Also, SPDY headers are now
displayed (And stored) just like http ones. Cookies are
always shown on the Requests page.
As an added bonus, removes a superfluous </b> from index.html.
Contributed by: mmenke@google.com
BUG= 50668
TEST= Go to about:net-internals, and check for
properly hiding cookies for both HTTP and SPDY,
for both sent and received cookies.
Review URL: http://codereview.chromium.org/3072013
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54932 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/spdy')
-rw-r--r-- | net/spdy/spdy_session.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/net/spdy/spdy_session.cc b/net/spdy/spdy_session.cc index 46e2273..1df0afa 100644 --- a/net/spdy/spdy_session.cc +++ b/net/spdy/spdy_session.cc @@ -84,13 +84,15 @@ class NetLogSpdySynParameter : public NetLog::EventParameters { Value* ToValue() const { DictionaryValue* dict = new DictionaryValue(); - DictionaryValue* headers_dict = new DictionaryValue(); + ListValue* headers_list = new ListValue(); for (spdy::SpdyHeaderBlock::const_iterator it = headers_->begin(); it != headers_->end(); ++it) { - headers_dict->SetString(it->first, it->second); + headers_list->Append(new StringValue(StringPrintf("%s: %s", + it->first.c_str(), + it->second.c_str()))); } dict->SetInteger("flags", flags_); - dict->Set("headers", headers_dict); + dict->Set("headers", headers_list); dict->SetInteger("id", id_); return dict; } |