Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | [core] Make {Default,Online}FileSource::Impl more similar | John Firebaugh | 2016-02-10 | 1 | -3/+0 | |
| | ||||||
* | Add binary for smoke-testing offline downloads | John Firebaugh | 2016-02-10 | 1 | -0/+2 | |
| | ||||||
* | [core] Interface and implementation for offline | John Firebaugh | 2016-02-10 | 2 | -0/+258 | |
| | ||||||
* | [all] Don't interpret 404s on non-tile resources as "no content" | John Firebaugh | 2016-02-10 | 1 | -0/+4 | |
| | ||||||
* | [all] Do not set Response data for 404s | John Firebaugh | 2016-02-10 | 1 | -1/+1 | |
| | | | | For AssetFileSource and the node FileSource this was already the case; this makes the other implementations consistent. | |||||
* | [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 | 3 | -5/+10 | |
| | | | | This results in OnlineFileSource containing precisely the logic we want for reuse by OfflineFileSource, and no more. | |||||
* | [core] Remove Response::Error::Reason::Canceled | John Firebaugh | 2016-02-04 | 1 | -1/+0 | |
| | | | | There is no such thing as a cancelled response, only cancelled requests. A request that is cancelled does not have its callback called with a Response. | |||||
* | [core] Change TileData pixelRatio to an integer | John Firebaugh | 2016-01-29 | 1 | -1/+1 | |
| | ||||||
* | [core] Rationalize Resource initialization | John Firebaugh | 2016-01-29 | 1 | -14/+27 | |
| | ||||||
* | [core] Ensure that FileSource has access to tile URL, pixelRatio, x, y, z | John Firebaugh | 2016-01-29 | 1 | -0/+12 | |
| | ||||||
* | [core] Include prior values of caching headers in Resource | John Firebaugh | 2016-01-22 | 2 | -14/+15 | |
| | | | | This allows the FileSource interface itself to support revalidation. We could (and probably should) now rewrite HTTPContextBase implementations as FileSource implementations. | |||||
* | [core] Use better types for modified / expires / etag | John Firebaugh | 2016-01-21 | 1 | -3/+4 | |
| | ||||||
* | [core] Eliminate Response::stale and inline Response::isExpired() | John Firebaugh | 2016-01-21 | 1 | -5/+0 | |
| | | | | Response::isExpired() had subtle and potentially confusing behavior around Seconds::zero(). It's best to inline it and comment why. | |||||
* | [core] Add an explicit "not modified" indicator to Response | John Firebaugh | 2016-01-14 | 1 | -0/+3 | |
| | ||||||
* | [core] Eliminate FileCache interface | John Firebaugh | 2016-01-14 | 2 | -30/+3 | |
| | | | | There is only one implementation and we're unlikely to add more. | |||||
* | [core] Remove request coalescing in OnlineFileSource | John Firebaugh | 2016-01-13 | 1 | -1/+1 | |
| | ||||||
* | [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] Simplify asset:// implementation | John Firebaugh | 2016-01-13 | 1 | -1/+1 | |
| | | | | | | | | * Move asset:// URL handling to DefaultFileSource. * AssetFileSource implements FileSource interface and follows familiar implementation patterns. * Move default implementation to platform/default, zip implementation to platform/android. * Don't bother with modified / expires / etag -- assets are not cached so it doesn't matter. * Don't bother with interleaving individual IO calls on the implementation thread. That adds a lot of complexity for very little benefit. | |||||
* | [core] Refactor to instance methods on OnlineFileRequestImpl | John Firebaugh | 2016-01-13 | 1 | -0/+2 | |
| | ||||||
* | [core] Privatize SQLiteCache | John Firebaugh | 2016-01-08 | 2 | -47/+4 | |
| | ||||||
* | [core] Make it possible to limit the size of the SQLite cache | Thiago Marcos P. Santos | 2015-12-27 | 1 | -0/+3 | |
| | ||||||
* | [tests] Test with OnlineFileSource | John Firebaugh | 2015-12-23 | 1 | -0/+34 | |
| | | | | | When we introduce OfflineFileSource, the behavior of existing tests should not change. | |||||
* | [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 | 6 | -9/+9 | |
| | ||||||
* | [core] Removed dependency on uv_loop from the file source | Thiago Marcos P. Santos | 2015-12-01 | 1 | -6/+8 | |
| | ||||||
* | [core] Replace time_t with std::chrono::seconds | Bruno de Oliveira Abinader | 2015-11-27 | 1 | -2/+4 | |
| | | | | | | | Added aliases for std::chrono typedefs (eg. 'Seconds' for std::chrono::seconds). These aliases are used together with templated helper functions to replace time_t with std::chrono::seconds for most cases, in particular for 'modified' and 'expires' values in Response. | |||||
* | [core] Use std::unique_ptr for FileSource request | John Firebaugh | 2015-11-16 | 3 | -68/+18 | |
| | ||||||
* | [core] Pass a value to response callback, not a reference | John Firebaugh | 2015-11-16 | 2 | -2/+2 | |
| | ||||||
* | [core] Do not pass uv_loop_t around | Thiago Marcos P. Santos | 2015-11-16 | 2 | -4/+2 | |
| | | | | This should be abstracted by util::RunLoop | |||||
* | [core] move retry logic to DefaultFileSource | Konstantin Käfer | 2015-11-02 | 2 | -6/+33 | |
| | ||||||
* | [core] reparse tiles when new data arrives | Konstantin Käfer | 2015-10-26 | 1 | -0/+1 | |
| | | | | We're now reparsing tiles when they expire. We're also swapping out buckets atomically to avoid flickering data; i.e. we're displaying the old data as long as we don't have a new parsed bucket for that layer yet. The parsed buckets now live in the *TileData objects rather than in the TileWorker; only partially parsed == pending buckets will remain in the TileWorker. Once they're parsed, they're moved to the *TileData object. | |||||
* | [core] Make response data shared to avoid excessive copying | Konstantin Käfer | 2015-10-26 | 1 | -1/+1 | |
| | ||||||
* | [core] do not use std::atomic_* with shared_ptrs | Konstantin Käfer | 2015-10-26 | 1 | -4/+4 | |
| | | | | It's not implemented in GCC 4.9.2's stdlib (https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57250). Instead, we're now always using a mutex to protect access; we previously created a mutex only on cancelation, but since we're always canceling now, it makes sense to allocate it right away. | |||||
* | [core] add support for stale responses | Konstantin Käfer | 2015-10-26 | 1 | -0/+4 | |
| | | | | We're now returning stale responses from cache. Those responses will have the `stale` flag set to true. Currently, all requesters in the core code discard stale responses, and cancel the request immediately after they got a non-stale response. | |||||
* | [node] Handle tiles which 404 better | bsudekum | 2015-09-29 | 1 | -1/+1 | |
| | ||||||
* | Create SharedSQLiteCache | Leith Bade | 2015-09-16 | 1 | -0/+10 | |
| | ||||||
* | Support v8 sprite, glyph, and style mapbox:// urls | Lucas Wojciechowski | 2015-08-21 | 1 | -2/+2 | |
| | ||||||
* | Move WorkerTask functionality into RunLoop core | John Firebaugh | 2015-07-01 | 2 | -2/+3 | |
| | | | | | As a byproduct, this makes FileCache get requests properly cancelable. | |||||
* | Replace mbgl::util::make_unique<> with std::make_unique<> | Konstantin Käfer | 2015-05-26 | 1 | -1/+0 | |
| | ||||||
* | DefaultFileSource has responsibility for handling mapbox:// URLs | John Firebaugh | 2015-05-26 | 2 | -4/+10 | |
| | ||||||
* | Use uv::async | John Firebaugh | 2015-05-13 | 1 | -2/+2 | |
| | ||||||
* | Remove unused | John Firebaugh | 2015-05-13 | 2 | -5/+0 | |
| | | | | | There are no longer any requests made that don't have a run loop to dispatch back to. | |||||
* | Cancel all pending requests before leaving | Thiago Marcos P. Santos | 2015-05-05 | 1 | -2/+0 | |
| | | | | | | | | | | | | This still has the unwanted side effect off blocking the Map thread waiting for the workers to return (because they hold a reference to the Map thread main loop). Maybe the only way to solve this would be having a I/O thread for dispatching messages. The Request is not bound anymore to the invoker thread because the workers will request for glyphs, but the reply will arrive at the Map thread. | |||||
* | Write SQLite tests in terms of Impl | John Firebaugh | 2015-05-01 | 1 | -1/+2 | |
| | ||||||
* | Remove Environment::terminate and associated code | John Firebaugh | 2015-04-28 | 3 | -24/+7 | |
| | | | | Fixes #1336 | |||||
* | make the request header public as the node module requires it | Konstantin Käfer | 2015-04-17 | 1 | -0/+60 | |
| | ||||||
* | rename SQLiteCache::Thread to SQLiteCache::Impl | Konstantin Käfer | 2015-04-13 | 1 | -2/+2 | |
| | ||||||
* | make implementation files private headers | Konstantin Käfer | 2015-04-13 | 8 | -371/+4 | |
| | ||||||
* | hide Thread<> and separate the Implementation object | Konstantin Käfer | 2015-04-13 | 5 | -52/+17 | |
| |