summaryrefslogtreecommitdiff
path: root/include/mbgl/storage
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2016-03-24 11:33:09 -0700
committerJohn Firebaugh <john.firebaugh@gmail.com>2016-04-14 14:18:19 -0700
commit6d88a23a60bc0a6dc9945bf09a659d15dd827192 (patch)
tree502272909f636b2eef8b40636ce6330211753da1 /include/mbgl/storage
parent7bb74ac8db190c8e73c013879b95dc85ea38c2ae (diff)
downloadqtlocation-mapboxgl-6d88a23a60bc0a6dc9945bf09a659d15dd827192.tar.gz
[core] Remove internal threading from OnlineFileRequest
There's no need to do the work that OnlineFileRequest does on a separate thread from the DefaultFileSource thread, and having AsyncTasks proxy to other tasks across a thread boundary adds needless complexity.
Diffstat (limited to 'include/mbgl/storage')
-rw-r--r--include/mbgl/storage/online_file_source.hpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/include/mbgl/storage/online_file_source.hpp b/include/mbgl/storage/online_file_source.hpp
index b52dce35f0..fd742a54c4 100644
--- a/include/mbgl/storage/online_file_source.hpp
+++ b/include/mbgl/storage/online_file_source.hpp
@@ -5,10 +5,6 @@
namespace mbgl {
-namespace util {
-template <typename T> class Thread;
-} // namespace util
-
class OnlineFileSource : public FileSource {
public:
OnlineFileSource();
@@ -20,10 +16,10 @@ public:
std::unique_ptr<AsyncRequest> request(const Resource&, Callback) override;
private:
- friend class OnlineFileRequestImpl;
+ friend class OnlineFileRequest;
class Impl;
- const std::unique_ptr<util::Thread<Impl>> thread;
+ const std::unique_ptr<Impl> impl;
std::string accessToken;
};