OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // This class contains common functionality for search-based autocomplete | 5 // This class contains common functionality for search-based autocomplete |
6 // providers. Search provider and zero suggest provider both use it for common | 6 // providers. Search provider and zero suggest provider both use it for common |
7 // functionality. | 7 // functionality. |
8 | 8 |
9 #ifndef CHROME_BROWSER_AUTOCOMPLETE_BASE_SEARCH_PROVIDER_H_ | 9 #ifndef CHROME_BROWSER_AUTOCOMPLETE_BASE_SEARCH_PROVIDER_H_ |
10 #define CHROME_BROWSER_AUTOCOMPLETE_BASE_SEARCH_PROVIDER_H_ | 10 #define CHROME_BROWSER_AUTOCOMPLETE_BASE_SEARCH_PROVIDER_H_ |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 | 241 |
242 // Type of optional formatted Answers result. | 242 // Type of optional formatted Answers result. |
243 base::string16 answer_type_; | 243 base::string16 answer_type_; |
244 | 244 |
245 // Should this result be prefetched? | 245 // Should this result be prefetched? |
246 bool should_prefetch_; | 246 bool should_prefetch_; |
247 }; | 247 }; |
248 | 248 |
249 class NavigationResult : public Result { | 249 class NavigationResult : public Result { |
250 public: | 250 public: |
251 // |provider| and |profile| are both used to compute |formatted_url_|. | 251 NavigationResult(const AutocompleteSchemeClassifier& scheme_classifier, |
252 NavigationResult(const AutocompleteProvider& provider, | |
253 Profile* profile, | |
254 const GURL& url, | 252 const GURL& url, |
255 AutocompleteMatchType::Type type, | 253 AutocompleteMatchType::Type type, |
256 const base::string16& description, | 254 const base::string16& description, |
257 const std::string& deletion_url, | 255 const std::string& deletion_url, |
258 bool from_keyword_provider, | 256 bool from_keyword_provider, |
259 int relevance, | 257 int relevance, |
260 bool relevance_from_server, | 258 bool relevance_from_server, |
261 const base::string16& input_text, | 259 const base::string16& input_text, |
262 const std::string& languages); | 260 const std::string& languages); |
263 virtual ~NavigationResult(); | 261 virtual ~NavigationResult(); |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
528 | 526 |
529 // True if this provider's results are being displayed in the app list. By | 527 // True if this provider's results are being displayed in the app list. By |
530 // default this is false, meaning that the results will be shown in the | 528 // default this is false, meaning that the results will be shown in the |
531 // omnibox. | 529 // omnibox. |
532 bool in_app_list_; | 530 bool in_app_list_; |
533 | 531 |
534 DISALLOW_COPY_AND_ASSIGN(BaseSearchProvider); | 532 DISALLOW_COPY_AND_ASSIGN(BaseSearchProvider); |
535 }; | 533 }; |
536 | 534 |
537 #endif // CHROME_BROWSER_AUTOCOMPLETE_BASE_SEARCH_PROVIDER_H_ | 535 #endif // CHROME_BROWSER_AUTOCOMPLETE_BASE_SEARCH_PROVIDER_H_ |
OLD | NEW |