summaryrefslogtreecommitdiffstats
path: root/chrome/browser/thumbnail_store.cc
Commit message (Collapse)AuthorAgeFilesLines
* Many changes to DictionaryValues:pkasting@chromium.org2009-11-251-1/+1
| | | | | | | | | | | | | | | | | * Add support for keys with "." in them via new XXXWithoutPathExpansion() APIs. * Use these APIs with all key iterator usage. * SetXXX() calls cannot fail, so change them from bool to void. * Change GetSize() to size() since it's cheap, and add empty(). Other: * Use standard for loop format in more places (e.g. instead of while loops when they're really doing a for loop). * Shorten a few bits of code. BUG=567 TEST=none Review URL: http://codereview.chromium.org/441008 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@33109 0039d316-1c4b-4281-b951-d872f2087c98
* Coverity: DCHECK that we got a valid dictionary.jhawkins@chromium.org2009-10-081-0/+1
| | | | | | | | | CID=6420 BUG=none TEST=none Review URL: http://codereview.chromium.org/262029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28451 0039d316-1c4b-4281-b951-d872f2087c98
* Coverity: Allocate |cache| after we have a logic path where we can return ↵jhawkins@chromium.org2009-10-051-2/+1
| | | | | | | | | | | and leak. CID=6380 BUG=none TEST=none Review URL: http://codereview.chromium.org/255081 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28044 0039d316-1c4b-4281-b951-d872f2087c98
* Move the JPEG and PNG codecs from base/gfx to app/gfx/codec. Move the classesbrettw@chromium.org2009-10-031-3/+3
| | | | | | | | | | | | | | | into the gfx namespace. Combine the PNGEncoder and PNGDecoder. There were separate when we had different executables for the browser and renderer, and linked the encoder only in one of them (which saved us some space used by libpng). This hasn't been the case for years, so combining them (again) makes sense. TEST=none BUG=none Review URL: http://codereview.chromium.org/243076 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27930 0039d316-1c4b-4281-b951-d872f2087c98
* Convert history to use new sql wrappers. Enhance wrappers in several ways tobrettw@chromium.org2009-10-021-57/+44
| | | | | | | | | | support the needs of history. BUG=none TEST=covered by unit tests Review URL: http://codereview.chromium.org/246053 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27832 0039d316-1c4b-4281-b951-d872f2087c98
* Coverity: Initialize statement_cache_ in the constructor.jhawkins@chromium.org2009-09-231-0/+1
| | | | | | | | | CID=5040 BUG=none TEST=none Review URL: http://codereview.chromium.org/225013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26954 0039d316-1c4b-4281-b951-d872f2087c98
* Revert of r22559.aa@chromium.org2009-08-061-1/+1
| | | | | | | | | | | | | | | | | | This caused an easily reproducible crash: 1. Start with a fresh profile 2. Navigate to google.com 3. Restart 4. Navigate to google.com 5. crash The change from pass-by-value to pass-by-ref in fav_icon_helper.* seems to be to blame, but I can't see it right off. TBR=phajdan.jr@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22595 0039d316-1c4b-4281-b951-d872f2087c98
* Bunch of Coverity fixes, rather minor severity.phajdan.jr@chromium.org2009-08-061-1/+1
| | | | | | | | | TEST=none BUG=none Review URL: http://codereview.chromium.org/159862 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@22559 0039d316-1c4b-4281-b951-d872f2087c98
* Make ThumbnailStore broadcast a notification when it has finished reading ↵meelapshah@chromium.org2009-07-281-48/+91
| | | | | | | | | | | thumbnails from disk. Make DOMUIThumbnailSource wait for this notification if ThumbnailStore isn't ready yet. Also clean up some of the code. Review URL: http://codereview.chromium.org/155911 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21785 0039d316-1c4b-4281-b951-d872f2087c98
* Write ThumbnailStore's cache to disk on browser shutdown.meelapshah@chromium.org2009-07-201-26/+59
| | | | | | Review URL: http://codereview.chromium.org/155729 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21088 0039d316-1c4b-4281-b951-d872f2087c98
* Qurey redirects when a thumbnail is set.meelapshah@chromium.org2009-07-171-14/+72
| | | | | | | | Update list of most visited URLs on an exponential timer, resetting when the history is cleared. Review URL: http://codereview.chromium.org/155619 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20964 0039d316-1c4b-4281-b951-d872f2087c98
* Transactionalize ThumbnailStore db operations.meelapshah@chromium.org2009-07-141-0/+6
| | | | | | Review URL: http://codereview.chromium.org/149582 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20644 0039d316-1c4b-4281-b951-d872f2087c98
* Change ThumbnailStore to use sqlite instead of individual files try 2. ↵meelapshah@chromium.org2009-07-091-161/+129
| | | | | | | | Previous try failed interactive_ui_tests. Review URL: http://codereview.chromium.org/149361 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20272 0039d316-1c4b-4281-b951-d872f2087c98
* Reverting 20097.meelapshah@chromium.org2009-07-081-128/+160
| | | | | | Review URL: http://codereview.chromium.org/155186 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20101 0039d316-1c4b-4281-b951-d872f2087c98
* Change ThumbnailStore to use sqlite instead of individual files.meelapshah@chromium.org2009-07-071-160/+128
| | | | | | Review URL: http://codereview.chromium.org/149223 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20097 0039d316-1c4b-4281-b951-d872f2087c98
* Modify ThumbnailStore to make one call to the HistoryBackend using ↵meelapshah@chromium.org2009-07-031-244/+140
| | | | | | | | | | | QueryTopURLsAndRedirects instead of a seperate call for each URL. Also clean up some of the code and fix bug 14644. BUG=14644 TEST=none Review URL: http://codereview.chromium.org/149126 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19879 0039d316-1c4b-4281-b951-d872f2087c98
* Moved typedef of RedirectList from HistoryService class to history namespace.meelapshah@chromium.org2009-07-011-2/+2
| | | | | | Review URL: http://codereview.chromium.org/151168 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19766 0039d316-1c4b-4281-b951-d872f2087c98
* WriteThumbnailToDisk runs on a bg thread so it cannot access the cache_ ↵meelapshah@chromium.org2009-06-261-4/+5
| | | | | | | | | | directly. Instead, pass the data to be written to disk so no cache_ lookups are necessary. Review URL: http://codereview.chromium.org/149105 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19435 0039d316-1c4b-4281-b951-d872f2087c98
* Add looking up/caching of redirect lists to find the best thumbnail.meelapshah@chromium.org2009-06-241-14/+247
| | | | | | | | | Added timer to clean unpopular thumbnails from the cache/disk every hour. Still need to implement removal of blacklisted urls. Review URL: http://codereview.chromium.org/126237 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19189 0039d316-1c4b-4281-b951-d872f2087c98
* Fix Linux compile bustagebrettw@chromium.org2009-06-091-1/+1
| | | | | | Review URL: http://codereview.chromium.org/119378 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17972 0039d316-1c4b-4281-b951-d872f2087c98
* Modified ThumbnailStore to cache/store JPEGs insteadbrettw@chromium.org2009-06-091-66/+68
| | | | | | | | | | | | | of SkBitmaps. Add command line flag "--thumbnail-store" to enable using the ThumbnailStore facility instead of the current ThumbnailDatabase. Original review: http://codereview.chromium.org/118409 Patch by Meelap Shah git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17971 0039d316-1c4b-4281-b951-d872f2087c98
* Implement a first pass at thumbnail store storage to disk, including a unit ↵brettw@chromium.org2009-06-041-0/+206
test for the new behavior. TEST=covered by unittest BUG=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17670 0039d316-1c4b-4281-b951-d872f2087c98