diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2019-06-13 18:56:35 +0300 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2019-06-25 20:10:21 +0300 |
commit | 1a9e07e4ed930f33a28d0eac800bccaa2a84570e (patch) | |
tree | da680c8cb603e4427c42ac90ad54480011ffeec2 /include/mbgl/storage/resource_options.hpp | |
parent | 8367c2ed5c32eae1364e5fc27e734631cf69aae3 (diff) | |
download | qtlocation-mapboxgl-1a9e07e4ed930f33a28d0eac800bccaa2a84570e.tar.gz |
[core] DefaultFileSource dynamic support for cache-only requests
Diffstat (limited to 'include/mbgl/storage/resource_options.hpp')
-rw-r--r-- | include/mbgl/storage/resource_options.hpp | 15 |
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. * |