OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
327 | 327 |
328 // Params for the current query. The provider should not free this directly; | 328 // Params for the current query. The provider should not free this directly; |
329 // instead, it is passed as a parameter through the history backend, and the | 329 // instead, it is passed as a parameter through the history backend, and the |
330 // parameter itself is freed once it's no longer needed. The only reason we | 330 // parameter itself is freed once it's no longer needed. The only reason we |
331 // keep this member is so we can set the cancel bit on it. | 331 // keep this member is so we can set the cancel bit on it. |
332 HistoryURLProviderParams* params_; | 332 HistoryURLProviderParams* params_; |
333 | 333 |
334 // Params controlling experimental behavior of this provider. | 334 // Params controlling experimental behavior of this provider. |
335 HUPScoringParams scoring_params_; | 335 HUPScoringParams scoring_params_; |
336 | 336 |
337 // If true, HistoryURL provider should lookup and cull redirects. If | |
338 // false, it returns matches that may be redirects to each other and | |
339 // simply hopes the default AutoCompleteController behavior to remove | |
340 // URLs that are likely duplicates (http://google.com <-> | |
341 // https://www.google.com/, etc.) will do a good enough job. | |
342 bool cull_redirects_; | |
343 | |
344 // Used in PromoteOrCreateShorterSuggestion(). If true, we may create | |
345 // shorter suggestions even when they haven't been visited before: | |
346 // if the user visited http://example.com/asdf once, we'll suggest | |
347 // http://example.com/ even if they've never been to it. | |
348 bool create_shorter_match_; | |
349 | |
350 DISALLOW_COPY_AND_ASSIGN(HistoryURLProvider); | 337 DISALLOW_COPY_AND_ASSIGN(HistoryURLProvider); |
351 }; | 338 }; |
352 | 339 |
353 #endif // CHROME_BROWSER_AUTOCOMPLETE_HISTORY_URL_PROVIDER_H_ | 340 #endif // CHROME_BROWSER_AUTOCOMPLETE_HISTORY_URL_PROVIDER_H_ |
OLD | NEW |