| Index: third_party/libaddressinput/chromium/cpp/src/rule.h
|
| diff --git a/third_party/libaddressinput/chromium/cpp/src/rule.h b/third_party/libaddressinput/chromium/cpp/src/rule.h
|
| index 6a7410d82503a4a834d53b789459fd91a04c95a7..69af35054decb74a5710c6ff2d19a4c88fa05f47 100644
|
| --- a/third_party/libaddressinput/chromium/cpp/src/rule.h
|
| +++ b/third_party/libaddressinput/chromium/cpp/src/rule.h
|
| @@ -26,6 +26,8 @@
|
| namespace i18n {
|
| namespace addressinput {
|
|
|
| +class Json;
|
| +
|
| // Stores an element in the format of an address as it should be displayed on an
|
| // envelope. The element can be either a literal string, like " ", or a field,
|
| // like ADMIN_AREA.
|
| @@ -75,6 +77,9 @@ class Rule {
|
| // format (JSON dictionary).
|
| bool ParseSerializedRule(const std::string& serialized_rule);
|
|
|
| + // Parses |json_rule|, which must contain parsed serialized rule.
|
| + void ParseJsonRule(const Json& json_rule);
|
| +
|
| // Returns the format of the address as it should appear on an envelope.
|
| const std::vector<std::vector<FormatElement> >& GetFormat() const {
|
| return format_;
|
|
|