From f510b577aadad43c2ade55c0be3f8289209d559f Mon Sep 17 00:00:00 2001 From: Chris Loer Date: Tue, 16 Oct 2018 14:42:20 -0700 Subject: [core] Promote DefaultFileSource::put to general use. --- include/mbgl/storage/default_file_source.hpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/mbgl/storage/default_file_source.hpp b/include/mbgl/storage/default_file_source.hpp index 929fb3d7c3..6ce7e8c6f9 100644 --- a/include/mbgl/storage/default_file_source.hpp +++ b/include/mbgl/storage/default_file_source.hpp @@ -160,10 +160,20 @@ public: * expired while the file source was paused. */ void resume(); + + /* + * Insert the provided resource into the ambient cache + * + * Consumers of the resource will expect the uncompressed version; the + * OfflineDatabase will determine whether to compress the data on disk. + * This call is asynchronous: the data may not be immediately available + * for in-progress requests, although subsequent requests should have + * access to the cached data. + */ + void put(const Resource&, const Response&); // For testing only. void setOnlineStatus(bool); - void put(const Resource&, const Response&); class Impl; -- cgit v1.2.1