| 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 #ifndef COMPONENTS_OMNIBOX_BROWSER_AUTOCOMPLETE_MATCH_H_ | 5 #ifndef COMPONENTS_OMNIBOX_BROWSER_AUTOCOMPLETE_MATCH_H_ |
| 6 #define COMPONENTS_OMNIBOX_BROWSER_AUTOCOMPLETE_MATCH_H_ | 6 #define COMPONENTS_OMNIBOX_BROWSER_AUTOCOMPLETE_MATCH_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 // should only set this flag if ".com" will be inline autocompleted; | 339 // should only set this flag if ".com" will be inline autocompleted; |
| 340 // and a navigation to "foo/" (an intranet host) or search for "foo" | 340 // and a navigation to "foo/" (an intranet host) or search for "foo" |
| 341 // should set this flag. | 341 // should set this flag. |
| 342 bool allowed_to_be_default_match; | 342 bool allowed_to_be_default_match; |
| 343 | 343 |
| 344 // The URL to actually load when the autocomplete item is selected. This URL | 344 // The URL to actually load when the autocomplete item is selected. This URL |
| 345 // should be canonical so we can compare URLs with strcmp to avoid dupes. | 345 // should be canonical so we can compare URLs with strcmp to avoid dupes. |
| 346 // It may be empty if there is no possible navigation. | 346 // It may be empty if there is no possible navigation. |
| 347 GURL destination_url; | 347 GURL destination_url; |
| 348 | 348 |
| 349 // The destination URL with "www." stripped off for better dupe finding. | 349 // The destination URL modified for better dupe finding. The result may not |
| 350 // be navigable or even valid; it's only meant to be used for detecting |
| 351 // duplicates. |
| 350 GURL stripped_destination_url; | 352 GURL stripped_destination_url; |
| 351 | 353 |
| 352 // The main text displayed in the address bar dropdown. | 354 // The main text displayed in the address bar dropdown. |
| 353 base::string16 contents; | 355 base::string16 contents; |
| 354 ACMatchClassifications contents_class; | 356 ACMatchClassifications contents_class; |
| 355 | 357 |
| 356 // Additional helper text for each entry, such as a title or description. | 358 // Additional helper text for each entry, such as a title or description. |
| 357 base::string16 description; | 359 base::string16 description; |
| 358 ACMatchClassifications description_class; | 360 ACMatchClassifications description_class; |
| 359 | 361 |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 428 const base::string16& text, | 430 const base::string16& text, |
| 429 const ACMatchClassifications& classifications) const; | 431 const ACMatchClassifications& classifications) const; |
| 430 #endif | 432 #endif |
| 431 }; | 433 }; |
| 432 | 434 |
| 433 typedef AutocompleteMatch::ACMatchClassification ACMatchClassification; | 435 typedef AutocompleteMatch::ACMatchClassification ACMatchClassification; |
| 434 typedef std::vector<ACMatchClassification> ACMatchClassifications; | 436 typedef std::vector<ACMatchClassification> ACMatchClassifications; |
| 435 typedef std::vector<AutocompleteMatch> ACMatches; | 437 typedef std::vector<AutocompleteMatch> ACMatches; |
| 436 | 438 |
| 437 #endif // COMPONENTS_OMNIBOX_BROWSER_AUTOCOMPLETE_MATCH_H_ | 439 #endif // COMPONENTS_OMNIBOX_BROWSER_AUTOCOMPLETE_MATCH_H_ |
| OLD | NEW |