summaryrefslogtreecommitdiff
path: root/platform/default/mbgl/storage/offline_download.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'platform/default/mbgl/storage/offline_download.hpp')
-rw-r--r--platform/default/mbgl/storage/offline_download.hpp19
1 files changed, 10 insertions, 9 deletions
diff --git a/platform/default/mbgl/storage/offline_download.hpp b/platform/default/mbgl/storage/offline_download.hpp
index 706cdf98d8..1a0d7536d8 100644
--- a/platform/default/mbgl/storage/offline_download.hpp
+++ b/platform/default/mbgl/storage/offline_download.hpp
@@ -1,7 +1,6 @@
- #pragma once
+#pragma once
#include <mbgl/storage/offline.hpp>
-#include <mbgl/style/types.hpp>
#include <list>
#include <set>
@@ -14,9 +13,11 @@ class FileSource;
class AsyncRequest;
class Resource;
class Response;
-class SourceInfo;
-class StyleParser;
-class Source;
+class Tileset;
+
+namespace style {
+class Parser;
+}
/**
* Coordinates the request and storage of all resources for an offline region.
@@ -37,9 +38,9 @@ private:
void activateDownload();
void deactivateDownload();
- std::vector<Resource> spriteResources(const StyleParser&) const;
- std::vector<Resource> glyphResources(const StyleParser&) const;
- std::vector<Resource> tileResources(SourceType, uint16_t, const SourceInfo&) const;
+ std::vector<Resource> spriteResources(const style::Parser&) const;
+ std::vector<Resource> glyphResources(const style::Parser&) const;
+ std::vector<Resource> tileResources(SourceType, uint16_t, const Tileset&) const;
/*
* Ensure that the resource is stored in the database, requesting it if necessary.
@@ -47,7 +48,7 @@ private:
* is deactivated, all in progress requests are cancelled.
*/
void ensureResource(const Resource&, std::function<void (Response)> = {});
- void ensureTiles(SourceType, uint16_t, const SourceInfo&);
+ void ensureTiles(SourceType, uint16_t, const Tileset&);
bool checkTileCountLimit(const Resource& resource);
int64_t id;