diff options
author | bryner@chromium.org <bryner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-24 22:23:17 +0000 |
---|---|---|
committer | bryner@chromium.org <bryner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-24 22:23:17 +0000 |
commit | 29f55a47219cf6f5f6064a50395cbdc25dc493ad (patch) | |
tree | 8dc2de452faf9f066972c72b45dc8008a81ffb63 /chrome/chrome_renderer.gypi | |
parent | 242d14e687686f12ce7a75249f89b7b8f9d63543 (diff) | |
download | chromium_src-29f55a47219cf6f5f6064a50395cbdc25dc493ad.zip chromium_src-29f55a47219cf6f5f6064a50395cbdc25dc493ad.tar.gz chromium_src-29f55a47219cf6f5f6064a50395cbdc25dc493ad.tar.bz2 |
Limit the time spent on a single iteration of PhishingDOMFeatureExtractor.
With this change, the feature extractor will keep track of how long it has been
working, and if it exceeds a predefined time limit, it will pause and post a
task to continue extraction. This will allow other MessageLoop tasks to run on
the render thread. There is also a total time limit, after which the extractor
will give up altogether -- this is a sanity check in case of a bug or an
especially large page. Also includes some UMA histograms so that we can see
how well this performs in practice.
TEST=PhishingDOMFeatureExtractorTest.Continuation
BUG=none
Review URL: http://codereview.chromium.org/3130039
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57243 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/chrome_renderer.gypi')
-rw-r--r-- | chrome/chrome_renderer.gypi | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/chrome_renderer.gypi b/chrome/chrome_renderer.gypi index f101c1e..b47adea 100644 --- a/chrome/chrome_renderer.gypi +++ b/chrome/chrome_renderer.gypi @@ -181,6 +181,7 @@ 'renderer/renderer_webstoragearea_impl.h', 'renderer/renderer_webstoragenamespace_impl.cc', 'renderer/renderer_webstoragenamespace_impl.h', + 'renderer/safe_browsing/feature_extractor_clock.h', 'renderer/safe_browsing/features.cc', 'renderer/safe_browsing/features.h', 'renderer/safe_browsing/phishing_dom_feature_extractor.cc', |