summaryrefslogtreecommitdiff
path: root/include/mbgl/storage/file_source.hpp
Commit message (Collapse)AuthorAgeFilesLines
* [core] Fix performance-unnecessary-value-param errors in header filesThiago Marcos P. Santos2020-04-171-1/+3
| | | | As reported by clang-tidy-8.
* [core] Fix google-default-arguments errors in header filesThiago Marcos P. Santos2020-04-171-1/+1
| | | | As reported by clang-tidy-8.
* Bump mapbox-base to 1.2.0Alexander Shalamov2020-03-231-1/+1
|
* [core] Move setResourceTransform() to FileSource interfaceMikhail Pozdnyakov2020-02-261-0/+4
|
* [core] Consolidate file source keys in the generic FileSource headerMikhail Pozdnyakov2020-02-251-0/+20
| | | | | Thus we do not need to include specific headers to use `{set|get}Property` API with key constants.
* [core] Modularize FileSource codebase (#15768)Alexander Shalamov2020-01-131-13/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [core] Introduce FileSourceManager and use it for default platform impl - Add `FileSourceManager` interface that provides access to `FileSource` instances and means of registering / unregistering `FileSource` factories - Split `DefaultFileSource` into smaller parts - Add `DatabaseFileSource` interface and it's default implementation - Remove inter-dependencies between concrete `FileSource` classes * [build] Add files to next build system * [core] Add generic property setters / getters * [core] Remove setOnlineStatus from OnlineFileSource interface * [core] Hide threading implementation details from DatabaseFileSource interface * [core] Make DB file source methods virtual * [core] Add documentation for DatabaseFileSource and rename one method * [core] Use simple callback instead of ActorRef * [core] Remove ActorRef from OnlineFileSource public header * [core] Add callback to FileSource::forward async API * [core] Pass OfflineRegionDefinition by value * [core] Update tests to use modular file sources * [core] Update unit tests * [core] Update unit tests after rebase * [core] Backport low prio fix for cached requests * [core] Backport pack database * [core] Return removed factory from unRegisterFileSourceFactory * [core] Rename shadowed args in onlinefilesource * [core] Remove simple std::function callback aliases * [core] Expose online file source property keys in public header file * [test-runner] Add proxy file source test runner * [cache] Update mbgl-cache utility to use new file source * [metrics] Rebaseline binary size metrics * [offline] Update offline utility * [core] Update changelog
* [core] Make FileSource API clearerMikhail Pozdnyakov2019-05-141-6/+8
|
* [core] Remove file source from public Map ctorBruno de Oliveira Abinader2019-03-201-0/+12
|
* [core] make forcing cache/network only more explicitKonstantin Käfer2017-10-121-3/+3
| | | | | | Previously, we used the existence of a `prior*` field in the Resource object as an indication for whether we should consult the cache or not. However, this is prone to error, since a failed cache lookup won't set any prior fields. Therefore, we manually set `priorExpires` to 0. This in turn triggered another bug where generated wrong expiration timestamps when the server response we got was expired (or expired between sending and receiving). This commit changes the flags so that we can now explicitly request CacheOnly/NetworkOnly (or All) loading methods, rather than the implicit Optional/Required naming scheme.
* [core] only perform optional requests if the FileSource supports itKonstantin Käfer2016-06-101-0/+8
|
* [core] use #pragma once instead of ifdef include guardsKonstantin Käfer2016-05-251-4/+1
|
* [core] Unify FileRequest and WorkRequestJohn Firebaugh2016-03-241-7/+3
|
* [core] add namespace comment to closing braceKonstantin Käfer2015-12-031-1/+1
|
* [core] Use std::unique_ptr for FileSource requestJohn Firebaugh2015-11-161-11/+13
|
* [core] Pass a value to response callback, not a referenceJohn Firebaugh2015-11-161-1/+1
|
* [core] Do not pass uv_loop_t aroundThiago Marcos P. Santos2015-11-161-3/+1
| | | | This should be abstracted by util::RunLoop
* Replace mbgl::util::make_unique<> with std::make_unique<>Konstantin Käfer2015-05-261-1/+0
|
* Remove unusedJohn Firebaugh2015-05-131-4/+0
| | | | | There are no longer any requests made that don't have a run loop to dispatch back to.
* Remove Environment::terminate and associated codeJohn Firebaugh2015-04-281-11/+3
| | | | Fixes #1336
* scope Requests to an Environment object for easier cancelationKonstantin Käfer2015-03-061-2/+10
| | | | | | | | | we are now scoping all file requests to an environment object. The FileSource implementation treats this as an opaque pointer, but allows canceling all Requests that are associated with that pointer. This is necessary to abort all file requests that originated from a particular Map object. Aborting a file request is different from canceling a file request: A canceled request doesn't have its callback called, while an aborted request will have its callback called with an error, indicating that the environment is going to be shut down.
* rewrite storage layer to be independent of the Map's event loopKonstantin Käfer2015-02-041-11/+20
|
* Move setAccessToken to CachingHTTPFileSourceJohn Firebaugh2014-12-041-1/+1
|
* Add CachingHTTPFileSource::clearLoop()John Firebaugh2014-12-041-0/+3
| | | | | | | So loop state can be cleaned up in the appropriate thread. This is a hack; loop needs to be externalized from Map. Fixes #686
* Move setReachability to CachingHTTPFileSourceJohn Firebaugh2014-12-041-1/+0
|
* remove usage of relative pathsKonstantin Käfer2014-12-041-2/+2
|
* make most headers privateKonstantin Käfer2014-12-041-2/+3
|
* Add virtual destructor for FileSourceJohn Firebaugh2014-12-041-0/+1
|
* break out FileSource as an abstract classMike Morris2014-12-031-30/+7
| | | | add CachingHTTPFileSource implementation
* Use noncopyableJohn Firebaugh2014-11-211-7/+2
|
* add reachabilityKonstantin Käfer2014-09-291-0/+2
|
* use the default cache location on ios to avoid writing to unwritable file ↵Konstantin Käfer2014-09-241-1/+1
| | | | system locations
* use util::ptr as a wrapper around std::shared_ptr that asserts nonemptinessKonstantin Käfer2014-09-241-2/+1
|
* do 304 requests and cache them in sqliteKonstantin Käfer2014-09-241-0/+54