Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Side by Side Diff: components/autofill/core/browser/suggestion.h

Issue 1404133004: IWYU for autofill suggestion. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | components/autofill/core/browser/suggestion.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | components/autofill/core/browser/suggestion.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698