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

Unified Diff: chrome/browser/autofill/autofill_type.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_server_field_info.h ('k') | chrome/browser/autofill/autofill_type.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/autofill_type.h
diff --git a/chrome/browser/autofill/autofill_type.h b/chrome/browser/autofill/autofill_type.h
deleted file mode 100644
index 0ff1062fc46a36b3ba954ab5e0bfab2d33b1edbc..0000000000000000000000000000000000000000
--- a/chrome/browser/autofill/autofill_type.h
+++ /dev/null
@@ -1,54 +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_AUTOFILL_TYPE_H_
-#define CHROME_BROWSER_AUTOFILL_AUTOFILL_TYPE_H_
-
-#include <map>
-#include <set>
-#include <string>
-
-#include "base/string16.h"
-#include "chrome/browser/autofill/field_types.h"
-
-// 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,
- 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);
-
- // 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<string16, AutofillFieldType> FieldTypeMap;
-
-#endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_TYPE_H_
« no previous file with comments | « chrome/browser/autofill/autofill_server_field_info.h ('k') | chrome/browser/autofill/autofill_type.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698