diff options
Diffstat (limited to 'include/mbgl/storage/file_source_manager.hpp')
-rw-r--r-- | include/mbgl/storage/file_source_manager.hpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/mbgl/storage/file_source_manager.hpp b/include/mbgl/storage/file_source_manager.hpp index e62d321af7..4c6cd8e558 100644 --- a/include/mbgl/storage/file_source_manager.hpp +++ b/include/mbgl/storage/file_source_manager.hpp @@ -6,7 +6,7 @@ namespace mbgl { class ResourceOptions; - +class JointDatabaseStorage; /** * @brief A singleton class responsible for managing file sources. * @@ -32,6 +32,10 @@ public: // created, nullptr would be returned. PassRefPtr<FileSource> getFileSource(FileSourceType, const ResourceOptions&) noexcept; + // Returns shared instance of a joint database storage for the given options. + // Creates new instance, if needed. If new instance cannot be created, nullptr would be returned. + virtual PassRefPtr<JointDatabaseStorage> getDatabaseStorage(const ResourceOptions&) noexcept; + // Registers file source factory for a provided FileSourceType type. If factory for the // same type was already registered, will unregister previously registered factory. // Provided factory must not be null. |