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

Unified Diff: third_party/libaddressinput/chromium/cpp/src/rule.h

Issue 140823005: [rac] Download country code data in a single HTTP request. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Temporarily switch to staging URL. 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/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_;
« no previous file with comments | « third_party/libaddressinput/chromium/cpp/src/retriever.h ('k') | third_party/libaddressinput/chromium/cpp/src/rule.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698