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

Unified Diff: third_party/libaddressinput/chromium/cpp/include/libaddressinput/address_data.h

Issue 116363003: [rac] Validate an address. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix compile. Created 6 years, 11 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: third_party/libaddressinput/chromium/cpp/include/libaddressinput/address_data.h
diff --git a/third_party/libaddressinput/chromium/cpp/include/libaddressinput/address_data.h b/third_party/libaddressinput/chromium/cpp/include/libaddressinput/address_data.h
index d6ae6c0f0754f9b9250d16f8385651ca0a395d7e..8c8b75e316af5d7e139d105c866c283971981de3 100644
--- a/third_party/libaddressinput/chromium/cpp/include/libaddressinput/address_data.h
+++ b/third_party/libaddressinput/chromium/cpp/include/libaddressinput/address_data.h
@@ -19,6 +19,8 @@
#ifndef I18N_ADDRESSINPUT_ADDRESS_DATA_H_
#define I18N_ADDRESSINPUT_ADDRESS_DATA_H_
+#include <libaddressinput/address_field.h>
+
#include <string>
#include <vector>
@@ -31,14 +33,16 @@ namespace addressinput {
// address.address_lines.push_back("1098 Alta Ave");
// address.administrative_area = "CA";
// address.locality = "Mountain View";
-// address.dependent_locality = "";
// address.postal_code = "94043";
-// address.sorting_code = "";
// address.organization = "Google";
// address.recipient = "Chen-Kang Yang";
// address.language_code = "en";
// Process(address);
struct AddressData {
+ // Returns the value of the |field|. The parameter should not be
+ // STREET_ADDRESS, which comprises multiple fields.
+ const std::string& GetField(AddressField field) const;
+
// The BCP 47 language code used to guide how the address is formatted for
// display. The same address may have different representations in different
// languages.

Powered by Google App Engine
This is Rietveld 408576698