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 COMPONENTS_OMNIBOX_BROWSER_HISTORY_URL_PROVIDER_H_ | 5 #ifndef COMPONENTS_OMNIBOX_BROWSER_HISTORY_URL_PROVIDER_H_ |
6 #define COMPONENTS_OMNIBOX_BROWSER_HISTORY_URL_PROVIDER_H_ | 6 #define COMPONENTS_OMNIBOX_BROWSER_HISTORY_URL_PROVIDER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 // See comments on |promote_type| below. | 97 // See comments on |promote_type| below. |
98 enum PromoteType { | 98 enum PromoteType { |
99 WHAT_YOU_TYPED_MATCH, | 99 WHAT_YOU_TYPED_MATCH, |
100 FRONT_HISTORY_MATCH, | 100 FRONT_HISTORY_MATCH, |
101 NEITHER, | 101 NEITHER, |
102 }; | 102 }; |
103 | 103 |
104 HistoryURLProviderParams(const AutocompleteInput& input, | 104 HistoryURLProviderParams(const AutocompleteInput& input, |
105 bool trim_http, | 105 bool trim_http, |
106 const AutocompleteMatch& what_you_typed_match, | 106 const AutocompleteMatch& what_you_typed_match, |
107 TemplateURL* default_search_provider, | 107 const TemplateURL* default_search_provider, |
108 const SearchTermsData& search_terms_data); | 108 const SearchTermsData& search_terms_data); |
109 ~HistoryURLProviderParams(); | 109 ~HistoryURLProviderParams(); |
110 | 110 |
111 const scoped_refptr<base::SequencedTaskRunner> origin_task_runner; | 111 const scoped_refptr<base::SequencedTaskRunner> origin_task_runner; |
112 | 112 |
113 // A copy of the autocomplete input. We need the copy since this object will | 113 // A copy of the autocomplete input. We need the copy since this object will |
114 // live beyond the original query while it runs on the history thread. | 114 // live beyond the original query while it runs on the history thread. |
115 AutocompleteInput input; | 115 AutocompleteInput input; |
116 | 116 |
117 // Should inline autocompletion be disabled? This is initalized from | 117 // Should inline autocompletion be disabled? This is initalized from |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 | 343 |
344 // Params controlling experimental behavior of this provider. | 344 // Params controlling experimental behavior of this provider. |
345 HUPScoringParams scoring_params_; | 345 HUPScoringParams scoring_params_; |
346 | 346 |
347 base::ThreadChecker thread_checker_; | 347 base::ThreadChecker thread_checker_; |
348 | 348 |
349 DISALLOW_COPY_AND_ASSIGN(HistoryURLProvider); | 349 DISALLOW_COPY_AND_ASSIGN(HistoryURLProvider); |
350 }; | 350 }; |
351 | 351 |
352 #endif // COMPONENTS_OMNIBOX_BROWSER_HISTORY_URL_PROVIDER_H_ | 352 #endif // COMPONENTS_OMNIBOX_BROWSER_HISTORY_URL_PROVIDER_H_ |
OLD | NEW |