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

Unified Diff: third_party/libaddressinput/chromium/cpp/src/retriever.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/retriever.h
diff --git a/third_party/libaddressinput/chromium/cpp/src/retriever.h b/third_party/libaddressinput/chromium/cpp/src/retriever.h
index 4797095409a4c15d31a9213470ca48ed74b418ab..d30a76b5cf1c6dc104b335c41245720a21f4972b 100644
--- a/third_party/libaddressinput/chromium/cpp/src/retriever.h
+++ b/third_party/libaddressinput/chromium/cpp/src/retriever.h
@@ -33,7 +33,7 @@ class Storage;
// Manages downloading data and caching it locally. Sample usage:
// Storage* storage = ...;
// Downloader* downloader = ...;
-// Retriever retriever("https://i18napis.appspot.com/ssl-address/",
+// Retriever retriever("https://i18napis.appspot.com/ssl-aggregate-address/",
// downloader, storage);
// retriever.Retrieve("data/CA/AB--fr",
// BuildCallback(this, &MyClass::OnDataRetrieved));
@@ -65,15 +65,15 @@ class Retriever {
const std::string& downloaded_data);
// Returns the URL where the |key| can be retrieved. For example, returns
- // "https://i18napis.appspot.com/ssl-address/data/US" for input "data/US".
- // Assumes that the input string is a valid URL segment.
+ // "https://i18napis.appspot.com/ssl-aggregate-address/data/US" for input
+ // "data/US". Assumes that the input string is a valid URL segment.
std::string GetUrlForKey(const std::string& key) const;
// Returns the key for the |url|. For example, returns "data/US" for
- // "https://i18napis.appspot.com/ssl-address/data/US". If the |url| does not
- // start with |validation_data_url| that was passed to the constructor, then
- // returns an empty string. (This can happen if the user of the library
- // returns a bad URL in their Downloader implementation.)
+ // "https://i18napis.appspot.com/ssl-aggregate-address/data/US". If the |url|
+ // does not start with |validation_data_url| that was passed to the
+ // constructor, then returns an empty string. (This can happen if the user of
+ // the library returns a bad URL in their Downloader implementation.)
std::string GetKeyForUrl(const std::string& url) const;
// Returns true if the |url| starts with |validation_data_url| that was passed

Powered by Google App Engine
This is Rietveld 408576698