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

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

Issue 6366019: Part 1 of repairing regressions to my old clang check plugins so Nico can (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove Nico's changes that I patched in for testing. Created 9 years, 11 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_URL_PROVIDER_H_ 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_HISTORY_URL_PROVIDER_H_
6 #define CHROME_BROWSER_AUTOCOMPLETE_HISTORY_URL_PROVIDER_H_ 6 #define CHROME_BROWSER_AUTOCOMPLETE_HISTORY_URL_PROVIDER_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 void DoAutocomplete(history::HistoryBackend* backend, 168 void DoAutocomplete(history::HistoryBackend* backend,
169 history::URLDatabase* db, 169 history::URLDatabase* db,
170 HistoryURLProviderParams* params); 170 HistoryURLProviderParams* params);
171 171
172 // Dispatches the results to the autocomplete controller. Called on the 172 // Dispatches the results to the autocomplete controller. Called on the
173 // main thread by ExecuteWithDB when the results are available. 173 // main thread by ExecuteWithDB when the results are available.
174 // Frees params_gets_deleted on exit. 174 // Frees params_gets_deleted on exit.
175 void QueryComplete(HistoryURLProviderParams* params_gets_deleted); 175 void QueryComplete(HistoryURLProviderParams* params_gets_deleted);
176 176
177 private: 177 private:
178 ~HistoryURLProvider() {} 178 ~HistoryURLProvider();
179 179
180 // Returns the set of prefixes to use for prefixes_. 180 // Returns the set of prefixes to use for prefixes_.
181 static history::Prefixes GetPrefixes(); 181 static history::Prefixes GetPrefixes();
182 182
183 // Determines the relevance for some input, given its type and which match it 183 // Determines the relevance for some input, given its type and which match it
184 // is. If |match_type| is NORMAL, |match_number| is a number 184 // is. If |match_type| is NORMAL, |match_number| is a number
185 // [0, kMaxSuggestions) indicating the relevance of the match (higher == more 185 // [0, kMaxSuggestions) indicating the relevance of the match (higher == more
186 // relevant). For other values of |match_type|, |match_number| is ignored. 186 // relevant). For other values of |match_type|, |match_number| is ignored.
187 static int CalculateRelevance(AutocompleteInput::Type input_type, 187 static int CalculateRelevance(AutocompleteInput::Type input_type,
188 MatchType match_type, 188 MatchType match_type,
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
295 // parameter itself is freed once it's no longer needed. The only reason we 295 // parameter itself is freed once it's no longer needed. The only reason we
296 // keep this member is so we can set the cancel bit on it. 296 // keep this member is so we can set the cancel bit on it.
297 HistoryURLProviderParams* params_; 297 HistoryURLProviderParams* params_;
298 298
299 // Only used by unittests; if non-empty, overrides accept-languages in the 299 // Only used by unittests; if non-empty, overrides accept-languages in the
300 // profile's pref system. 300 // profile's pref system.
301 std::string languages_; 301 std::string languages_;
302 }; 302 };
303 303
304 #endif // CHROME_BROWSER_AUTOCOMPLETE_HISTORY_URL_PROVIDER_H_ 304 #endif // CHROME_BROWSER_AUTOCOMPLETE_HISTORY_URL_PROVIDER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/autocomplete/history_url_provider.cc » ('j') | chrome/browser/browsing_data_indexed_db_helper.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698