Provide a hint for the idle notification handler.
Provide a hint for the idle notification handler.

The IdleNotification() function accepts an optional hint argument since V8 3.8.1 (rolled in r114984). 

This argument roughly specifies the expected duration of the idle pause and thus defines the amount of work to be done in the function. There is no guarantee that the actual work will match the hint though.

This CL provides hints for idle notifications sent from the foreground tab depending on the idle timer delay. This somewhat reduces idle notification pauses at the beginning of "idleness" period.

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

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

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