Add histogram for HTTP response codes
Add histogram for HTTP response codes

This adds an histogram to the HTTP response header parser.  I reviewed
the code, and I've convinced myself that this captures the two main
cases of HTTP header parsing (tunneling, and normal HTTP), and that
double-calls aren't occuring.  I liked having all the code in the one
translation unit.  But, I might have missed one, and we might still
be getting called twice for the same load: so the statistics might be off.

Alternatively, I could put a static function on HttpResponseHeader, to
be called from the site of parse.  But this might miss a parse.

All in all, I wanted to be sure to catch all distinct response codes
we get, so we can be sure not to stomp on anything.  So I chose the
approach using the HttpResponseHeaders constructor.

TEST=none
BUG=70428

Review URL: http://codereview.chromium.org/6317011

git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@72801 0039d316-1c4b-4281-b951-d872f2087c98

Just-D/chromium-1,pozdnyakov/chromium-crosswalk,Just-D/chromium-1,chuan9/chromium-crosswalk,mogoweb/chromium-crosswalk,patrickm/chromium.src,fujunwei/chromium-crosswalk,ltilve/chromium,keishi/chromium,mogoweb/chromium-crosswalk,dushu1203/chromium.src,timopulkkinen/BubbleFish,zcbenz/cefode-chromium,dednal/chromium.src,Chilledheart/chromium,M4sse/chromium.src,ltilve/chromium,mogoweb/chromium-crosswalk,Fireblend/chromium-crosswalk,ChromiumWebApps/chromium,littlstar/chromium.src,dednal/chromium.src,ChromiumWebApps/chromium,mohamed--abdel-maksoud/chromium.src,jaruba/chromium.src,dednal/chromium.src,mohamed--abdel-maksoud/chromium.src,PeterWangIntel/chromium-crosswalk,robclark/chromium,patrickm/chromium.src,Pluto-tv/chromium-crosswalk,pozdnyakov/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,dednal/chromium.src,axinging/chromium-crosswalk,anirudhSK/chromium,robclark/chromium,rogerwang/chromium,crosswalk-project/chromium-crosswalk-efl,ondra-novak/chromium.src,PeterWangIntel/chromium-crosswalk,markYoungH/chromium.src,hgl888/chromium-crosswalk,chuan9/chromium-crosswalk,timopulkkinen/BubbleFish,anirudhSK/chromium,nacl-webkit/chrome_deps,axinging/chromium-crosswalk,M4sse/chromium.src,patrickm/chromium.src,bright-sparks/chromium-spacewalk,littlstar/chromium.src,chuan9/chromium-crosswalk,mogoweb/chromium-crosswalk,zcbenz/cefode-chromium,Pluto-tv/chromium-crosswalk,junmin-zhu/chromium-rivertrail,fujunwei/chromium-crosswalk,nacl-webkit/chrome_deps,mogoweb/chromium-crosswalk,mogoweb/chromium-crosswalk,rogerwang/chromium,bright-sparks/chromium-spacewalk,junmin-zhu/chromium-rivertrail,jaruba/chromium.src,axinging/chromium-crosswalk,timopulkkinen/BubbleFish,hujiajie/pa-chromium,littlstar/chromium.src,bright-sparks/chromium-spacewalk,anirudhSK/chromium,chuan9/chromium-crosswalk,anirudhSK/chromium,robclark/chromium,krieger-od/nwjs_chromium.src,hgl888/chromium-crosswalk-efl,junmin-zhu/chromium-rivertrail,dednal/chromium.src,mohamed--abdel-maksoud/chromium.src,nacl-webkit/chrome_deps,zcbenz/cefode-chromium,hujiajie/pa-chromium,rogerwang/chromium,keishi/chromium,M4sse/chromium.src,TheTypoMaster/chromium-crosswalk,zcbenz/cefode-chromium,zcbenz/cefode-chromium,jaruba/chromium.src,nacl-webkit/chrome_deps,fujunwei/chromium-crosswalk,fujunwei/chromium-crosswalk,ChromiumWebApps/chromium,anirudhSK/chromium,ChromiumWebApps/chromium,pozdnyakov/chromium-crosswalk,fujunwei/chromium-crosswalk,krieger-od/nwjs_chromium.src,markYoungH/chromium.src,axinging/chromium-crosswalk,zcbenz/cefode-chromium,robclark/chromium,dushu1203/chromium.src,M4sse/chromium.src,keishi/chromium,ChromiumWebApps/chromium,ltilve/chromium,Jonekee/chromium.src,crosswalk-project/chromium-crosswalk-efl,Chilledheart/chromium,keishi/chromium,Jonekee/chromium.src,fujunwei/chromium-crosswalk,pozdnyakov/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,Pluto-tv/chromium-crosswalk,Fireblend/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,TheTypoMaster/chromium-crosswalk,krieger-od/nwjs_chromium.src,anirudhSK/chromium,mohamed--abdel-maksoud/chromium.src,keishi/chromium,robclark/chromium,keishi/chromium,Chilledheart/chromium,chuan9/chromium-crosswalk,Just-D/chromium-1,bright-sparks/chromium-spacewalk,TheTypoMaster/chromium-crosswalk,M4sse/chromium.src,Pluto-tv/chromium-crosswalk,PeterWangIntel/chromium-crosswalk,hgl888/chromium-crosswalk,patrickm/chromium.src,hgl888/chromium-crosswalk,littlstar/chromium.src,PeterWangIntel/chromium-crosswalk,hujiajie/pa-chromium,dushu1203/chromium.src,ltilve/chromium,markYoungH/chromium.src,pozdnyakov/chromium-crosswalk,hgl888/chromium-crosswalk-efl,crosswalk-project/chromium-crosswalk-efl,Chilledheart/chromium,M4sse/chromium.src,PeterWangIntel/chromium-crosswalk,hgl888/chromium-crosswalk,mogoweb/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,ltilve/chromium,chuan9/chromium-crosswalk,axinging/chromium-crosswalk,Jonekee/chromium.src,Jonekee/chromium.src,krieger-od/nwjs_chromium.src,markYoungH/chromium.src,dushu1203/chromium.src,robclark/chromium,zcbenz/cefode-chromium,timopulkkinen/BubbleFish,Fireblend/chromium-crosswalk,ltilve/chromium,nacl-webkit/chrome_deps,pozdnyakov/chromium-crosswalk,hujiajie/pa-chromium,mogoweb/chromium-crosswalk,markYoungH/chromium.src,keishi/chromium,crosswalk-project/chromium-crosswalk-efl,Fireblend/chromium-crosswalk,krieger-od/nwjs_chromium.src,dushu1203/chromium.src,Just-D/chromium-1,Pluto-tv/chromium-crosswalk,fujunwei/chromium-crosswalk,fujunwei/chromium-crosswalk,ondra-novak/chromium.src,krieger-od/nwjs_chromium.src,markYoungH/chromium.src,ChromiumWebApps/chromium,rogerwang/chromium,junmin-zhu/chromium-rivertrail,ltilve/chromium,rogerwang/chromium,junmin-zhu/chromium-rivertrail,anirudhSK/chromium,robclark/chromium,hgl888/chromium-crosswalk-efl,Chilledheart/chromium,ltilve/chromium,dednal/chromium.src,krieger-od/nwjs_chromium.src,zcbenz/cefode-chromium,hgl888/chromium-crosswalk-efl,dushu1203/chromium.src,timopulkkinen/BubbleFish,rogerwang/chromium,zcbenz/cefode-chromium,ondra-novak/chromium.src,pozdnyakov/chromium-crosswalk,nacl-webkit/chrome_deps,mohamed--abdel-maksoud/chromium.src,littlstar/chromium.src,Just-D/chromium-1,bright-sparks/chromium-spacewalk,Jonekee/chromium.src,Jonekee/chromium.src,ondra-novak/chromium.src,mogoweb/chromium-crosswalk,keishi/chromium,jaruba/chromium.src,pozdnyakov/chromium-crosswalk,M4sse/chromium.src,Fireblend/chromium-crosswalk,nacl-webkit/chrome_deps,crosswalk-project/chromium-crosswalk-efl,littlstar/chromium.src,Just-D/chromium-1,axinging/chromium-crosswalk,junmin-zhu/chromium-rivertrail,Jonekee/chromium.src,timopulkkinen/BubbleFish,TheTypoMaster/chromium-crosswalk,Chilledheart/chromium,ChromiumWebApps/chromium,dednal/chromium.src,anirudhSK/chromium,timopulkkinen/BubbleFish,rogerwang/chromium,junmin-zhu/chromium-rivertrail,ondra-novak/chromium.src,junmin-zhu/chromium-rivertrail,timopulkkinen/BubbleFish,patrickm/chromium.src,axinging/chromium-crosswalk,jaruba/chromium.src,Fireblend/chromium-crosswalk,ChromiumWebApps/chromium,TheTypoMaster/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,bright-sparks/chromium-spacewalk,patrickm/chromium.src,markYoungH/chromium.src,hgl888/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,chuan9/chromium-crosswalk,anirudhSK/chromium,dushu1203/chromium.src,fujunwei/chromium-crosswalk,markYoungH/chromium.src,zcbenz/cefode-chromium,axinging/chromium-crosswalk,hgl888/chromium-crosswalk-efl,jaruba/chromium.src,pozdnyakov/chromium-crosswalk,TheTypoMaster/chromium-crosswalk,ondra-novak/chromium.src,ondra-novak/chromium.src,patrickm/chromium.src,nacl-webkit/chrome_deps,Fireblend/chromium-crosswalk,keishi/chromium,Chilledheart/chromium,dednal/chromium.src,axinging/chromium-crosswalk,hgl888/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,Fireblend/chromium-crosswalk,dushu1203/chromium.src,rogerwang/chromium,jaruba/chromium.src,hujiajie/pa-chromium,mohamed--abdel-maksoud/chromium.src,Pluto-tv/chromium-crosswalk,dushu1203/chromium.src,anirudhSK/chromium,Pluto-tv/chromium-crosswalk,Pluto-tv/chromium-crosswalk,hgl888/chromium-crosswalk,mohamed--abdel-maksoud/chromium.src,pozdnyakov/chromium-crosswalk,dushu1203/chromium.src,Jonekee/chromium.src,mogoweb/chromium-crosswalk,krieger-od/nwjs_chromium.src,mohamed--abdel-maksoud/chromium.src,Jonekee/chromium.src,ltilve/chromium,PeterWangIntel/chromium-crosswalk,krieger-od/nwjs_chromium.src,Fireblend/chromium-crosswalk,M4sse/chromium.src,keishi/chromium,hgl888/chromium-crosswalk-efl,M4sse/chromium.src,mohamed--abdel-maksoud/chromium.src,dednal/chromium.src,patrickm/chromium.src,Pluto-tv/chromium-crosswalk,Chilledheart/chromium,M4sse/chromium.src,ChromiumWebApps/chromium,dushu1203/chromium.src,hujiajie/pa-chromium,junmin-zhu/chromium-rivertrail,krieger-od/nwjs_chromium.src,ondra-novak/chromium.src,jaruba/chromium.src,crosswalk-project/chromium-crosswalk-efl,dednal/chromium.src,hujiajie/pa-chromium,patrickm/chromium.src,timopulkkinen/BubbleFish,pozdnyakov/chromium-crosswalk,nacl-webkit/chrome_deps,hgl888/chromium-crosswalk-efl,ChromiumWebApps/chromium,Jonekee/chromium.src,hujiajie/pa-chromium,keishi/chromium,chuan9/chromium-crosswalk,crosswalk-project/chromium-crosswalk-efl,markYoungH/chromium.src,bright-sparks/chromium-spacewalk,markYoungH/chromium.src,chuan9/chromium-crosswalk,rogerwang/chromium,PeterWangIntel/chromium-crosswalk,hujiajie/pa-chromium,junmin-zhu/chromium-rivertrail,axinging/chromium-crosswalk,robclark/chromium,anirudhSK/chromium,dednal/chromium.src,robclark/chromium,Jonekee/chromium.src,littlstar/chromium.src,TheTypoMaster/chromium-crosswalk,jaruba/chromium.src,robclark/chromium,hgl888/chromium-crosswalk,axinging/chromium-crosswalk,hujiajie/pa-chromium,krieger-od/nwjs_chromium.src,Just-D/chromium-1,bright-sparks/chromium-spacewalk,junmin-zhu/chromium-rivertrail,rogerwang/chromium,nacl-webkit/chrome_deps,littlstar/chromium.src,Chilledheart/chromium,nacl-webkit/chrome_deps,timopulkkinen/BubbleFish,Just-D/chromium-1,hgl888/chromium-crosswalk-efl,hgl888/chromium-crosswalk-efl,ondra-novak/chromium.src,jaruba/chromium.src,bright-sparks/chromium-spacewalk,anirudhSK/chromium,markYoungH/chromium.src,jaruba/chromium.src,timopulkkinen/BubbleFish,hgl888/chromium-crosswalk-efl,zcbenz/cefode-chromium,M4sse/chromium.src,Just-D/chromium-1,ChromiumWebApps/chromium,hujiajie/pa-chromium,hgl888/chromium-crosswalk,ChromiumWebApps/chromium