From 86c8446d3a4390ff6577d070ac8b5fa3ad3c5cd1 Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Mon, 11 Jan 2016 12:52:41 -0800 Subject: [core] Simplify asset:// implementation * Move asset:// URL handling to DefaultFileSource. * AssetFileSource implements FileSource interface and follows familiar implementation patterns. * Move default implementation to platform/default, zip implementation to platform/android. * Don't bother with modified / expires / etag -- assets are not cached so it doesn't matter. * Don't bother with interleaving individual IO calls on the implementation thread. That adds a lot of complexity for very little benefit. --- include/mbgl/storage/online_file_source.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/mbgl/storage/online_file_source.hpp') diff --git a/include/mbgl/storage/online_file_source.hpp b/include/mbgl/storage/online_file_source.hpp index 2164d40032..1725af844d 100644 --- a/include/mbgl/storage/online_file_source.hpp +++ b/include/mbgl/storage/online_file_source.hpp @@ -12,7 +12,7 @@ template class Thread; class OnlineFileSource : public FileSource { public: - OnlineFileSource(FileCache *cache, const std::string &root = ""); + OnlineFileSource(FileCache*); ~OnlineFileSource() override; void setAccessToken(const std::string& t) { accessToken = t; } -- cgit v1.2.1