summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/safe_browsing/phishing_thumbnailer.cc
Commit message (Collapse)AuthorAgeFilesLines
* Update some #includes in chrome/renderer/safe_browsing for headers in new ↵pilgrim@chromium.org2013-01-151-3/+3
| | | | | | | | Platform directory Review URL: https://chromiumcodereview.appspot.com/11820036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@176786 0039d316-1c4b-4281-b951-d872f2087c98
* chrome: Use skia::RefPtr for skia ref-counted objects.danakj@chromium.org2012-12-061-5/+5
| | | | | | | | | | | | | BUG=163454 R=sky Depends on: https://codereview.chromium.org/11299262 NOTRY=true Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=171333 Review URL: https://codereview.chromium.org/11280251 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171524 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 171333 - Memory issues on Macrsleevi@chromium.org2012-12-051-5/+5
| | | | | | | | | | | | | | | | chrome: Use skia::RefPtr for skia ref-counted objects. BUG=163454 R=sky Depends on: https://codereview.chromium.org/11299262 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/11280251 TBR=danakj@chromium.org Review URL: https://codereview.chromium.org/11439020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171347 0039d316-1c4b-4281-b951-d872f2087c98
* chrome: Use skia::RefPtr for skia ref-counted objects.danakj@chromium.org2012-12-051-5/+5
| | | | | | | | | | | BUG=163454 R=sky Depends on: https://codereview.chromium.org/11299262 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/11280251 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171333 0039d316-1c4b-4281-b951-d872f2087c98
* Simplify platform_canvas.h by recognizing that PlatformCanvas does not ↵reed@google.com2012-11-141-5/+7
| | | | | | | | | | | | | | | | | | | | | actually extend SkCanvas in any way, other than provide a host of constructors (and delayed constructors in the form of 'initialize' methods). These late initializers are a problem, as SkCanvas is deprecating its setDevice() call, moving to model where the backingstore/device for the canvas must be created before the canvas is created. This is necessary to allow skia to continue to extend SkCanvas for its backends (e.g. GPU, PDF, Picture, Pipe, etc.). The practical change in this CL is to make PlatformCanvas just a typedef for SkCanvas, and change the call-sites that want to call initialize() to instead create the canvas using one of the provided Factory functions (e.g. CreatePlatformCanvas). The modifier Platform is maintained, to document that this canvas may be backed by platform-specific pixels (e.g. allocated by GDI or cairo). Review URL: https://codereview.chromium.org/11138024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167669 0039d316-1c4b-4281-b951-d872f2087c98
* Update includes to new header locations.abarth@chromium.org2011-12-031-2/+2
| | | | | | | TBR=darin Review URL: http://codereview.chromium.org/8784004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@112826 0039d316-1c4b-4281-b951-d872f2087c98
* Make RenderView inherit from content::RenderView, and add missing functions ↵jam@chromium.org2011-10-101-5/+5
| | | | | | | | | to the interface. In a future change I'll rename RenderView to RenderViewImpl. BUG=98716 Review URL: http://codereview.chromium.org/8201029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104727 0039d316-1c4b-4281-b951-d872f2087c98
* This change implements a first pass in the effort to remove the dependency ↵twiz@chromium.org2011-05-261-4/+2
| | | | | | | | | | | | | | of PlatformDevice within Chrome. The Skia library now provides multiple back-ends for the SkDevice class, so PlatformDevice's inheritance of SkDevice, and the assumption of instances of PlatformDevice limits the use of these new back-ends. A new set of helper functions is provided for the PlatformDevice entry points. Upon construction of a PlatformDevice, a pointer to the interface is cached in the parent SkDevice's SkMetaData. The new helper functions forward calls to the interface cached in the metadata. BUG=NONE TEST=NONE Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=86625 Reverted: http://src.chromium.org/viewvc/chrome?view=rev&revision=86625 Review URL: http://codereview.chromium.org/7019013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86823 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 86625 - This change implements a first pass in the effort to remove ↵vandebo@chromium.org2011-05-251-2/+4
| | | | | | | | | | | | | | | the dependency of PlatformDevice within Chrome. The Skia library now provides multiple back-ends for the SkDevice class, so PlatformDevice's inheritance of SkDevice, and the assumption of instances of PlatformDevice limits the use of these new back-ends. A new set of helper functions is provided for the PlatformDevice entry points. Upon construction of a PlatformDevice, a pointer to the interface is cached in the parent SkDevice's SkMetaData. The new helper functions forward calls to the interface cached in the metadata. BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/7019013 TBR=twiz@chromium.org Review URL: http://codereview.chromium.org/6987019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86629 0039d316-1c4b-4281-b951-d872f2087c98
* This change implements a first pass in the effort to remove the dependency ↵twiz@chromium.org2011-05-251-4/+2
| | | | | | | | | | | | of PlatformDevice within Chrome. The Skia library now provides multiple back-ends for the SkDevice class, so PlatformDevice's inheritance of SkDevice, and the assumption of instances of PlatformDevice limits the use of these new back-ends. A new set of helper functions is provided for the PlatformDevice entry points. Upon construction of a PlatformDevice, a pointer to the interface is cached in the parent SkDevice's SkMetaData. The new helper functions forward calls to the interface cached in the metadata. BUG=NONE TEST=NONE Review URL: http://codereview.chromium.org/7019013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86625 0039d316-1c4b-4281-b951-d872f2087c98
* Fix missing includejam@chromium.org2011-04-151-0/+1
| | | | git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81683 0039d316-1c4b-4281-b951-d872f2087c98
* Move a bunch of remaining files from chrome\renderer to content\renderer.jam@chromium.org2011-03-191-1/+1
| | | | | | | TBR=avi Review URL: http://codereview.chromium.org/6688047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78781 0039d316-1c4b-4281-b951-d872f2087c98
* Make RenderView not have to know about how PhishingClassifierDelegate.jam@chromium.org2011-02-071-2/+1
| | | | | | Review URL: http://codereview.chromium.org/6250176 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74028 0039d316-1c4b-4281-b951-d872f2087c98
* Change includes of gfx/* to ui/gfx/*sail@chromium.org2011-02-051-1/+1
| | | | | | | | | BUG=71063 TEST=compiled Review URL: http://codereview.chromium.org/6312156 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73890 0039d316-1c4b-4281-b951-d872f2087c98
* Roll WebKit DEPS past WebKit move. Update gyp files and include paths to ↵abarth@chromium.org2011-01-171-4/+4
| | | | | | reflect the move. Consolidate how we DEPS in WebKit source files. Cross fingers. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71585 0039d316-1c4b-4281-b951-d872f2087c98
* Client-side phishing detection: grab snapshot of custom sized view.noelutz@google.com2010-10-271-0/+82
| | | | | | | | | | | | | | | | | | | | | | | | 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 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=60368 Review URL: http://codereview.chromium.org/3380001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@63987 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 60368 - Client-side phishing detection: grab snapshot of custom sized ↵noelutz@google.com2010-09-241-82/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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 TBR=noelutz@google.com Review URL: http://codereview.chromium.org/3439026 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60536 0039d316-1c4b-4281-b951-d872f2087c98
* Client-side phishing detection: grab snapshot of custom sized view.noelutz@google.com2010-09-231-0/+82
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