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

Unified Diff: components/autofill/browser/contact_info.h

Issue 17392006: In components/autofill, move browser/ to core/browser/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to fix conflicts Created 7 years, 6 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
Index: components/autofill/browser/contact_info.h
diff --git a/components/autofill/browser/contact_info.h b/components/autofill/browser/contact_info.h
deleted file mode 100644
index 3d96636f781ec6bfbbb6463425c934400cf29942..0000000000000000000000000000000000000000
--- a/components/autofill/browser/contact_info.h
+++ /dev/null
@@ -1,99 +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 COMPONENTS_AUTOFILL_BROWSER_CONTACT_INFO_H_
-#define COMPONENTS_AUTOFILL_BROWSER_CONTACT_INFO_H_
-
-#include <vector>
-
-#include "base/compiler_specific.h"
-#include "base/gtest_prod_util.h"
-#include "base/strings/string16.h"
-#include "components/autofill/browser/field_types.h"
-#include "components/autofill/browser/form_group.h"
-
-namespace autofill {
-
-// 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 base::string16 GetRawInfo(AutofillFieldType type) const OVERRIDE;
- virtual void SetRawInfo(AutofillFieldType type,
- const base::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.
- base::string16 FullName() const;
-
- // Returns the middle initial if |middle_| is non-empty. Returns an empty
- // string otherwise.
- base::string16 MiddleInitial() const;
-
- const base::string16& first() const { return first_; }
- const base::string16& middle() const { return middle_; }
- const base::string16& last() const { return last_; }
-
- // Sets |first_|, |middle_|, and |last_| to the tokenized |full|.
- // It is tokenized on a space only.
- void SetFullName(const base::string16& full);
-
- base::string16 first_;
- base::string16 middle_;
- base::string16 last_;
-};
-
-class EmailInfo : public FormGroup {
- public:
- EmailInfo();
- EmailInfo(const EmailInfo& info);
- virtual ~EmailInfo();
-
- EmailInfo& operator=(const EmailInfo& info);
-
- // FormGroup:
- virtual base::string16 GetRawInfo(AutofillFieldType type) const OVERRIDE;
- virtual void SetRawInfo(AutofillFieldType type,
- const base::string16& value) OVERRIDE;
-
- private:
- // FormGroup:
- virtual void GetSupportedTypes(FieldTypeSet* supported_types) const OVERRIDE;
-
- base::string16 email_;
-};
-
-class CompanyInfo : public FormGroup {
- public:
- CompanyInfo();
- CompanyInfo(const CompanyInfo& info);
- virtual ~CompanyInfo();
-
- CompanyInfo& operator=(const CompanyInfo& info);
-
- // FormGroup:
- virtual base::string16 GetRawInfo(AutofillFieldType type) const OVERRIDE;
- virtual void SetRawInfo(AutofillFieldType type,
- const base::string16& value) OVERRIDE;
-
- private:
- // FormGroup:
- virtual void GetSupportedTypes(FieldTypeSet* supported_types) const OVERRIDE;
-
- base::string16 company_name_;
-};
-
-} // namespace autofill
-
-#endif // COMPONENTS_AUTOFILL_BROWSER_CONTACT_INFO_H_
« no previous file with comments | « components/autofill/browser/autofill_xml_parser_unittest.cc ('k') | components/autofill/browser/contact_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698