Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Side by Side Diff: chrome/browser/autocomplete/history_contents_provider.h

Issue 115885: Hoist TrimHttpPrefix() so we only have one copy, not one per provider.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_HISTORY_CONTENTS_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_HISTORY_CONTENTS_PROVIDER_H_
6 #define CHROME_BROWSER_AUTOCOMPLETE_HISTORY_CONTENTS_PROVIDER_H_ 6 #define CHROME_BROWSER_AUTOCOMPLETE_HISTORY_CONTENTS_PROVIDER_H_
7 7
8 #include "chrome/browser/autocomplete/autocomplete.h" 8 #include "chrome/browser/autocomplete/autocomplete.h"
9 #include "chrome/browser/bookmarks/bookmark_utils.h" 9 #include "chrome/browser/bookmarks/bookmark_utils.h"
10 #include "chrome/browser/history/history.h" 10 #include "chrome/browser/history/history.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 // The number of times we're returned each different type of result. These are 73 // The number of times we're returned each different type of result. These are
74 // used by CalculateRelevance. Initialized in Start. 74 // used by CalculateRelevance. Initialized in Start.
75 int star_title_count_; 75 int star_title_count_;
76 int star_contents_count_; 76 int star_contents_count_;
77 int title_count_; 77 int title_count_;
78 int contents_count_; 78 int contents_count_;
79 79
80 // Current autocomplete input type. 80 // Current autocomplete input type.
81 AutocompleteInput::Type input_type_; 81 AutocompleteInput::Type input_type_;
82 82
83 // Whether we should trim "http://" from results.
84 bool trim_http_;
85
83 // Results from most recent query. These are cached so we don't have to 86 // Results from most recent query. These are cached so we don't have to
84 // re-issue queries for "minor changes" (which don't affect this provider). 87 // re-issue queries for "minor changes" (which don't affect this provider).
85 history::QueryResults results_; 88 history::QueryResults results_;
86 89
87 // Whether results_ is valid (so we can tell invalid apart from empty). 90 // Whether results_ is valid (so we can tell invalid apart from empty).
88 bool have_results_; 91 bool have_results_;
89 92
90 // Current query string. 93 // Current query string.
91 std::wstring query_; 94 std::wstring query_;
92 95
93 DISALLOW_EVIL_CONSTRUCTORS(HistoryContentsProvider); 96 DISALLOW_EVIL_CONSTRUCTORS(HistoryContentsProvider);
94 }; 97 };
95 98
96 #endif // CHROME_BROWSER_AUTOCOMPLETE_HISTORY_CONTENTS_PROVIDER_H_ 99 #endif // CHROME_BROWSER_AUTOCOMPLETE_HISTORY_CONTENTS_PROVIDER_H_
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/autocomplete.cc ('k') | chrome/browser/autocomplete/history_contents_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698