diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2017-02-16 18:28:07 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2017-02-20 14:36:27 +0100 |
commit | e2d8a83664a2705edc762ac00dcaf7eead2ae6fd (patch) | |
tree | 93b0bfdb9d6f93ddcee9c8699976ea7cee110c40 /include/mbgl/storage/default_file_source.hpp | |
parent | 8669f933fdaf957253d7ec6b7453b95e93adc1b1 (diff) | |
download | qtlocation-mapboxgl-e2d8a83664a2705edc762ac00dcaf7eead2ae6fd.tar.gz |
[core] add ability to transform URLs before they're requested from the Internet
Diffstat (limited to 'include/mbgl/storage/default_file_source.hpp')
-rw-r--r-- | include/mbgl/storage/default_file_source.hpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mbgl/storage/default_file_source.hpp b/include/mbgl/storage/default_file_source.hpp index 1ff440e4e5..a15ee9a29b 100644 --- a/include/mbgl/storage/default_file_source.hpp +++ b/include/mbgl/storage/default_file_source.hpp @@ -36,6 +36,8 @@ public: void setAccessToken(const std::string&); std::string getAccessToken() const; + void setResourceTransform(std::function<std::string(Resource::Kind, std::string&&)>); + std::unique_ptr<AsyncRequest> request(const Resource&, Callback) override; /* |