diff --git a/include/mbgl/storage/file_source.hpp b/include/mbgl/storage/file_source.hpp index 868dbf734..2270038c4 100644 --- a/include/mbgl/storage/file_source.hpp +++ b/include/mbgl/storage/file_source.hpp @@ -4,9 +4,7 @@ #include #include -#include #include -#include #include #include @@ -16,8 +14,10 @@ namespace mbgl { class ResourceOptions; class ResourceTransform; -class FileSource : private util::noncopyable { +class FileSource { public: + FileSource(const FileSource&) = delete; + FileSource& operator=(const FileSource&) = delete; virtual ~FileSource() = default; using Callback = std::function; @@ -37,12 +37,14 @@ public: return false; } - // Factory for creating a platform-specific file source. - static std::shared_ptr createPlatformFileSource(const ResourceOptions&); - // Singleton for obtaining the shared platform-specific file source. A single instance of a file source is provided // for each unique combination of a Mapbox API base URL, access token, cache path and platform context. static std::shared_ptr getSharedFileSource(const ResourceOptions&); + +protected: + FileSource() = default; + // Factory for creating a platform-specific file source. + static std::shared_ptr createPlatformFileSource(const ResourceOptions&); }; } // namespace mbgl