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

Unified Diff: components/autofill/core/browser/address_i18n.h

Issue 261013010: autocomplete: add ability to get full address (hidden behind a flag). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: GCC weirdness Created 6 years, 7 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/core/browser/address_i18n.h
diff --git a/components/autofill/core/browser/address_i18n.h b/components/autofill/core/browser/address_i18n.h
new file mode 100644
index 0000000000000000000000000000000000000000..ceefde92bdc40d4f70dff01ad5907cd741dc1ae9
--- /dev/null
+++ b/components/autofill/core/browser/address_i18n.h
@@ -0,0 +1,32 @@
+// 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 COMPONENTS_AUTOFILL_CORE_BROWSER_ADDRESS_I18N_H_
+#define COMPONENTS_AUTOFILL_CORE_BROWSER_ADDRESS_I18N_H_
+
+#include "base/callback.h"
Ilya Sherman 2014/05/07 01:19:19 nit: Would callback_forward suffice?
Evan Stade 2014/05/09 22:14:59 Done.
+#include "base/memory/scoped_ptr.h"
+#include "base/strings/string16.h"
+
+namespace i18n {
+namespace addressinput {
+struct AddressData;
+}
+}
+
+namespace autofill {
+
+class AutofillType;
+
+namespace i18n {
+
+// Creates an AddressData object for internationalized address display or
+// validation using |get_info| for field values.
+scoped_ptr< ::i18n::addressinput::AddressData> CreateAddressData(
Ilya Sherman 2014/05/07 01:19:19 nit: Is the space between "<" and "::" necessary?
Evan Stade 2014/05/09 22:14:59 yes for GCC
+ const base::Callback<base::string16(const AutofillType&)>& get_info);
+
+} // namespace i18n
+} // namespace autofill
+
+#endif // COMPONENTS_AUTOFILL_CORE_BROWSER_ADDRESS_I18N_H_

Powered by Google App Engine
This is Rietveld 408576698