summaryrefslogtreecommitdiff
path: root/include/mbgl/storage/default_file_source.hpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2015-02-16 18:30:19 -0800
committerKonstantin Käfer <mail@kkaefer.com>2015-02-16 18:30:19 -0800
commitfe0baffe0dfbf369f422e175c0fcf3dda9055118 (patch)
treed404bd67ec2b338f37e4de958c74c44c841a77b5 /include/mbgl/storage/default_file_source.hpp
parent8d3c2b3d303adaf2c9caa91356183d9b40cdfeab (diff)
downloadqtlocation-mapboxgl-fe0baffe0dfbf369f422e175c0fcf3dda9055118.tar.gz
update uv_zip and add tests
Diffstat (limited to 'include/mbgl/storage/default_file_source.hpp')
-rw-r--r--include/mbgl/storage/default_file_source.hpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/mbgl/storage/default_file_source.hpp b/include/mbgl/storage/default_file_source.hpp
index 21048e99e5..86e2414041 100644
--- a/include/mbgl/storage/default_file_source.hpp
+++ b/include/mbgl/storage/default_file_source.hpp
@@ -18,8 +18,8 @@ class SharedRequestBase;
class DefaultFileSource : public FileSource {
public:
- DefaultFileSource(FileCache *cache);
- DefaultFileSource(FileCache *cache, uv_loop_t *loop);
+ DefaultFileSource(FileCache *cache, const std::string &root = "");
+ DefaultFileSource(FileCache *cache, uv_loop_t *loop, const std::string &root = "");
~DefaultFileSource();
Request *request(const Resource &resource, uv_loop_t *loop, Callback callback);
@@ -30,6 +30,9 @@ public:
void notify(SharedRequestBase *sharedRequest, const std::set<Request *> &observers,
std::shared_ptr<const Response> response, FileCache::Hint hint);
+public:
+ const std::string assetRoot;
+
private:
struct ActionDispatcher;
struct AddRequestAction;