diff options
author | Ivo van Dongen <info@ivovandongen.nl> | 2018-02-22 13:38:26 +0200 |
---|---|---|
committer | Ivo van Dongen <ivovandongen@users.noreply.github.com> | 2018-06-04 12:09:32 +0300 |
commit | d928908ec849097440fd028454c538f1c1632a1e (patch) | |
tree | 9b436f4cdaf247d017fa7925d0421f1c36dceed9 /platform/default/mbgl/storage/offline_download.hpp | |
parent | 4146d8d9be3a732a626b0e537ed1490af9bc0427 (diff) | |
download | qtlocation-mapboxgl-d928908ec849097440fd028454c538f1c1632a1e.tar.gz |
[core] offline database - batch region resource inserts
Diffstat (limited to 'platform/default/mbgl/storage/offline_download.hpp')
-rw-r--r-- | platform/default/mbgl/storage/offline_download.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/platform/default/mbgl/storage/offline_download.hpp b/platform/default/mbgl/storage/offline_download.hpp index 437f221c11..cffac1665b 100644 --- a/platform/default/mbgl/storage/offline_download.hpp +++ b/platform/default/mbgl/storage/offline_download.hpp @@ -46,7 +46,8 @@ private: * is deactivated, all in progress requests are cancelled. */ void ensureResource(const Resource&, std::function<void (Response)> = {}); - bool checkTileCountLimit(const Resource& resource); + + void onMapboxTileCountLimitExceeded(); int64_t id; OfflineRegionDefinition definition; @@ -58,6 +59,7 @@ private: std::list<std::unique_ptr<AsyncRequest>> requests; std::unordered_set<std::string> requiredSourceURLs; std::deque<Resource> resourcesRemaining; + std::list<std::tuple<Resource, Response>> buffer; void queueResource(Resource); void queueTiles(style::SourceType, uint16_t tileSize, const Tileset&); |