| 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_AUTOCOMPLETE_MATCH_H_ | 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_MATCH_H_ |
| 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_MATCH_H_ | 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_MATCH_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 | 72 |
| 73 // Type used by providers to attach additional, optional information to | 73 // Type used by providers to attach additional, optional information to |
| 74 // an AutocompleteMatch. | 74 // an AutocompleteMatch. |
| 75 typedef std::map<std::string, std::string> AdditionalInfo; | 75 typedef std::map<std::string, std::string> AdditionalInfo; |
| 76 | 76 |
| 77 // The type of this match. | 77 // The type of this match. |
| 78 typedef AutocompleteMatchType::Type Type; | 78 typedef AutocompleteMatchType::Type Type; |
| 79 | 79 |
| 80 // Null-terminated array of characters that are not valid within |contents| | 80 // Null-terminated array of characters that are not valid within |contents| |
| 81 // and |description| strings. | 81 // and |description| strings. |
| 82 static const char16 kInvalidChars[]; | 82 static const base::char16 kInvalidChars[]; |
| 83 | 83 |
| 84 AutocompleteMatch(); | 84 AutocompleteMatch(); |
| 85 AutocompleteMatch(AutocompleteProvider* provider, | 85 AutocompleteMatch(AutocompleteProvider* provider, |
| 86 int relevance, | 86 int relevance, |
| 87 bool deletable, | 87 bool deletable, |
| 88 Type type); | 88 Type type); |
| 89 AutocompleteMatch(const AutocompleteMatch& match); | 89 AutocompleteMatch(const AutocompleteMatch& match); |
| 90 ~AutocompleteMatch(); | 90 ~AutocompleteMatch(); |
| 91 | 91 |
| 92 // Converts |type| to a string representation. Used in logging and debugging. | 92 // Converts |type| to a string representation. Used in logging and debugging. |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 const base::string16& text, | 346 const base::string16& text, |
| 347 const ACMatchClassifications& classifications) const; | 347 const ACMatchClassifications& classifications) const; |
| 348 #endif | 348 #endif |
| 349 }; | 349 }; |
| 350 | 350 |
| 351 typedef AutocompleteMatch::ACMatchClassification ACMatchClassification; | 351 typedef AutocompleteMatch::ACMatchClassification ACMatchClassification; |
| 352 typedef std::vector<ACMatchClassification> ACMatchClassifications; | 352 typedef std::vector<ACMatchClassification> ACMatchClassifications; |
| 353 typedef std::vector<AutocompleteMatch> ACMatches; | 353 typedef std::vector<AutocompleteMatch> ACMatches; |
| 354 | 354 |
| 355 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_MATCH_H_ | 355 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_MATCH_H_ |
| OLD | NEW |