Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [core] Use the ResourceTransform instead of callbacks | Thiago Marcos P. Santos | 2017-06-26 | 1 | -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 Thread | Thiago Marcos P. Santos | 2017-06-21 | 1 | -2/+2 |
| | | | | | Now that the old Thread class is gone, we can give ThreadedObject a better name. | ||||
* | [core] Convert DefaultFileSource to ThreadedObject | Thiago Marcos P. Santos | 2017-06-21 | 1 | -2/+2 |
| | | | | Fixes #6426 | ||||
* | [core] default file source - ensure thread safety for cached values | Ivo van Dongen | 2017-05-27 | 1 | -2/+7 |
| | |||||
* | [core] default file source - ensure thread safety for local file and asset ↵ | Ivo van Dongen | 2017-05-27 | 1 | -2/+2 |
| | | | | requests | ||||
* | [android] use AAssetManager instead of libzip | Konstantin Käfer | 2017-04-24 | 1 | -0/+3 |
| | |||||
* | [ios] Guard against over calling pause or resume | Jesse Bounds | 2017-03-18 | 1 | -3/+0 |
| | |||||
* | [core] Cache file source base URL and access token | Jesse Bounds | 2017-03-01 | 1 | -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 DefaultFileSource | Thiago Marcos P. Santos | 2017-02-25 | 1 | -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 Internet | Konstantin Käfer | 2017-02-20 | 1 | -0/+2 |
| | |||||
* | [core] remove trailing whitespace, add trailing newlines, add space after // | Konstantin Käfer | 2017-01-27 | 1 | -1/+1 |
| | |||||
* | [core] LocalFileSource implementation and tests | Ivo van Dongen | 2016-09-30 | 1 | -0/+1 |
| | |||||
* | [core] allow offline region metadata to be updated (#6338) | Molly Lloyd | 2016-09-20 | 1 | -0/+7 |
| | |||||
* | [core] [android] - public api configurable base endpoint (#6309) | Tobrun | 2016-09-15 | 1 | -0/+3 |
| | | | add runloop to test | ||||
* | [core] only perform optional requests if the FileSource supports it | Konstantin Käfer | 2016-06-10 | 1 | -0/+4 |
| | |||||
* | [core] use #pragma once instead of ifdef include guards | Konstantin Käfer | 2016-05-25 | 1 | -4/+1 |
| | |||||
* | [core] Unify FileRequest and WorkRequest | John Firebaugh | 2016-03-24 | 1 | -1/+1 |
| | |||||
* | [core] Remove goOffline() from DefaultFileSource | Thiago Marcos P. Santos | 2016-03-08 | 1 | -1/+0 |
| | | | | Use the newly added NetworkStatus::Set(). | ||||
* | [core] Limit total number of offline Mapbox tiles | John Firebaugh | 2016-02-24 | 1 | -0/+6 |
| | |||||
* | [core] Add a descriptive comment about maximumCacheSize | John Firebaugh | 2016-02-24 | 1 | -0/+7 |
| | |||||
* | [core] Eliminate maximumCacheEntrySize | John Firebaugh | 2016-02-10 | 1 | -2/+1 |
| | | | | Instead, the eviction policy accounts for the actual size needed for an incoming put. | ||||
* | [core] Implement an eviction policy for OfflineDatabase | John Firebaugh | 2016-02-10 | 1 | -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 offline | John Firebaugh | 2016-02-10 | 1 | -0/+77 |
| | |||||
* | [core] Reimplement existing caching within an offline-capable database schema | John Firebaugh | 2016-02-10 | 1 | -6/+9 |
| | |||||
* | [core] Moving caching logic to DefaultFileSource | John Firebaugh | 2016-02-10 | 1 | -0/+7 |
| | | | | This results in OnlineFileSource containing precisely the logic we want for reuse by OfflineFileSource, and no more. | ||||
* | [core] Eliminate platform::assetRoot() | John Firebaugh | 2016-01-13 | 1 | -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 SQLiteCache | John Firebaugh | 2016-01-08 | 1 | -3/+4 |
| | |||||
* | [core] Prepare for OfflineFileSource | John Firebaugh | 2015-12-21 | 1 | -14/+7 |
| | | | | | * Rename existing DefaultFileSource to OnlineFileSource * Restore a DefaultFileSource that's a passthrough to OnlineFileSource | ||||
* | [core] add namespace comment to closing brace | Konstantin Käfer | 2015-12-03 | 1 | -2/+2 |
| | |||||
* | [core] Use std::unique_ptr for FileSource request | John Firebaugh | 2015-11-16 | 1 | -5/+5 |
| | |||||
* | [core] Do not pass uv_loop_t around | Thiago Marcos P. Santos | 2015-11-16 | 1 | -1/+1 |
| | | | | This should be abstracted by util::RunLoop | ||||
* | DefaultFileSource has responsibility for handling mapbox:// URLs | John Firebaugh | 2015-05-26 | 1 | -0/+4 |
| | |||||
* | Remove unused | John Firebaugh | 2015-05-13 | 1 | -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 code | John Firebaugh | 2015-04-28 | 1 | -6/+3 |
| | | | | Fixes #1336 | ||||
* | make implementation files private headers | Konstantin Käfer | 2015-04-13 | 1 | -1/+4 |
| | |||||
* | hide Thread<> and separate the Implementation object | Konstantin Käfer | 2015-04-13 | 1 | -25/+4 |
| | |||||
* | convert DefaultFileSource to use util::Thread<> | Konstantin Käfer | 2015-04-10 | 1 | -30/+15 |
| | |||||
* | remove unused enum | Konstantin Käfer | 2015-03-06 | 1 | -1/+0 |
| | |||||
* | scope Requests to an Environment object for easier cancelation | Konstantin Käfer | 2015-03-06 | 1 | -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 tests | Konstantin Käfer | 2015-02-16 | 1 | -2/+5 |
| | |||||
* | refactor makefile | Konstantin Käfer | 2015-02-04 | 1 | -0/+60 |