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_AUTOFILL_CORE_BROWSER_SUGGESTION_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_SUGGESTION_H_ |
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_SUGGESTION_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_SUGGESTION_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | |
11 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
12 | 11 |
13 namespace autofill { | 12 namespace autofill { |
14 | 13 |
15 class AutofillProfile; | |
16 class CreditCard; | |
17 | |
18 struct Suggestion { | 14 struct Suggestion { |
19 public: | |
20 enum MatchMode { | 15 enum MatchMode { |
21 PREFIX_MATCH, // for prefix matched suggestions; | 16 PREFIX_MATCH, // for prefix matched suggestions; |
22 SUBSTRING_MATCH // for substring matched suggestions; | 17 SUBSTRING_MATCH // for substring matched suggestions; |
23 }; | 18 }; |
24 | 19 |
25 Suggestion(); | 20 Suggestion(); |
26 | 21 |
27 // Copy constructor for STL containers. | 22 // Copy constructor for STL containers. |
28 Suggestion(const Suggestion& other); | 23 Suggestion(const Suggestion& other); |
29 | 24 |
(...skipping 20 matching lines...) Expand all Loading... |
50 | 45 |
51 base::string16 value; | 46 base::string16 value; |
52 base::string16 label; | 47 base::string16 label; |
53 base::string16 icon; | 48 base::string16 icon; |
54 MatchMode match; | 49 MatchMode match; |
55 }; | 50 }; |
56 | 51 |
57 } // namespace autofill | 52 } // namespace autofill |
58 | 53 |
59 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_SUGGESTION_H_ | 54 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_SUGGESTION_H_ |
OLD | NEW |