diff options
Diffstat (limited to 'include/mbgl/storage')
-rw-r--r-- | include/mbgl/storage/caching_http_file_source.hpp | 11 | ||||
-rw-r--r-- | include/mbgl/storage/file_source.hpp | 2 |
2 files changed, 9 insertions, 4 deletions
diff --git a/include/mbgl/storage/caching_http_file_source.hpp b/include/mbgl/storage/caching_http_file_source.hpp index f566acf49e..6d7d852d2a 100644 --- a/include/mbgl/storage/caching_http_file_source.hpp +++ b/include/mbgl/storage/caching_http_file_source.hpp @@ -23,9 +23,11 @@ public: bool hasLoop(); void clearLoop(); - // Stores and retrieves the base path/URL for relative requests - void setBase(const std::string &value); - const std::string &getBase() const; + // Set the base path/URL for relative requests + void setBase(std::string); + + // Set the Mapbox API access token + void setAccessToken(std::string); std::unique_ptr<Request> request(ResourceType type, const std::string &url); @@ -37,6 +39,9 @@ public: private: std::thread::id thread_id; + // Mapbox API access token. + std::string accessToken; + // Path to the cache database. std::string path; diff --git a/include/mbgl/storage/file_source.hpp b/include/mbgl/storage/file_source.hpp index 69a0060f6a..23a1462ae8 100644 --- a/include/mbgl/storage/file_source.hpp +++ b/include/mbgl/storage/file_source.hpp @@ -21,7 +21,7 @@ public: virtual bool hasLoop() = 0; virtual void clearLoop() = 0; - virtual void setBase(const std::string &value) = 0; + virtual void setBase(std::string) = 0; virtual std::unique_ptr<Request> request(ResourceType type, const std::string &url) = 0; virtual void prepare(std::function<void()> fn) = 0; }; |