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

Side by Side Diff: chrome/browser/autofill/credit_card.h

Issue 6650014: Autofill extend profiles to include multi-valued fields, part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nit Created 9 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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
11 #include "base/string16.h" 11 #include "base/string16.h"
12 #include "chrome/browser/autofill/form_group.h" 12 #include "chrome/browser/autofill/form_group.h"
13 13
14 // A form group that stores credit card information. 14 // A form group that stores credit card information.
15 class CreditCard : public FormGroup { 15 class CreditCard : public FormGroup {
16 public: 16 public:
17 explicit CreditCard(const std::string& guid); 17 explicit CreditCard(const std::string& guid);
18 18
19 // For use in STL containers. 19 // For use in STL containers.
20 CreditCard(); 20 CreditCard();
21 CreditCard(const CreditCard& credit_card); 21 CreditCard(const CreditCard& credit_card);
22 virtual ~CreditCard(); 22 virtual ~CreditCard();
23 23
24 // FormGroup implementation: 24 // FormGroup implementation:
25 virtual FormGroup* Clone() const;
26 virtual void GetPossibleFieldTypes(const string16& text, 25 virtual void GetPossibleFieldTypes(const string16& text,
27 FieldTypeSet* possible_types) const; 26 FieldTypeSet* possible_types) const;
28 virtual void GetAvailableFieldTypes(FieldTypeSet* available_types) const; 27 virtual void GetAvailableFieldTypes(FieldTypeSet* available_types) const;
29 virtual void FindInfoMatches(const AutofillType& type, 28 virtual void FindInfoMatches(const AutofillType& type,
30 const string16& info, 29 const string16& info,
31 std::vector<string16>* matched_text) const; 30 std::vector<string16>* matched_text) const;
32 virtual string16 GetFieldText(const AutofillType& type) const; 31 virtual string16 GetFieldText(const AutofillType& type) const;
33 virtual string16 GetPreviewText(const AutofillType& type) const; 32 virtual string16 GetPreviewText(const AutofillType& type) const;
34 virtual void SetInfo(const AutofillType& type, const string16& value); 33 virtual void SetInfo(const AutofillType& type, const string16& value);
35 virtual const string16 Label() const; 34 virtual const string16 Label() const;
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 extern const char* const kAmericanExpressCard; 157 extern const char* const kAmericanExpressCard;
159 extern const char* const kDinersCard; 158 extern const char* const kDinersCard;
160 extern const char* const kDiscoverCard; 159 extern const char* const kDiscoverCard;
161 extern const char* const kGenericCard; 160 extern const char* const kGenericCard;
162 extern const char* const kJCBCard; 161 extern const char* const kJCBCard;
163 extern const char* const kMasterCard; 162 extern const char* const kMasterCard;
164 extern const char* const kSoloCard; 163 extern const char* const kSoloCard;
165 extern const char* const kVisaCard; 164 extern const char* const kVisaCard;
166 165
167 #endif // CHROME_BROWSER_AUTOFILL_CREDIT_CARD_H_ 166 #endif // CHROME_BROWSER_AUTOFILL_CREDIT_CARD_H_
OLDNEW
« no previous file with comments | « chrome/browser/autofill/contact_info_unittest.cc ('k') | chrome/browser/autofill/credit_card.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698