summaryrefslogtreecommitdiff
path: root/include/mbgl/storage/default_file_source.hpp
Commit message (Collapse)AuthorAgeFilesLines
* [core] Use the ResourceTransform instead of callbacksThiago Marcos P. Santos2017-06-261-1/+5
| | | | | Based on the actor model, can be considered safer to use since we don't need to worry about object lifetime anymore.
* [core] Rename ThreadedObject to ThreadThiago Marcos P. Santos2017-06-211-2/+2
| | | | | Now that the old Thread class is gone, we can give ThreadedObject a better name.
* [core] Convert DefaultFileSource to ThreadedObjectThiago Marcos P. Santos2017-06-211-2/+2
| | | | Fixes #6426
* [core] default file source - ensure thread safety for cached valuesIvo van Dongen2017-05-271-2/+7
|
* [core] default file source - ensure thread safety for local file and asset ↵Ivo van Dongen2017-05-271-2/+2
| | | | requests
* [android] use AAssetManager instead of libzipKonstantin Käfer2017-04-241-0/+3
|
* [ios] Guard against over calling pause or resumeJesse Bounds2017-03-181-3/+0
|
* [core] Cache file source base URL and access tokenJesse Bounds2017-03-011-0/+18
| | | | | This caches the base URL and access token values when they are set so that they can still be retrieved even when the thread is paused.
* [core] Add a pause/resume API to the DefaultFileSourceThiago Marcos P. Santos2017-02-251-0/+3
| | | | | It will halt the networking thread completely. Expired and error'ed tiles won't get re-requested until resume() is called again.
* [core] add ability to transform URLs before they're requested from the InternetKonstantin Käfer2017-02-201-0/+2
|
* [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/+1
|
* [core] allow offline region metadata to be updated (#6338)Molly Lloyd2016-09-201-0/+7
|
* [core] [android] - public api configurable base endpoint (#6309)Tobrun2016-09-151-0/+3
| | | add runloop to test
* [core] only perform optional requests if the FileSource supports itKonstantin Käfer2016-06-101-0/+4
|
* [core] use #pragma once instead of ifdef include guardsKonstantin Käfer2016-05-251-4/+1
|
* [core] Unify FileRequest and WorkRequestJohn Firebaugh2016-03-241-1/+1
|
* [core] Remove goOffline() from DefaultFileSourceThiago Marcos P. Santos2016-03-081-1/+0
| | | | Use the newly added NetworkStatus::Set().
* [core] Limit total number of offline Mapbox tilesJohn Firebaugh2016-02-241-0/+6
|
* [core] Add a descriptive comment about maximumCacheSizeJohn Firebaugh2016-02-241-0/+7
|
* [core] Eliminate maximumCacheEntrySizeJohn Firebaugh2016-02-101-2/+1
| | | | Instead, the eviction policy accounts for the actual size needed for an incoming put.
* [core] Implement an eviction policy for OfflineDatabaseJohn Firebaugh2016-02-101-20/+9
| | | | | | | | | | | | | When inserting an cached resource, or removing a region, remove least-recently used resources and tiles, not used by offline regions, until the used database size, as calculated by multiplying the number of in-use pages by the page size, is less than the maximum cache size minus 5 times the page size. In addition, OfflineDatabase may be configured to ignore cache puts of individual resources larger than a certain size. This policy is similar but not identical to the former SQLiteCache policy: * It accounts for offline, by exempting resources required by offline regions from eviction. * It must delete from two tables (resources and tiles), rather than one. Currently the strategy is naive: evict 50 rows at a time from each table. * It makes maximumCacheSize and maximumCacheEntrySize completely independent. The SQLiteCache implementation evicted when `usedSize > maximumCacheSize - 2 * maximumCacheEntrySize`. This evicts when `usedSize > maximumCacheSize - 5 * pageSize`. * It uses a non-unlimited default value for maximumCacheSize: 50 MB. We should have always had a limit in place; "a cache without an eviction policy is a resource leak".
* [core] Interface and implementation for offlineJohn Firebaugh2016-02-101-0/+77
|
* [core] Reimplement existing caching within an offline-capable database schemaJohn Firebaugh2016-02-101-6/+9
|
* [core] Moving caching logic to DefaultFileSourceJohn Firebaugh2016-02-101-0/+7
| | | | This results in OnlineFileSource containing precisely the logic we want for reuse by OfflineFileSource, and no more.
* [core] Eliminate platform::assetRoot()John Firebaugh2016-01-131-1/+1
| | | | I regenerated assets.zip so that all file paths have an `assets/` prefix, as the Android AssetFileSource implementation asserts, and removed `TEST_DATA` from the paths.
* [core] Privatize SQLiteCacheJohn Firebaugh2016-01-081-3/+4
|
* [core] Prepare for OfflineFileSourceJohn Firebaugh2015-12-211-14/+7
| | | | | * Rename existing DefaultFileSource to OnlineFileSource * Restore a DefaultFileSource that's a passthrough to OnlineFileSource
* [core] add namespace comment to closing braceKonstantin Käfer2015-12-031-2/+2
|
* [core] Use std::unique_ptr for FileSource requestJohn Firebaugh2015-11-161-5/+5
|
* [core] Do not pass uv_loop_t aroundThiago Marcos P. Santos2015-11-161-1/+1
| | | | This should be abstracted by util::RunLoop
* DefaultFileSource has responsibility for handling mapbox:// URLsJohn Firebaugh2015-05-261-0/+4
|
* Remove unusedJohn Firebaugh2015-05-131-1/+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-6/+3
| | | | Fixes #1336
* make implementation files private headersKonstantin Käfer2015-04-131-1/+4
|
* hide Thread<> and separate the Implementation objectKonstantin Käfer2015-04-131-25/+4
|
* convert DefaultFileSource to use util::Thread<>Konstantin Käfer2015-04-101-30/+15
|
* remove unused enumKonstantin Käfer2015-03-061-1/+0
|
* scope Requests to an Environment object for easier cancelationKonstantin Käfer2015-03-061-6/+11
| | | | | | | | | 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.
* update uv_zip and add testsKonstantin Käfer2015-02-161-2/+5
|
* refactor makefileKonstantin Käfer2015-02-041-0/+60