Index: chrome/browser/ui/autofill/field_map_wrapper.h |
diff --git a/chrome/browser/ui/autofill/field_map_wrapper.h b/chrome/browser/ui/autofill/field_map_wrapper.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ccbd2d7b51a6a0294f123489a1188bf50cb77bf1 |
--- /dev/null |
+++ b/chrome/browser/ui/autofill/field_map_wrapper.h |
@@ -0,0 +1,38 @@ |
+// Copyright 2014 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_UI_AUTOFILL_FIELD_MAP_WRAPPER_H_ |
+#define CHROME_BROWSER_UI_AUTOFILL_FIELD_MAP_WRAPPER_H_ |
+ |
+#include "base/basictypes.h" |
+#include "base/strings/string16.h" |
+#include "chrome/browser/ui/autofill/autofill_dialog_types.h" |
+#include "components/autofill/core/browser/autofill_type.h" |
+ |
+namespace autofill { |
+ |
+// Fills or validates sections of the Autofill dialog based on user input. |
+class FieldMapWrapper { |
Evan Stade
2014/01/30 17:25:39
I do not think this class is worthwhile. You can i
Dan Beam
2014/01/30 17:43:50
i did this originally but it was harder to test an
Evan Stade
2014/01/30 17:56:29
yes
Dan Beam
2014/01/30 20:34:49
Done.
|
+ public: |
+ FieldMapWrapper(const FieldValueMap& field_map, DialogSection section); |
+ ~FieldMapWrapper(); |
+ |
+ // Returns the data for a specific field in a format for filling into a web |
+ // form. |
+ base::string16 GetInfo(const AutofillType& type) const; |
+ |
+ // Fills in |inputs| with the data that this map contains (|inputs| is an |
+ // out-param). |
+ void FillInputs(DetailInputs* inputs); |
+ |
+ private: |
+ const FieldValueMap& field_map_; |
+ const bool is_billing_section_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(FieldMapWrapper); |
+}; |
+ |
+} // namespace autofill |
+ |
+#endif // CHROME_BROWSER_UI_AUTOFILL_FIELD_MAP_WRAPPER_H_ |