summaryrefslogtreecommitdiff
path: root/include/mbgl/storage/default_file_source.hpp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-01-06 18:01:31 -0800
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-01-08 12:31:13 -0800
commite7b0b31d58997ce0c849129d07a97cb0740beb7e (patch)
treee7c10e36551b81b40fbfb57e3dcc3da3fa55546f /include/mbgl/storage/default_file_source.hpp
parent0a8fef1f516a2d230c34980b31d8e46d891941e1 (diff)
downloadqtlocation-mapboxgl-e7b0b31d58997ce0c849129d07a97cb0740beb7e.tar.gz
[core] Privatize SQLiteCache
Diffstat (limited to 'include/mbgl/storage/default_file_source.hpp')
-rw-r--r--include/mbgl/storage/default_file_source.hpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/mbgl/storage/default_file_source.hpp b/include/mbgl/storage/default_file_source.hpp
index 3689b9e932..83ea4adf5d 100644
--- a/include/mbgl/storage/default_file_source.hpp
+++ b/include/mbgl/storage/default_file_source.hpp
@@ -5,16 +5,17 @@
namespace mbgl {
-class FileCache;
-
class DefaultFileSource : public FileSource {
public:
- DefaultFileSource(FileCache*, const std::string& root = "");
+ DefaultFileSource(const std::string& cachePath = ":memory:", const std::string& root = "");
~DefaultFileSource() override;
void setAccessToken(const std::string&);
std::string getAccessToken() const;
+ void setMaximumCacheSize(uint64_t size);
+ void setMaximumCacheEntrySize(uint64_t size);
+
std::unique_ptr<FileRequest> request(const Resource&, Callback) override;
private: