summaryrefslogtreecommitdiff
path: root/include/mbgl/storage/resource.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/storage/resource.hpp')
-rw-r--r--include/mbgl/storage/resource.hpp3
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 {