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

Unified Diff: chrome/browser/autofill/contact_info.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/autofill_xml_parser_unittest.cc ('k') | chrome/browser/autofill/contact_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/contact_info.h
diff --git a/chrome/browser/autofill/contact_info.h b/chrome/browser/autofill/contact_info.h
deleted file mode 100644
index 9f2a70b308ae42a4f8009f9a1056cfe08af9e836..0000000000000000000000000000000000000000
--- a/chrome/browser/autofill/contact_info.h
+++ /dev/null
@@ -1,94 +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_CONTACT_INFO_H_
-#define CHROME_BROWSER_AUTOFILL_CONTACT_INFO_H_
-
-#include <vector>
-
-#include "base/gtest_prod_util.h"
-#include "base/string16.h"
-#include "chrome/browser/autofill/field_types.h"
-#include "chrome/browser/autofill/form_group.h"
-
-// A form group that stores name information.
-class NameInfo : public FormGroup {
- public:
- NameInfo();
- NameInfo(const NameInfo& info);
- virtual ~NameInfo();
-
- NameInfo& operator=(const NameInfo& info);
-
- // FormGroup:
- virtual string16 GetRawInfo(AutofillFieldType type) const OVERRIDE;
- virtual void SetRawInfo(AutofillFieldType type,
- const string16& value) OVERRIDE;
-
- private:
- // FormGroup:
- virtual void GetSupportedTypes(FieldTypeSet* supported_types) const OVERRIDE;
-
- // Returns the full name, which can include up to the first, middle, and last
- // name.
- string16 FullName() const;
-
- // Returns the middle initial if |middle_| is non-empty. Returns an empty
- // string otherwise.
- string16 MiddleInitial() const;
-
- const string16& first() const { return first_; }
- const string16& middle() const { return middle_; }
- const string16& last() const { return last_; }
-
- // Sets |first_|, |middle_|, and |last_| to the tokenized |full|.
- // It is tokenized on a space only.
- void SetFullName(const string16& full);
-
- string16 first_;
- string16 middle_;
- string16 last_;
-};
-
-class EmailInfo : public FormGroup {
- public:
- EmailInfo();
- EmailInfo(const EmailInfo& info);
- virtual ~EmailInfo();
-
- EmailInfo& operator=(const EmailInfo& info);
-
- // FormGroup:
- virtual string16 GetRawInfo(AutofillFieldType type) const OVERRIDE;
- virtual void SetRawInfo(AutofillFieldType type,
- const string16& value) OVERRIDE;
-
- private:
- // FormGroup:
- virtual void GetSupportedTypes(FieldTypeSet* supported_types) const OVERRIDE;
-
- string16 email_;
-};
-
-class CompanyInfo : public FormGroup {
- public:
- CompanyInfo();
- CompanyInfo(const CompanyInfo& info);
- virtual ~CompanyInfo();
-
- CompanyInfo& operator=(const CompanyInfo& info);
-
- // FormGroup:
- virtual string16 GetRawInfo(AutofillFieldType type) const OVERRIDE;
- virtual void SetRawInfo(AutofillFieldType type,
- const string16& value) OVERRIDE;
-
- private:
- // FormGroup:
- virtual void GetSupportedTypes(FieldTypeSet* supported_types) const OVERRIDE;
-
- string16 company_name_;
-};
-
-#endif // CHROME_BROWSER_AUTOFILL_CONTACT_INFO_H_
« no previous file with comments | « chrome/browser/autofill/autofill_xml_parser_unittest.cc ('k') | chrome/browser/autofill/contact_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698