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

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

Issue 5648004: Add the "virtual" keyword on method overrides that are missing it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Missing file Created 10 years 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
« no previous file with comments | « chrome/browser/autocomplete/keyword_provider.h ('k') | chrome/browser/autofill/home_address.h » ('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 (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
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 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 { return label_; }
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/keyword_provider.h ('k') | chrome/browser/autofill/home_address.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698