forked from organicmaps/organicmaps-tmp
using separate MetaServer for mandatory resources for better user experience.
This commit is contained in:
parent
07c17e4eea
commit
dd6baaa78e
3 changed files with 7 additions and 1 deletions
|
@ -226,7 +226,7 @@ extern "C"
|
|||
CallbackT onProgress(bind(&DownloadFileProgress, jni::make_global_ref(observer), _1));
|
||||
|
||||
g_currentRequest.reset(downloader::HttpRequest::PostJson(
|
||||
GetPlatform().MetaServerUrl(), curFile.m_fileName,
|
||||
GetPlatform().ResourcesMetaServerUrl(), curFile.m_fileName,
|
||||
bind(&DownloadURLListFinished, _1, onFinish, onProgress)));
|
||||
|
||||
return ERR_FILE_IN_PROGRESS;
|
||||
|
|
|
@ -31,6 +31,11 @@ string Platform::HashUniqueID(string const & s)
|
|||
return base64::encode(xoredHash);
|
||||
}
|
||||
|
||||
string Platform::ResourcesMetaServerUrl() const
|
||||
{
|
||||
return "http://active.resources.servers.url";
|
||||
}
|
||||
|
||||
string Platform::MetaServerUrl() const
|
||||
{
|
||||
return "http://active.servers.url";
|
||||
|
|
|
@ -123,6 +123,7 @@ public:
|
|||
|
||||
/// @return url for clients to download maps
|
||||
string MetaServerUrl() const;
|
||||
string ResourcesMetaServerUrl() const;
|
||||
|
||||
/// @return JSON-encoded list of urls if metaserver is unreachable
|
||||
string DefaultUrlsJSON() const;
|
||||
|
|
Loading…
Add table
Reference in a new issue