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

Unified Diff: components/autofill/browser/autofill_type.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/autofill_type.h
diff --git a/components/autofill/browser/autofill_type.h b/components/autofill/browser/autofill_type.h
deleted file mode 100644
index 34bbbedfd9e4227937ccba69e628708f8d11326c..0000000000000000000000000000000000000000
--- a/components/autofill/browser/autofill_type.h
+++ /dev/null
@@ -1,64 +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_AUTOFILL_TYPE_H_
-#define COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_TYPE_H_
-
-#include <map>
-#include <set>
-#include <string>
-
-#include "base/strings/string16.h"
-#include "components/autofill/browser/field_types.h"
-
-namespace autofill {
-
-// The high-level description of Autofill types, used to categorize form fields
-// and for associating form fields with form values in the Web Database.
-class AutofillType {
- public:
- enum FieldTypeGroup {
- NO_GROUP,
- NAME,
- EMAIL,
- COMPANY,
- ADDRESS_HOME,
- ADDRESS_BILLING,
- PHONE_HOME,
- PHONE_BILLING,
- CREDIT_CARD,
- };
-
- explicit AutofillType(AutofillFieldType field_type);
- AutofillType(const AutofillType& autofill_type);
- AutofillType& operator=(const AutofillType& autofill_type);
-
- AutofillFieldType field_type() const;
- FieldTypeGroup group() const;
-
- // Maps |field_type| to a field type that can be directly stored in a profile
- // (in the sense that it makes sense to call |AutofillProfile::SetInfo()| with
- // the returned field type as the first parameter).
- static AutofillFieldType GetEquivalentFieldType(AutofillFieldType field_type);
-
- // Maps |field_type| to a field type from ADDRESS_BILLING FieldTypeGroup if
- // field type is an Address type.
- static AutofillFieldType GetEquivalentBillingFieldType(
- AutofillFieldType field_type);
-
- // Utilities for serializing and deserializing an |AutofillFieldType|.
- static std::string FieldTypeToString(AutofillFieldType field_type);
- static AutofillFieldType StringToFieldType(const std::string& str);
-
- private:
- AutofillFieldType field_type_;
-};
-
-typedef AutofillType::FieldTypeGroup FieldTypeGroup;
-typedef std::set<AutofillFieldType> FieldTypeSet;
-typedef std::map<base::string16, AutofillFieldType> FieldTypeMap;
-
-} // namespace autofill
-
-#endif // COMPONENTS_AUTOFILL_BROWSER_AUTOFILL_TYPE_H_
« no previous file with comments | « components/autofill/browser/autofill_server_field_info.h ('k') | components/autofill/browser/autofill_type.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698