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

Unified Diff: chrome/browser/autofill/credit_card_field.h

Issue 12434004: Move remaining Autofill code to //components/autofill. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix long lines Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/autofill/credit_card.cc ('k') | chrome/browser/autofill/credit_card_field.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/credit_card_field.h
diff --git a/chrome/browser/autofill/credit_card_field.h b/chrome/browser/autofill/credit_card_field.h
deleted file mode 100644
index 50fbb4380ebca168c09448bc23f7a66d343aa0c0..0000000000000000000000000000000000000000
--- a/chrome/browser/autofill/credit_card_field.h
+++ /dev/null
@@ -1,71 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_AUTOFILL_CREDIT_CARD_FIELD_H_
-#define CHROME_BROWSER_AUTOFILL_CREDIT_CARD_FIELD_H_
-
-#include <vector>
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "base/gtest_prod_util.h"
-#include "chrome/browser/autofill/autofill_type.h"
-#include "chrome/browser/autofill/form_field.h"
-
-class AutofillField;
-class AutofillScanner;
-
-class CreditCardField : public FormField {
- public:
- static FormField* Parse(AutofillScanner* scanner);
-
- protected:
- // FormField:
- virtual bool ClassifyField(FieldTypeMap* map) const OVERRIDE;
-
- private:
- FRIEND_TEST_ALL_PREFIXES(CreditCardFieldTest, ParseMiniumCreditCard);
- FRIEND_TEST_ALL_PREFIXES(CreditCardFieldTest, ParseFullCreditCard);
- FRIEND_TEST_ALL_PREFIXES(CreditCardFieldTest, ParseCreditCardType);
- FRIEND_TEST_ALL_PREFIXES(CreditCardFieldTest, ParseExpMonthYear);
- FRIEND_TEST_ALL_PREFIXES(CreditCardFieldTest, ParseExpMonthYear2);
- FRIEND_TEST_ALL_PREFIXES(CreditCardFieldTest, ParseExpField);
- FRIEND_TEST_ALL_PREFIXES(CreditCardFieldTest, ParseExpField2DigitYear);
- FRIEND_TEST_ALL_PREFIXES(CreditCardFieldTest,
- ParseCreditCardHolderNameWithCCFullName);
-
- CreditCardField();
-
- const AutofillField* cardholder_; // Optional.
-
- // Occasionally pages have separate fields for the cardholder's first and
- // last names; for such pages cardholder_ holds the first name field and
- // we store the last name field here.
- // (We could store an embedded NameField object here, but we don't do so
- // because the text patterns for matching a cardholder name are different
- // than for ordinary names, and because cardholder names never have titles,
- // middle names or suffixes.)
- const AutofillField* cardholder_last_;
-
- // TODO(jhawkins): Parse the select control.
- const AutofillField* type_; // Optional.
- const AutofillField* number_; // Required.
-
- // The 3-digit card verification number; we don't currently fill this.
- const AutofillField* verification_;
-
- // Either |expiration_date_| or both |expiration_month_| and
- // |expiration_year_| are required.
- const AutofillField* expiration_month_;
- const AutofillField* expiration_year_;
- const AutofillField* expiration_date_;
-
- // True if the year is detected to be a 2-digit year; otherwise, we assume
- // a 4-digit year.
- bool is_two_digit_year_;
-
- DISALLOW_COPY_AND_ASSIGN(CreditCardField);
-};
-
-#endif // CHROME_BROWSER_AUTOFILL_CREDIT_CARD_FIELD_H_
« no previous file with comments | « chrome/browser/autofill/credit_card.cc ('k') | chrome/browser/autofill/credit_card_field.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698