summaryrefslogtreecommitdiff
path: root/include/mbgl/storage/resource_options.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/storage/resource_options.hpp')
-rw-r--r--include/mbgl/storage/resource_options.hpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/mbgl/storage/resource_options.hpp b/include/mbgl/storage/resource_options.hpp
index 6d603b8cca..53350f55c2 100644
--- a/include/mbgl/storage/resource_options.hpp
+++ b/include/mbgl/storage/resource_options.hpp
@@ -97,6 +97,21 @@ public:
uint64_t maximumCacheSize() const;
/**
+ * @brief Sets whether to support cache-only requests.
+ *
+ * @return Whether or not cache-only requests are supported.
+ */
+ bool supportsCacheOnlyRequests() const;
+
+ /**
+ * @brief Gets the previously set (or default) support for cache-only requests.
+ *
+ * @param Whether or not cache-only requests are supported.
+ * @return reference to ResourceOptions for chaining options together.
+ */
+ ResourceOptions& withCacheOnlyRequestsSupport(bool);
+
+ /**
* @brief Sets the platform context. A platform context is usually an object
* that assists the creation of a file source.
*