diff options
author | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-19 11:33:16 +0000 |
---|---|---|
committer | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-19 11:33:16 +0000 |
commit | 54e981d2ed56b5becca0dcbd6d2f13503f0bfc01 (patch) | |
tree | d51bc727330a4f901794b3bec8657c138d4d72b6 /chrome/common/render_messages.cc | |
parent | f681c78a89e758ff1255708569fd6562af28b574 (diff) | |
download | chromium_src-54e981d2ed56b5becca0dcbd6d2f13503f0bfc01.zip chromium_src-54e981d2ed56b5becca0dcbd6d2f13503f0bfc01.tar.gz chromium_src-54e981d2ed56b5becca0dcbd6d2f13503f0bfc01.tar.bz2 |
DevTools: provide response code and status text as a part of raw headers data.
BUG=44867
TEST=
Review URL: http://codereview.chromium.org/5106002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66763 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/render_messages.cc')
-rw-r--r-- | chrome/common/render_messages.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/common/render_messages.cc b/chrome/common/render_messages.cc index e6d3126..0ee8841 100644 --- a/chrome/common/render_messages.cc +++ b/chrome/common/render_messages.cc @@ -428,6 +428,8 @@ void ParamTraits<scoped_refptr<webkit_glue::ResourceDevToolsInfo> >::Write( Message* m, const param_type& p) { WriteParam(m, p.get() != NULL); if (p.get()) { + WriteParam(m, p->http_status_code); + WriteParam(m, p->http_status_text); WriteParam(m, p->request_headers); WriteParam(m, p->response_headers); } @@ -442,6 +444,8 @@ bool ParamTraits<scoped_refptr<webkit_glue::ResourceDevToolsInfo> >::Read( return true; *r = new webkit_glue::ResourceDevToolsInfo(); return + ReadParam(m, iter, &(*r)->http_status_code) && + ReadParam(m, iter, &(*r)->http_status_text) && ReadParam(m, iter, &(*r)->request_headers) && ReadParam(m, iter, &(*r)->response_headers); } |