summaryrefslogtreecommitdiff
path: root/include/mbgl/storage/resource.hpp
Commit message (Collapse)AuthorAgeFilesLines
* [core] make forcing cache/network only more explicitKonstantin Käfer2017-10-121-7/+36
| | | | | | 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] finish must-revalidate supportKonstantin Käfer2017-08-081-0/+1
|
* [core] Offline support for Image SourcesAsheem Mamoowala2017-06-011-2/+4
|
* [core] support "scheme": "tms" in TileJSON filesKonstantin Käfer2016-08-161-0/+2
|
* [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
* [core] Rationalize naming for style-related codeJohn Firebaugh2016-06-021-1/+1
|
* [core] use #pragma once instead of ifdef include guardsKonstantin Käfer2016-05-251-4/+1
|
* [core] move from microsecond precision timestamp to integer second precisionKonstantin Käfer2016-05-131-4/+12
|
* [core] Use the proper type for font stacksJohn Firebaugh2016-04-221-1/+2
|
* [core] use std::move() to prevent copiesKonstantin Käfer2016-02-111-1/+1
|
* [core] Moving caching logic to DefaultFileSourceJohn Firebaugh2016-02-101-2/+2
| | | | This results in OnlineFileSource containing precisely the logic we want for reuse by OfflineFileSource, and no more.
* [core] Change TileData pixelRatio to an integerJohn Firebaugh2016-01-291-1/+1
|
* [core] Rationalize Resource initializationJohn Firebaugh2016-01-291-14/+27
|
* [core] Ensure that FileSource has access to tile URL, pixelRatio, x, y, zJohn Firebaugh2016-01-291-0/+12
|
* [core] Include prior values of caching headers in ResourceJohn Firebaugh2016-01-221-12/+13
| | | | This allows the FileSource interface itself to support revalidation. We could (and probably should) now rewrite HTTPContextBase implementations as FileSource implementations.
* [core] add namespace comment to closing braceKonstantin Käfer2015-12-031-1/+1
|
* Support v8 sprite, glyph, and style mapbox:// urlsLucas Wojciechowski2015-08-211-2/+2
|
* DefaultFileSource has responsibility for handling mapbox:// URLsJohn Firebaugh2015-05-261-4/+6
|
* don't override std::hashKonstantin Käfer2015-02-041-9/+5
|
* rewrite storage layer to be independent of the Map's event loopKonstantin Käfer2015-02-041-0/+39