Use QuitTask instead of Quit() to signal request completion. This allows for cases where the request complete callback is invoked outside a message loop, for e.g. in TestPostChunkedDataAfterStart(). Quit() can only be invoked inside a message loop whereas posting a QuitTask to the message loop can be done from anywhere.
Use QuitTask instead of Quit() to signal request completion.
This allows for cases where the request complete callback is invoked outside a message loop,
for e.g. in TestPostChunkedDataAfterStart(). Quit() can only be invoked inside a message
loop whereas posting a QuitTask to the message loop can be done from anywhere.

BUG=none
TEST=TestPostChunkedDataAfterStart passes through the tsan bots and net_unittests in general runs fine.

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

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

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