OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_AUTOFILL_CREDIT_CARD_H_ | 5 #ifndef CHROME_BROWSER_AUTOFILL_CREDIT_CARD_H_ |
6 #define CHROME_BROWSER_AUTOFILL_CREDIT_CARD_H_ | 6 #define CHROME_BROWSER_AUTOFILL_CREDIT_CARD_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 14 matching lines...) Expand all Loading... |
25 virtual FormGroup* Clone() const; | 25 virtual FormGroup* Clone() const; |
26 virtual void GetPossibleFieldTypes(const string16& text, | 26 virtual void GetPossibleFieldTypes(const string16& text, |
27 FieldTypeSet* possible_types) const; | 27 FieldTypeSet* possible_types) const; |
28 virtual void GetAvailableFieldTypes(FieldTypeSet* available_types) const; | 28 virtual void GetAvailableFieldTypes(FieldTypeSet* available_types) const; |
29 virtual void FindInfoMatches(const AutoFillType& type, | 29 virtual void FindInfoMatches(const AutoFillType& type, |
30 const string16& info, | 30 const string16& info, |
31 std::vector<string16>* matched_text) const; | 31 std::vector<string16>* matched_text) const; |
32 virtual string16 GetFieldText(const AutoFillType& type) const; | 32 virtual string16 GetFieldText(const AutoFillType& type) const; |
33 virtual string16 GetPreviewText(const AutoFillType& type) const; | 33 virtual string16 GetPreviewText(const AutoFillType& type) const; |
34 virtual void SetInfo(const AutoFillType& type, const string16& value); | 34 virtual void SetInfo(const AutoFillType& type, const string16& value); |
35 virtual const string16 Label() const { return label_; } | 35 virtual const string16 Label() const; |
36 | 36 |
37 // The number altered for display, for example: ******1234 | 37 // The number altered for display, for example: ******1234 |
38 string16 ObfuscatedNumber() const; | 38 string16 ObfuscatedNumber() const; |
39 // Credit card preview summary, for example: ******1234, Exp: 01/2020 | 39 // Credit card preview summary, for example: ******1234, Exp: 01/2020 |
40 string16 PreviewSummary() const; | 40 string16 PreviewSummary() const; |
41 // The last four digits of the credit card number. | 41 // The last four digits of the credit card number. |
42 string16 LastFourDigits() const; | 42 string16 LastFourDigits() const; |
43 | 43 |
44 const string16& type() const { return type_; } | 44 const string16& type() const { return type_; } |
45 | 45 |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 string16 label_; | 146 string16 label_; |
147 | 147 |
148 // The guid of this credit card. | 148 // The guid of this credit card. |
149 std::string guid_; | 149 std::string guid_; |
150 }; | 150 }; |
151 | 151 |
152 // So we can compare CreditCards with EXPECT_EQ(). | 152 // So we can compare CreditCards with EXPECT_EQ(). |
153 std::ostream& operator<<(std::ostream& os, const CreditCard& credit_card); | 153 std::ostream& operator<<(std::ostream& os, const CreditCard& credit_card); |
154 | 154 |
155 #endif // CHROME_BROWSER_AUTOFILL_CREDIT_CARD_H_ | 155 #endif // CHROME_BROWSER_AUTOFILL_CREDIT_CARD_H_ |
OLD | NEW |