summaryrefslogtreecommitdiff
path: root/include/mbgl/storage/online_file_source.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/storage/online_file_source.hpp')
-rw-r--r--include/mbgl/storage/online_file_source.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/mbgl/storage/online_file_source.hpp b/include/mbgl/storage/online_file_source.hpp
index f432a8886e..51cfc5a2a1 100644
--- a/include/mbgl/storage/online_file_source.hpp
+++ b/include/mbgl/storage/online_file_source.hpp
@@ -16,6 +16,10 @@ public:
void setAccessToken(const std::string& t) { accessToken = t; }
std::string getAccessToken() const { return accessToken; }
+ using ResourceTransform =
+ std::function<std::unique_ptr<AsyncRequest>(Resource::Kind, std::string&&, std::function<void(std::string&&)>)>;
+ void setResourceTransform(ResourceTransform&& cb);
+
std::unique_ptr<AsyncRequest> request(const Resource&, Callback) override;
private: