diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2015-04-27 13:05:30 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2015-04-28 09:16:26 -0400 |
commit | c0b75f1af77e78e309cb18807de74f3788488a7a (patch) | |
tree | 3a98bb801f7c622c6443dd445836e4528a30682c /include/mbgl/storage/file_source.hpp | |
parent | 8e5fa341ebdc1699f08a1dbf4b0dfd98a9969948 (diff) | |
download | qtlocation-mapboxgl-c0b75f1af77e78e309cb18807de74f3788488a7a.tar.gz |
Remove Environment::terminate and associated code
Fixes #1336
Diffstat (limited to 'include/mbgl/storage/file_source.hpp')
-rw-r--r-- | include/mbgl/storage/file_source.hpp | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/include/mbgl/storage/file_source.hpp b/include/mbgl/storage/file_source.hpp index 30e88c39f6..535c41e819 100644 --- a/include/mbgl/storage/file_source.hpp +++ b/include/mbgl/storage/file_source.hpp @@ -15,7 +15,6 @@ typedef struct uv_loop_s uv_loop_t; namespace mbgl { class Request; -class Environment; class FileSource : private util::noncopyable { protected: @@ -28,19 +27,12 @@ public: // These can be called from any thread. The callback will be invoked in the loop. // You can only cancel a request from the same thread it was created in. - virtual Request *request(const Resource &resource, uv_loop_t *loop, const Environment &env, - Callback callback) = 0; - virtual void cancel(Request *request) = 0; + virtual Request* request(const Resource&, uv_loop_t*, Callback) = 0; + virtual void cancel(Request*) = 0; // These can be called from any thread. The callback will be invoked in an arbitrary other thread. // You cannot cancel these requests. - virtual void request(const Resource &resource, const Environment &env, Callback callback) = 0; - - // This can be called from any thread. All requests with the environment pointer env should be - // notified as errored. Note that this is /different/ from canceling requests; a canceled - // request's callback is never called, while an aborted request's callback is called with - // a error message. - virtual void abort(const Environment &env) = 0; + virtual void request(const Resource&, Callback) = 0; }; } |