diff options
author | noelutz@google.com <noelutz@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-23 22:42:17 +0000 |
---|---|---|
committer | noelutz@google.com <noelutz@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-23 22:42:17 +0000 |
commit | 0695ef4d095a441148ae80a08576c25c2ab8bc40 (patch) | |
tree | 73909c32f2b4840452d5051b15f7efcaa60c56db /chrome/chrome_renderer.gypi | |
parent | 4bb1dc9e6231e64eae2f411f3a528f082f00f47e (diff) | |
download | chromium_src-0695ef4d095a441148ae80a08576c25c2ab8bc40.zip chromium_src-0695ef4d095a441148ae80a08576c25c2ab8bc40.tar.gz chromium_src-0695ef4d095a441148ae80a08576c25c2ab8bc40.tar.bz2 |
Client-side phishing detection: grab snapshot of custom sized view.
Client-side phishing detection needs to be able to take a snapshot of a
particular page that has a constant size and aspect ratio (e.g., 1024x768).
This CL adds a helper function (safe_browsing::GrabPhishingThumbnail)
which re-sizes the view a given size, grabs the snapshot, and then re-sizes
the view back to its previous size. Note: this function can be slow since
it might re-layout the page twice.
This function will only be called if we are very confident that the current page
is a phishing site in which case we are OK with taking a slow snapshot.
Also, this CL adds a test for the OnMsgPaintAtSize method in the RenderWidget
since it does something very similar than the new Thumbnailer.
BUG=None
TEST=GrabPhishingThumbnail
Review URL: http://codereview.chromium.org/3380001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60368 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/chrome_renderer.gypi')
-rw-r--r-- | chrome/chrome_renderer.gypi | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/chrome_renderer.gypi b/chrome/chrome_renderer.gypi index 3d072c0..9fe4e5b 100644 --- a/chrome/chrome_renderer.gypi +++ b/chrome/chrome_renderer.gypi @@ -205,6 +205,8 @@ 'renderer/safe_browsing/phishing_dom_feature_extractor.h', 'renderer/safe_browsing/phishing_term_feature_extractor.cc', 'renderer/safe_browsing/phishing_term_feature_extractor.h', + 'renderer/safe_browsing/phishing_thumbnailer.cc', + 'renderer/safe_browsing/phishing_thumbnailer.h', 'renderer/safe_browsing/phishing_url_feature_extractor.cc', 'renderer/safe_browsing/phishing_url_feature_extractor.h', 'renderer/safe_browsing/scorer.cc', |