summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autocomplete/history_contents_provider.h
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-29 00:10:17 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-29 00:10:17 +0000
commit45b2e16d81eb606ecbd102ca36dc51d87298f966 (patch)
tree1b1359211be9aede274ab6f824e88402fd433960 /chrome/browser/autocomplete/history_contents_provider.h
parent1c0be54a98e2f801e8fa22c01aac83e36485eee4 (diff)
downloadchromium_src-45b2e16d81eb606ecbd102ca36dc51d87298f966.zip
chromium_src-45b2e16d81eb606ecbd102ca36dc51d87298f966.tar.gz
chromium_src-45b2e16d81eb606ecbd102ca36dc51d87298f966.tar.bz2
Hoist TrimHttpPrefix() so we only have one copy, not one per provider.
Make use of this in HistoryContentsProvider so results from it get their schemes trimmed appropriately. BUG=10558 Review URL: http://codereview.chromium.org/115885 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17145 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete/history_contents_provider.h')
-rw-r--r--chrome/browser/autocomplete/history_contents_provider.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/autocomplete/history_contents_provider.h b/chrome/browser/autocomplete/history_contents_provider.h
index 7cb72dd..b99b21e 100644
--- a/chrome/browser/autocomplete/history_contents_provider.h
+++ b/chrome/browser/autocomplete/history_contents_provider.h
@@ -80,6 +80,9 @@ class HistoryContentsProvider : public AutocompleteProvider {
// Current autocomplete input type.
AutocompleteInput::Type input_type_;
+ // Whether we should trim "http://" from results.
+ bool trim_http_;
+
// Results from most recent query. These are cached so we don't have to
// re-issue queries for "minor changes" (which don't affect this provider).
history::QueryResults results_;