summaryrefslogtreecommitdiff
path: root/src/mbgl/storage
Commit message (Collapse)AuthorAgeFilesLines
* [core] Fix readability-* errorsThiago Marcos P. Santos2020-03-301-1/+1
| | | | As reported by clang-tidy-8.
* [core] Fix bugprone-string-integer-assignment errorsThiago Marcos P. Santos2020-03-301-1/+1
| | | | As reported by clang-tidy-8.
* [core] FileSourceManager::getFileSource() returns PassRefPtrMikhail Pozdnyakov2020-02-261-2/+1
|
* [core] Use std::list instead of std::map for factory instanceAlexander Shalamov2020-02-031-9/+21
| | | | | Factory 'get' method can be invoked recursively and stable iterators are required to guarantee safety.
* [core] Move resource loader to dedicated thread with schedulerAlexander Shalamov2020-01-231-1/+0
|
* [core] Modularize FileSource codebase (#15768)Alexander Shalamov2020-01-138-57/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * [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] Fix performance-move-const-argThiago Marcos P. Santos2019-09-251-2/+2
|
* [core] DefaultFileSource dynamic support for cache-only requestsBruno de Oliveira Abinader2019-06-251-0/+10
|
* [core] Remove priority from the constructorThiago Marcos P. Santos2019-05-281-20/+12
| | | | Make the constructor less verbose and set good defaults.
* [core] clang-tidy fixesKonstantin Käfer2019-04-051-1/+1
|
* [core] ResoureOptions explicit copy via clone()Bruno de Oliveira Abinader2019-03-251-1/+5
|
* [core] Fix signature of fluent interface settersBruno de Oliveira Abinader2019-03-231-12/+12
|
* [core] Replace shared_ptr with unique_ptr in {Map,Resource}OptionsBruno de Oliveira Abinader2019-03-221-13/+16
|
* [core] Remove file source from public Map ctorBruno de Oliveira Abinader2019-03-203-1/+111
|
* [core] Fixed {prefix} evaluationMinh Nguyễn2018-11-211-4/+4
| | | | This appears to have been an attempt to use the std::string fill constructor, but it ended up creating a one-character-long string and attempting to overwrite the null terminator.
* [core] define number of concurrent downloads in online file source variableHuyen Chau Nguyen2018-11-151-2/+0
|
* [core] add priorities to resourcesHuyen Chau Nguyen2018-10-231-12/+20
| | | | | - priorities can be low or regular - offline downloads should have low priority to not throttle "regular requests"
* [core] remove some uses of <iostream> and <sstream>Konstantin Käfer2018-10-231-25/+0
|
* [core] don't use floating point versions of pow/logKonstantin Käfer2018-06-041-2/+2
| | | | | | GLIBC 2.27 added new versioned symbols of powf and logf, while the double versions of pow and log remained stable. Prefer the double version to avoid introducing a dependency on a newer version of GLIBC than strictly necessary. See https://lists.gnu.org/archive/html/info-gnu/2018-02/msg00000.html
* [core] Align URL token replacement behavior with GL JSJohn Firebaugh2018-05-181-4/+4
| | | | I.e. preserve unknown tokens in URLs rather than replacing them with an empty string.
* [core] align implementations of local and asset file sourceKonstantin Käfer2018-01-251-0/+2
|
* [core] correctly alter sprite URLs when attaching sprite.png/sprite.json ↵Konstantin Käfer2017-10-171-8/+10
| | | | filenames
* [core] make forcing cache/network only more explicitKonstantin Käfer2017-10-121-2/+2
| | | | | | 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.
* [build] split out DefaultFileSource and dependents to a separate targetKonstantin Käfer2017-09-282-68/+0
| | | | We don't want to link it into the node bindings, so keep it in a separate target
* [core] remove dependencies on RunLoopIvo van Dongen2017-08-091-2/+2
|
* [core] finish must-revalidate supportKonstantin Käfer2017-08-081-0/+1
|
* [core] Introduce the ResourceTransformThiago Marcos P. Santos2017-06-261-0/+13
| | | | Wrapper for transforming URLs on the OnlineFileSource.
* [core] Rename ThreadedObject to ThreadThiago Marcos P. Santos2017-06-212-4/+4
| | | | | Now that the old Thread class is gone, we can give ThreadedObject a better name.
* [core] Convert LocalFileSource to ThreadedObjectThiago Marcos P. Santos2017-06-211-2/+3
|
* [core] Convert AssetFileSource to ThreadedObjectThiago Marcos P. Santos2017-06-211-2/+3
|
* [core] Added the ThreadedObjectThiago Marcos P. Santos2017-06-212-0/+68
| | | | Actor model version of util::Thread.
* [core] Offline support for Image SourcesAsheem Mamoowala2017-06-011-0/+7
|
* [core] remove trailing whitespace, add trailing newlines, add space after //Konstantin Käfer2017-01-271-1/+1
|
* [core] LocalFileSource implementation and testsIvo van Dongen2016-09-301-0/+25
|
* [core] ensure network::Reachable is called only onceIvo van Dongen2016-09-231-3/+3
|
* [core] Convert uses of std::set to std::unordered_set (#6325)Lucas Wojciechowski2016-09-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | * src/mbgl/annotation/annotation_manager.hpp * src/mbgl/algorithm/update_renderables.hpp * src/mbgl/geometry/glyph_atlas.hpp * src/mbgl/renderer/painter.cpp and src/mbgl/renderer/render_item.hpp * src/mbgl/renderer/symbol_bucket.hpp and src/mbgl/text/glyph_store.hpp * src/mbgl/sprite/sprite_atlas.hpp * include/mbgl/storage/network_status.hpp * src/mbgl/text/collision_tile.cpp * src/mbgl/style/update_batch.hpp * platform/default/mbgl/storage/offline_download.hpp * Add GlyphRangeSet typedef * Fix whitespace & unused imports
* [core] OnlineFileSource - rate limitIvo van Dongen2016-09-131-2/+4
|
* [core] support "scheme": "tms" in TileJSON filesKonstantin Käfer2016-08-161-0/+4
|
* [core] Revert workaround for std::atomic on ARMv5Thiago Marcos P. Santos2016-07-131-1/+1
| | | | | | Got fix on r12. https://github.com/android-ndk/ndk/issues/31
* Quadkey tokens in tile URL templates, limited WMS support (#5628)Minh Nguyễn2016-07-121-0/+38
| | | | | | | | | | | | | | * [core] Quadkey tokens in tile URL templates Fixes #5485. * [core] WMS tokens in tile URL templates Fixes #822. * [macos] Added WMS debug style Added a style to the macosapp resource bundle that can be used to test WMS support. To use it, zoom in to somewhere in New Jersey, then go to View ‣ Custom Style and enter “wms.json”.
* [core] Fix typo in mbgl::ResponseBruno de Oliveira Abinader2016-06-181-1/+1
| | | | WIP: Use Enum<Type> for mbgl::Storage::Response::Value.
* [tidy] Check modernize-pass-by-valueBruno de Oliveira Abinader2016-06-131-2/+2
| | | | Ref: http://clang.llvm.org/extra/clang-tidy/checks/modernize-pass-by-value.html
* [tidy] Check llvm-namespace-commentBruno de Oliveira Abinader2016-06-131-1/+1
| | | | Ref: http://clang.llvm.org/extra/clang-tidy/checks/llvm-namespace-comment.html
* [android] #5254 - fix ARMv5 supportThiago Marcos P. Santos2016-06-061-1/+1
| | | | Backported patches fixing ARMv5 support for issue #3985.
* [core] use #pragma once instead of ifdef include guardsKonstantin Käfer2016-05-252-8/+2
|
* [core] move from microsecond precision timestamp to integer second precisionKonstantin Käfer2016-05-131-2/+8
|
* [core] Use the proper type for font stacksJohn Firebaugh2016-04-221-2/+2
|
* [Qt] Introduce the Qt HTTPRequest and HTTPFileSourceThiago Marcos P. Santos2016-04-201-2/+2
|
* [all] Replace HTTPContextBase/HTTPRequestBase with FileSourceJohn Firebaugh2016-04-145-90/+25
|
* [core] Unify FileRequest and WorkRequestJohn Firebaugh2016-03-241-1/+1
|