diff options
author | mrossetti@chromium.org <mrossetti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-24 14:18:26 +0000 |
---|---|---|
committer | mrossetti@chromium.org <mrossetti@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-24 14:18:26 +0000 |
commit | 6c6e2e851954d14c5d183a624f842f55c1241296 (patch) | |
tree | 8fe3c11fac71c2ea9bfbdaf1c205a225bc4b8a84 /chrome/browser/autocomplete/history_provider_util.h | |
parent | 61623711e224217f24269ec1ba5554e3e908b92c (diff) | |
download | chromium_src-6c6e2e851954d14c5d183a624f842f55c1241296.zip chromium_src-6c6e2e851954d14c5d183a624f842f55c1241296.tar.gz chromium_src-6c6e2e851954d14c5d183a624f842f55c1241296.tar.bz2 |
Revert 75882 - Add caching of the InMemoryURLIndex (part of the HistoryQuickProvider) part 1. (Transactions will be introduced in the next submission.) Fixed a problem in the caching of search results as the user types each character in a search term. Updated the unit test associated with that code.
Added (temporary) flag which can be used to turn on the HQP (enable-history-quick-provider); also added it to about:flags.
Previously reviewed as http://codereview.chromium.org/6286029/.
BUG=19736,60107
TEST=Added unit tests.
Review URL: http://codereview.chromium.org/6581024
TBR=mrossetti@chromium.org
Review URL: http://codereview.chromium.org/6575032
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75883 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete/history_provider_util.h')
-rw-r--r-- | chrome/browser/autocomplete/history_provider_util.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/chrome/browser/autocomplete/history_provider_util.h b/chrome/browser/autocomplete/history_provider_util.h index 5866df9..aa4b444 100644 --- a/chrome/browser/autocomplete/history_provider_util.h +++ b/chrome/browser/autocomplete/history_provider_util.h @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -13,6 +13,13 @@ namespace history { +// Constants which specify, when considered altogether, 'significant' +// history items. These are used to filter out insignificant items +// for consideration as autocomplete candidates. +extern const int kLowQualityMatchTypedLimit; +extern const int kLowQualityMatchVisitLimit; +extern const int kLowQualityMatchAgeLimitInDays; + // Used for intermediate history result operations. struct HistoryMatch { // Required for STL, we don't use this directly. @@ -64,6 +71,10 @@ struct Prefix { int num_components; }; typedef std::vector<Prefix> Prefixes; + +// Returns the date threshold for considering an history item as significant. +base::Time AutocompleteAgeThreshold(); + } #endif // CHROME_BROWSER_AUTOCOMPLETE_HISTORY_PROVIDER_UTIL_H_ |