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

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

Issue 382243002: Cleanup return values in autofill (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_CREDIT_CARD_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_CREDIT_CARD_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_CREDIT_CARD_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_CREDIT_CARD_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 virtual base::string16 GetRawInfo(ServerFieldType type) const OVERRIDE; 53 virtual base::string16 GetRawInfo(ServerFieldType type) const OVERRIDE;
54 virtual void SetRawInfo(ServerFieldType type, 54 virtual void SetRawInfo(ServerFieldType type,
55 const base::string16& value) OVERRIDE; 55 const base::string16& value) OVERRIDE;
56 virtual base::string16 GetInfo(const AutofillType& type, 56 virtual base::string16 GetInfo(const AutofillType& type,
57 const std::string& app_locale) const OVERRIDE; 57 const std::string& app_locale) const OVERRIDE;
58 virtual bool SetInfo(const AutofillType& type, 58 virtual bool SetInfo(const AutofillType& type,
59 const base::string16& value, 59 const base::string16& value,
60 const std::string& app_locale) OVERRIDE; 60 const std::string& app_locale) OVERRIDE;
61 61
62 // Credit card preview summary, for example: ******1234, Exp: 01/2020 62 // Credit card preview summary, for example: ******1234, Exp: 01/2020
63 const base::string16 Label() const; 63 const base::string16& Label() const;
vabr (Chromium) 2014/07/11 19:27:49 So I guess the argument with ToString() applies he
lucinka.brozkova 2014/07/11 21:05:57 Done.
64 64
65 // Special method to set value for HTML5 month input type. 65 // Special method to set value for HTML5 month input type.
66 void SetInfoForMonthInputType(const base::string16& value); 66 void SetInfoForMonthInputType(const base::string16& value);
67 67
68 // The number altered for display, for example: ******1234 68 // The number altered for display, for example: ******1234
69 base::string16 ObfuscatedNumber() const; 69 base::string16 ObfuscatedNumber() const;
70 // The last four digits of the credit card number. 70 // The last four digits of the credit card number.
71 base::string16 LastFourDigits() const; 71 base::string16 LastFourDigits() const;
72 // The user-visible type of the card, e.g. 'Mastercard'. 72 // The user-visible type of the card, e.g. 'Mastercard'.
73 base::string16 TypeForDisplay() const; 73 base::string16 TypeForDisplay() const;
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 extern const char* const kDiscoverCard; 159 extern const char* const kDiscoverCard;
160 extern const char* const kGenericCard; 160 extern const char* const kGenericCard;
161 extern const char* const kJCBCard; 161 extern const char* const kJCBCard;
162 extern const char* const kMasterCard; 162 extern const char* const kMasterCard;
163 extern const char* const kUnionPay; 163 extern const char* const kUnionPay;
164 extern const char* const kVisaCard; 164 extern const char* const kVisaCard;
165 165
166 } // namespace autofill 166 } // namespace autofill
167 167
168 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_CREDIT_CARD_H_ 168 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_CREDIT_CARD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698