diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/mbgl/storage/resource.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/mbgl/storage/resource.hpp b/include/mbgl/storage/resource.hpp index b7b394efc2..bee359e36d 100644 --- a/include/mbgl/storage/resource.hpp +++ b/include/mbgl/storage/resource.hpp @@ -33,6 +33,8 @@ public: Offline }; + enum class StoragePolicy : bool { Permanent, Volatile }; + struct TileData { std::string urlTemplate; uint8_t pixelRatio; @@ -96,6 +98,7 @@ public: optional<std::string> priorEtag = {}; std::shared_ptr<const std::string> priorData; Duration minimumUpdateInterval{Duration::zero()}; + StoragePolicy storagePolicy{StoragePolicy::Permanent}; }; inline bool Resource::hasLoadingMethod(Resource::LoadingMethod method) const { |