summaryrefslogtreecommitdiffstats
path: root/chrome/browser/history
Commit message (Collapse)AuthorAgeFilesLines
* Try to cut down Browser/TabContents header dependencies.erg@chromium.org2010-07-092-0/+2
| | | | | | | | | | | | | - Forward declare printing::PrintViewManager in TabContents - tab_contents.h shouldn't depend on autocomplete_edit.h - Pull logging out of Browser through PageTransitionTypes BUG=none TEST=none Review URL: http://codereview.chromium.org/2934004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51995 0039d316-1c4b-4281-b951-d872f2087c98
* Remove the warning during conversion to TopSites.nshkrob@chromium.org2010-07-081-1/+9
| | | | | | | | | | | Set version back to non-top sites when running without the --top-sites flag. BUG=none TEST=chrome --top-sites Review URL: http://codereview.chromium.org/2844045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51850 0039d316-1c4b-4281-b951-d872f2087c98
* Increase the current version of the history index DBs, because of the switch ↵dumi@chromium.org2010-07-061-2/+4
| | | | | | | | | | | | from fts2 to fts3. BUG=none TEST=none Review URL: http://codereview.chromium.org/2825037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51677 0039d316-1c4b-4281-b951-d872f2087c98
* Use same logic to set NTP pages as without the top-sites flag.nshkrob@chromium.org2010-07-021-1/+1
| | | | | | | | | | | | | 1. Factor out SetPagesValue - this adds prepopulated pages, pinned and blacklisted urls. 2. Add broken camera placeholder for missing thumbnails. 3. Remove 'old database' warning if running without TopSites flag. BUG=None TEST=chrome --top-sites; pinned, blacklisted urls work now. Review URL: http://codereview.chromium.org/2805062 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51565 0039d316-1c4b-4281-b951-d872f2087c98
* Adds the --enable-in-memory-url-index switch to gate creation and use of the ↵rohitrao@chromium.org2010-07-022-3/+23
| | | | | | | | | | InMemoryURLIndex. BUG=19736 TEST=No change in behavior when flag is not used. Should not crash when flag is used. Review URL: http://codereview.chromium.org/2861041 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51555 0039d316-1c4b-4281-b951-d872f2087c98
* Add basic outline for the URL history autocompletion search provider.mrossetti@chromium.org2010-07-013-0/+58
| | | | | | | | | BUG=None TEST=None Review URL: http://codereview.chromium.org/2850038 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51388 0039d316-1c4b-4281-b951-d872f2087c98
* Store the version info in the History DB's meta table.nshkrob@chromium.org2010-07-013-10/+40
| | | | | | | | | | | | Version 18 means use the Favicons file (if the TopSites flag is on). This avoids the check for a Thumbnails DB file on startup. BUG=None TEST=ThumbnailDatabaseTest, HistoryBackendTest Review URL: http://codereview.chromium.org/2884013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51384 0039d316-1c4b-4281-b951-d872f2087c98
* Rename the Thumbnails database file to Favicons.nshkrob@chromium.org2010-06-307-62/+188
| | | | | | | | | | | The database will no longer store the thumbnails - TopSites is storing it's own thumbnails. BUG=None TEST=ThumbnailDatabaseTest Review URL: http://codereview.chromium.org/2842034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51294 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 51284 - Add initial url/title history indexing and search provider ↵mrossetti@chromium.org2010-06-303-882/+0
| | | | | | | | | | | | | | support -- not hooked up at this point. BUG=None TEST=None Review URL: http://codereview.chromium.org/2866025 TBR=mrossetti@chromium.org Review URL: http://codereview.chromium.org/2866035 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51286 0039d316-1c4b-4281-b951-d872f2087c98
* Add initial url/title history indexing and search provider support -- not ↵mrossetti@chromium.org2010-06-303-0/+882
| | | | | | | | | | | hooked up at this point. BUG=None TEST=None Review URL: http://codereview.chromium.org/2866025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51284 0039d316-1c4b-4281-b951-d872f2087c98
* Fix the race condition on TopSites initialization.nshkrob@chromium.org2010-06-283-48/+235
| | | | | | | | | | | Change TopSites::GetMostVisitedURLs to take a callback. This allows TopSites to wait for the results list from the TopSitesDatabase. BUG=none TEST=TopSitesTest Review URL: http://codereview.chromium.org/2811028 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51002 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 50863 - Add initial url/title history indexing and search provider ↵mrossetti@chromium.org2010-06-253-914/+0
| | | | | | | | | | | | | | support -- not hooked up at this point. BUG=None TEST=None Review URL: http://codereview.chromium.org/2818029 TBR=mrossetti@chromium.org Review URL: http://codereview.chromium.org/2811034 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50869 0039d316-1c4b-4281-b951-d872f2087c98
* Add initial url/title history indexing and search provider support -- not ↵mrossetti@chromium.org2010-06-253-0/+914
| | | | | | | | | | | hooked up at this point. BUG=None TEST=None Review URL: http://codereview.chromium.org/2818029 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50863 0039d316-1c4b-4281-b951-d872f2087c98
* Disallow apps with the wrong content type header.skerner@chromium.org2010-06-251-0/+4
| | | | | | | | | BUG=41290 TEST=manual Review URL: http://codereview.chromium.org/2830017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50855 0039d316-1c4b-4281-b951-d872f2087c98
* Disable check for duplicate URLs. Turns out the most visited computation can ↵brettw@chromium.org2010-06-241-3/+0
| | | | | | | | | | generate these in some legitimate cases and we don't want to assert. TEST=none BUG=none Review URL: http://codereview.chromium.org/2799027 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50729 0039d316-1c4b-4281-b951-d872f2087c98
* Migration to TopSites from ThumbnailDatabase.nshkrob@chromium.org2010-06-2312-20/+231
| | | | | | | | | BUG=None TEST=TopSitesTest, HistoryBackendTest, ThumbnailDatabaseTest, HistoryTest Review URL: http://codereview.chromium.org/2869018 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50610 0039d316-1c4b-4281-b951-d872f2087c98
* Replace wstring with string16 in history. The only time wstring is used now ↵brettw@chromium.org2010-06-2332-358/+392
| | | | | | | | | | | | in history is for bookmark-related stuff (the bookmarks system is still wstring-based). The substantial change here is in RTL to make a string16 variant of the functions and in changing the WordIterator to use string16 (this cleaned up some weird utf-32 code). TEST=none BUG=none Review URL: http://codereview.chromium.org/2808017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50597 0039d316-1c4b-4281-b951-d872f2087c98
* Make sure the pointer in PageData::html remains valid while PageData is called.eroman@chromium.org2010-06-171-1/+2
| | | | | | | | BUG=46835 Review URL: http://codereview.chromium.org/2852014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50173 0039d316-1c4b-4281-b951-d872f2087c98
* Adding TopSitesDatabase::UpdatePageRank to update rank without erasing the ↵nshkrob@chromium.org2010-06-165-61/+223
| | | | | | | | | | | | | thumbnail. Also, request the thumbnails for the unknown pages when updating the top sites list. BUG=None TEST=TopSitesTest Review URL: http://codereview.chromium.org/2846003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@50030 0039d316-1c4b-4281-b951-d872f2087c98
* Switching the history index DBs from fts2 to fts3, take #2: there wasdumi@chromium.org2010-06-161-1/+1
| | | | | | | | | | | a bug in our fts3 code that caused some tests to fail. TEST=none BUG=none Review URL: http://codereview.chromium.org/2838006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49900 0039d316-1c4b-4281-b951-d872f2087c98
* Add DISABLE_RUNNABLE_METHOD_REFCOUNT to make disabling refcounts in ↵ajwong@chromium.org2010-06-161-5/+1
| | | | | | | | | | | RunnableMethods easier. BUG=none TEST=none Review URL: http://codereview.chromium.org/2830006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49887 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 49746. Looks like it caused some SQLite errors that probablydumi@chromium.org2010-06-151-1/+1
| | | | | | | | | | led to some perf regressions too. BUG=none TEST=none git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49768 0039d316-1c4b-4281-b951-d872f2087c98
* Make all new history index files use FTS3 instead of FTS2.dumi@chromium.org2010-06-151-1/+1
| | | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/2818004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49746 0039d316-1c4b-4281-b951-d872f2087c98
* Remove old history index files.dumi@chromium.org2010-06-143-1/+54
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/2762012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49725 0039d316-1c4b-4281-b951-d872f2087c98
* Move all database accesses to the DB thread.nshkrob@chromium.org2010-06-145-82/+161
| | | | | | | | | | | The database now returns all urls and thumbnails in a single request. BUG=None TEST=TopSitesTest Review URL: http://codereview.chromium.org/2764007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49692 0039d316-1c4b-4281-b951-d872f2087c98
* Fix and re-enable RedirectTest.ClientCancelled.hans@chromium.org2010-06-141-3/+4
| | | | | | | | | | | | | | | The hack to create and dispatch an event after a timeout to fool the browser into thinking it is user initiated stopped working after WebKit r49827. Changing the test to navigate to a javascript: url instead, which qualifies as a user initiated location change. BUG=45053 TEST=ui_tests --gtest_filter=RedirectTest.ClientCancelled Review URL: http://codereview.chromium.org/2225007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49681 0039d316-1c4b-4281-b951-d872f2087c98
* Convert page contents grabbing from wide to UTF16. The current code is a bitbrettw@chromium.org2010-06-1112-50/+64
| | | | | | | | | | | silly because it would capture it in UTF16, then convert to wide, send it to the browser, then convert it to UTF-8 for FTS. TEST=none BUG=none Review URL: http://codereview.chromium.org/2714012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49594 0039d316-1c4b-4281-b951-d872f2087c98
* 1. Create and use the TopSites database file.nshkrob@chromium.org2010-06-095-15/+145
| | | | | | | | | | | 2. Timed updates of the database based on the number of sites changed. BUG=None TEST=TopSitesTest Review URL: http://codereview.chromium.org/2746002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49294 0039d316-1c4b-4281-b951-d872f2087c98
* Use DISALLOW_COPY_AND_ASSIGN instead of DISALLOW_EVIL_CONSTRUCTORS in chrome ↵tfarina@chromium.org2010-06-067-12/+12
| | | | | | | | | | | directory. BUG=None TEST=trybots Review URL: http://codereview.chromium.org/2657003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49024 0039d316-1c4b-4281-b951-d872f2087c98
* 1. Write thumbnail to the database on SetPageThumbnail.nshkrob@chromium.org2010-06-024-21/+101
| | | | | | | | | | | | | 2. Store the thumbnail score in the database. BUG=None TEST=TopSitesTest Review URL: http://codereview.chromium.org/2499003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48777 0039d316-1c4b-4281-b951-d872f2087c98
* Adding an SQLite database for TopSites.nshkrob@chromium.org2010-06-015-9/+495
| | | | | | | | | BUG=None TEST=TopSitesTest Review URL: http://codereview.chromium.org/2249004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48639 0039d316-1c4b-4281-b951-d872f2087c98
* [GTTF] Add FRIEND_TEST_ALL_PREFIXES, a FRIEND_TEST replacementphajdan.jr@chromium.org2010-06-015-21/+21
| | | | | | | | | | | that works with all test prefixes (DISABLED, FLAKY, FAILS). TEST=none BUG=44549 Review URL: http://codereview.chromium.org/2439001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48634 0039d316-1c4b-4281-b951-d872f2087c98
* Retry r48417.estade@chromium.org2010-05-271-3/+2
| | | | | | | | | | | Disable UnloadTest.BrowserCloseTabWhenOtherTabHasListener on windows because it is failing. BUG=45281 TEST=tree is green Review URL: http://codereview.chromium.org/2279006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48442 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 48417 - More test enabling.jrg@chromium.org2010-05-271-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | RedirectTest.ClientServerServer passes locally so I'm trying reenabling it. file a bug for RedirectTest.ClientCancelledByNewNavigationAfterProvisionalLoad . file a bug for SessionHistoryTest.CrossFrameFormBackForward mark SessionHistoryTest.LocationReplace as failing rather than disabled fix UnloadTest.BrowserCloseTabWhenOtherTabHasListener (the popup was being caught by the popup blocker) TEST=buildbots BUG=12913 Review URL: http://codereview.chromium.org/2264001 TBR=estade@chromium.org Looks like UnloadTest.BrowserCloseTabWhenOtherTabHasListener still unhappy on bot? http://buildbot.jail.google.com/buildbot/chromium/builders/XP%20Tests/builds/20319/steps/ui_tests/logs/stdio [----------] Global test environment tear-down [==========] 315 tests from 72 test cases ran. (1089094 ms total) [ PASSED ] 308 tests. [ FAILED ] 7 tests, listed below: [ FAILED ] MouseLeaveTest.FLAKY_TestOnMouseOut [ FAILED ] HistoryTester.FAILS_VerifyHistoryLength2 [ FAILED ] HistoryTester.FAILS_VerifyHistoryLength3 [ FAILED ] WorkerTest.FLAKY_WorkerHttpLayoutTests [ FAILED ] UnloadTest.BrowserCloseTabWhenOtherTabHasListener [ FAILED ] SessionHistoryTest.FAILS_LocationReplace [ FAILED ] SessionHistoryTest.FLAKY_HistorySearchXSS Review URL: http://codereview.chromium.org/2225009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48433 0039d316-1c4b-4281-b951-d872f2087c98
* More test enabling.estade@chromium.org2010-05-271-3/+2
| | | | | | | | | | | | | | | - RedirectTest.ClientServerServer passes locally so I'm trying re-enabling it. - file a bug for RedirectTest.ClientCancelledByNewNavigationAfterProvisionalLoad . - file a bug for SessionHistoryTest.CrossFrameFormBackForward - mark SessionHistoryTest.LocationReplace as failing rather than disabled - fix UnloadTest.BrowserCloseTabWhenOtherTabHasListener (the popup was being caught by the popup blocker) TEST=buildbots BUG=12913 Review URL: http://codereview.chromium.org/2264001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48417 0039d316-1c4b-4281-b951-d872f2087c98
* Fix memory leaks in TopSites.nshkrob@chromium.org2010-05-252-3/+5
| | | | | | | | | BUG=44979 TEST=TopSitesTest, memory. Review URL: http://codereview.chromium.org/2178003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48219 0039d316-1c4b-4281-b951-d872f2087c98
* Remove previous print preview work in preparation for new work.viettrungluu@chromium.org2010-05-251-2/+1
| | | | | | | | | | | | | | | | | | | | The new work will take a very different approach (using a component extension, similar to the bookmark manager). This basically reverts the following commits: - http://src.chromium.org/viewvc/chrome?view=rev&revision=20595 (http://codereview.chromium.org/155067) - http://src.chromium.org/viewvc/chrome?view=rev&revision=19918 (http://codereview.chromium.org/155051) - http://src.chromium.org/viewvc/chrome?view=rev&revision=19906 (http://codereview.chromium.org/150207) BUG=173 TEST=everything still builds Review URL: http://codereview.chromium.org/2156003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48162 0039d316-1c4b-4281-b951-d872f2087c98
* Adding a mock database layer.nshkrob@chromium.org2010-05-245-28/+270
| | | | | | | | | | | | | Testing support of storage in TopSites. BUG=None TEST=TopSitesTest Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=48061 Review URL: http://codereview.chromium.org/2133011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48099 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 48061 - Adding a mock database layer.skrul@chromium.org2010-05-245-270/+28
| | | | | | | | | | | | | | Testing support of storage in TopSites. BUG=None TEST=TopSitesTest Review URL: http://codereview.chromium.org/2133011 TBR=nshkrob@chromium.org Review URL: http://codereview.chromium.org/2128024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48068 0039d316-1c4b-4281-b951-d872f2087c98
* Adding a mock database layer.nshkrob@chromium.org2010-05-245-28/+270
| | | | | | | | | | | Testing support of storage in TopSites. BUG=None TEST=TopSitesTest Review URL: http://codereview.chromium.org/2133011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48061 0039d316-1c4b-4281-b951-d872f2087c98
* Revert 47675.mirandac@chromium.org2010-05-202-2/+172
| | | | | | | | | | Instead of moving data types into common/, create a special class of IPC messages that live in the browser directory, specifically for importing browser-related data. BUG=18774 TEST=none Review URL: http://codereview.chromium.org/2095020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47827 0039d316-1c4b-4281-b951-d872f2087c98
* Move data types used in the importer process to common/, in preparation for ↵mirandac@chromium.org2010-05-192-172/+2
| | | | | | | | | | | import to run out of process. BUG= 18774 TEST= none. Review URL: http://codereview.chromium.org/2106015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47675 0039d316-1c4b-4281-b951-d872f2087c98
* Add command line flag --top-sites to replace the thumbnail store flag.brettw@chromium.org2010-05-192-6/+27
| | | | | | | | | | Use the flag for querying for thumbnails. Add timer to update TopSites (every second for now). BUG=None TEST='chrome --top-sites' git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47671 0039d316-1c4b-4281-b951-d872f2087c98
* Adding HistoryService::QueryMostVisitedURLs and tests. brettw@chromium.org2010-05-1710-53/+219
| | | | | | | | | BUG=None TEST=HistoryTest::MostVisitedURLs Original review: http://codereview.chromium.org/2099004 Checked in for Nik Sckrob git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47442 0039d316-1c4b-4281-b951-d872f2087c98
* Add a constructor to initialize a URLRow with a URLID. This is needed when ↵mirandac@chromium.org2010-05-141-0/+11
| | | | | | | | | | passing a URLRow across IPC for out of process import. BUG=18774 TEST=NONE Review URL: http://codereview.chromium.org/2127002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47226 0039d316-1c4b-4281-b951-d872f2087c98
* Add TopSites::GetMostVisitedURLs and unittest for it using MockHistoryService.brettw@chromium.org2010-05-134-11/+173
| | | | | | | | | BUG=none TEST=TopSitesTest Original review=http://codereview.chromium.org/2057008 Patch by Nik Shkrob git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47206 0039d316-1c4b-4281-b951-d872f2087c98
* Flip ExpireHistoryTest.DeleteURLAndFavicon from FAILS back to FLAKYphajdan.jr@chromium.org2010-05-132-2/+2
| | | | | | | | | | | | | | per James Hawkins' request from http://codereview.chromium.org/2055014/show The problem is that this test does not appear on the flakiness dashboard, but hopefully the new flakiness bot will help with that. TEST=none BUG=none Review URL: http://codereview.chromium.org/2012012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47123 0039d316-1c4b-4281-b951-d872f2087c98
* [TTF] [GTTF] Flip tests that fail predictably from FLAKY to FAILS.phajdan.jr@chromium.org2010-05-123-4/+4
| | | | | | | | TBR=jhawkins Review URL: http://codereview.chromium.org/2055014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47034 0039d316-1c4b-4281-b951-d872f2087c98
* TTF: Mark Snippets.ThaiUTF8 as flaky instead of disabling the test.jhawkins@chromium.org2010-05-111-1/+4
| | | | | | | | | BUG=none TEST=none Review URL: http://codereview.chromium.org/1991007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46952 0039d316-1c4b-4281-b951-d872f2087c98
* Get rid of MetaTableHelper class and make use of the app/sql API in the ↵stuartmorgan@chromium.org2010-05-112-4/+2
| | | | | | | | | | | | | LoginDatabase. BUG=None TEST=compiles Patch from Thiago Farina <thiago.farina@gmail.com> Review URL: http://codereview.chromium.org/1700017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46929 0039d316-1c4b-4281-b951-d872f2087c98