summaryrefslogtreecommitdiff
path: root/content/hlcache.c
Commit message (Collapse)AuthorAgeFilesLines
* improve content header usageVincent Sanders2020-05-071-0/+1
|
* Keep the complete certificate chain from a fetchVincent Sanders2020-02-231-4/+5
| | | | | | | | | Instead of extracting information from the X509 certificate chain in the fetcher the entire chain is propagated in Distinguished Encoding Rules (DER) format. This allows all the information contained in a certificate chain to be retained which can subsequently be presented to the user
* hlcache_fini(): Deschedule cleanups on finalisationDaniel Silverstone2019-09-071-0/+3
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Excise the llcache query pathway.Daniel Silverstone2019-08-051-24/+2
| | | | | | | | In further preparation for the auth and cert queries being handled as special contents from `about:` this excises the query pathway from the llcache pretty much entirely. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Migrate SSL certificate storage to the browser windowDaniel Silverstone2019-08-051-0/+12
| | | | | | | | | | * Fetchers now provide the certificates before headers * This is propagated all the way to the browser window * When a query occurs, we retrieve it from there and fire the query with those stored certificates. * The serial number is a bignum, store it as hex. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Content messages: Remove ERRORCODE, rework ERRORDaniel Silverstone2019-08-051-5/+9
| | | | | | | This reworks CONTENT_MSG_ERROR to be structured data and removes the CONTENT_MSG_ERRORCODE message kind. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* content, hlcache: Propagate query events upwardDaniel Silverstone2019-08-041-7/+15
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Migrate query dispatch up from llcache to hlcacheDaniel Silverstone2019-08-031-0/+14
| | | | | | | | | | | | As a first step in refactoring query handling to be managed by `browser_window`, this migrates the calling of the query handler from the llcache object code up to the hlcache. In theory this may result in multiple queries happening for one object, but we mitigate multiple-responses in the llcache so all should be well. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* hlcache.c: Clean up LOADING contents during finaliseDaniel Silverstone2019-06-151-4/+26
| | | | | | | | | During the process of finalising the hlcache, there won't be any more fetching going on. As such, we can abort, error, and then destroy any contents still in the process of loading. This should reduce our leaks during shutdown. Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Use coccinelle to change logging macro calls in c filesVincent Sanders2017-09-061-7/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | for F in $(git ls-files '*.c');do spatch --sp-file foo.cocci --in-place ${F};done @@ expression E; @@ -LOG(E); +NSLOG(netsurf, INFO, E); @@ expression E, E1; @@ -LOG(E, E1); +NSLOG(netsurf, INFO, E, E1); @@ expression E, E1, E2; @@ -LOG(E, E1, E2); +NSLOG(netsurf, INFO, E, E1, E2); @@ expression E, E1, E2, E3; @@ -LOG(E, E1, E2, E3); +NSLOG(netsurf, INFO, E, E1, E2, E3); @@ expression E, E1, E2, E3, E4; @@ -LOG(E, E1, E2, E3, E4); +NSLOG(netsurf, INFO, E, E1, E2, E3, E4); @@ expression E, E1, E2, E3, E4, E5; @@ -LOG(E, E1, E2, E3, E4, E5); +NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5); @@ expression E, E1, E2, E3, E4, E5, E6; @@ -LOG(E, E1, E2, E3, E4, E5, E6); +NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5, E6); @@ expression E, E1, E2, E3, E4, E5, E6, E7; @@ -LOG(E, E1, E2, E3, E4, E5, E6, E7); +NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5, E6, E7);
* hlcache content callback: Use designated initialiser for hlcache_event.Michael Drake2017-08-281-4/+3
|
* initialise event struct correctly to avoid compiler warningVincent Sanders2017-08-271-1/+3
|
* Content API: Avoid content message copy in content user callback.Michael Drake2017-08-261-3/+5
|
* reduce hlcache handle api usage in mimesniffVincent Sanders2017-03-191-3/+3
|
* fix spelling mistakes in hlcache codeVincent Sanders2016-11-201-5/+6
|
* Update content to split public and internal APIVincent Sanders2016-06-061-1/+1
|
* move misc header into public APIVincent Sanders2016-05-301-1/+1
|
* complete the rename of the gui browser tableVincent Sanders2016-04-161-3/+3
| | | | | | When the operations tables were created the browser table was renamed to miscellaneous except the actual rename patch was never applied, this fixes that situation.
* Stop reporting error from mime sniffing when a fetcher completes with no dataVincent Sanders2016-01-061-4/+6
| | | | | | | | | | | If a fetcher returns with no data (no content or http error code 204) the hlcache state machine was trying to mimesniff using non existent header data and reporting the resulting NSERROR_NOT_FOUND as a "BadType" message. This changes the behaviour to be similar to that in the headers received case where NSERROR_NOT_FOUND from the mimesniffing is not an error.
* Fix error reporting from fetch_startVincent Sanders2015-06-241-8/+9
| | | | | | | Any fetch start error was being reported as "out of memory" which was clearly insufficient. Foe example bad urls (reported was file:// with a missing /) were causing a warn_user with out of memory. This change now at least causes a "bad url" message.
* Change LOG() macro to be varadicVincent Sanders2015-05-281-10/+7
| | | | | | | | | | | | This changes the LOG macro to be varadic removing the need for all callsites to have double bracketing and allows for future improvement on how we use the logging macros. The callsites were changed with coccinelle and the changes checked by hand. Compile tested for several frontends but not all. A formatting annotation has also been added which allows the compiler to check the parameters and types passed to the logging.
* Continue doxygen error cleanup.Vincent Sanders2014-11-081-2/+1
|
* Make the fetching of a contents encoding generic.Vincent Sanders2014-11-051-3/+2
| | | | | | | The frontends previously had to use an html renderer API to get the encoding of a content. This also required the explicit checking of the contents type rather than using the existing content API to abstract this knowledge.
* Update the core to use the split operations table headersVincent Sanders2014-10-161-1/+2
| | | | Second in the series to decouple the core API usage from the frontends.
* clean up the fetcher factory and improve its APIVincent Sanders2014-06-191-9/+0
|
* attempt to purge low level cache on out of memory during fetchVincent Sanders2014-05-291-1/+1
|
* Extend low level source data cache with persistant storageVincent Sanders2014-05-131-6/+5
|
* remove unecessary utils/url.h includesVincent Sanders2014-05-091-4/+4
|
* move scheduleing into browser operation tableVincent Sanders2014-03-091-4/+4
|
* remove all forward declarations from hlcache.cVincent Sanders2014-01-191-424/+414
|
* Pedantic wrap fix.Michael Drake2013-10-231-1/+3
|
* Pass fetch redirect info up to content layer as content_msg. Mark redirect ↵Michael Drake2013-05-271-0/+11
| | | | origin URLs as visited in browser window content callback. Note this doesn't mean we track redirects, it just lets us get the :visited link style on links that redirect.
* add content handler for javascriptVincent Sanders2012-06-191-1/+1
| | | | svn path=/trunk/netsurf/; revision=13971
* Bypass full type sniffer if only images are acceptableJohn Mark Bell2012-02-081-1/+3
| | | | svn path=/trunk/netsurf/; revision=13436
* Fix bug #3454606: prevent double free of retrieval context when downloadingJohn Mark Bell2011-12-081-11/+21
| | | | svn path=/trunk/netsurf/; revision=13260
* Fix bug #3452421: retain hlcache retrieval context when reporting errors & ↵John Mark Bell2011-12-061-9/+7
| | | | | | rely on clients correctly releasing handles to clean up. svn path=/trunk/netsurf/; revision=13250
* content_get_url -> hlcache_handle_get_url, content__get_url -> content_get_urlJohn Mark Bell2011-12-041-1/+28
| | | | svn path=/trunk/netsurf/; revision=13236
* Sort out hiccough in hlcache finalisation debugDaniel Silverstone2011-10-091-1/+1
| | | | svn path=/trunk/netsurf/; revision=13017
* Port more internals to nsurl. Front ends may need updating.Michael Drake2011-10-031-31/+3
| | | | svn path=/trunk/netsurf/; revision=12926
* Port llcache to nsurl.Michael Drake2011-09-281-1/+29
| | | | svn path=/trunk/netsurf/; revision=12904
* Make high level cache, low level cache and image cache all be initialised ↵Vincent Sanders2011-09-101-67/+76
| | | | | | | | | from passed parameters Calculate all cache sizes from single memory cache size option and sanity check have a single global struct to hold all parameters instead of several individual variables svn path=/trunk/netsurf/; revision=12784
* make high level cache take a parameter structureVincent Sanders2011-09-081-40/+70
| | | | | | make hlcache have a single global container svn path=/trunk/netsurf/; revision=12779
* Handle zero-length documents correctlyJohn Mark Bell2011-09-081-2/+19
| | | | svn path=/trunk/netsurf/; revision=12778
* Sniff content types where appropriate.John Mark Bell2011-09-041-82/+133
| | | | | | We never sniff for CSS, nor for non-page artefacts (e.g. treeview icons) svn path=/trunk/netsurf/; revision=12707
* Refactor http utilitiesJohn Mark Bell2011-07-081-7/+4
| | | | svn path=/trunk/netsurf/; revision=12595
* Merge branches/jmb/content-factory to trunkJohn Mark Bell2011-05-061-27/+12
| | | | svn path=/trunk/netsurf/; revision=12283
* Stop gtk printing from exploding if its unable to initialise the jobVincent Sanders2011-03-151-0/+6
| | | | | | | add interface to clone a high level cache handle make generic printing core call new hlcache interface svn path=/trunk/netsurf/; revision=12068
* Move schedule.h to utils/John Mark Bell2011-03-131-1/+1
| | | | svn path=/trunk/netsurf/; revision=12039
* Ensure we stop the hlcache schedule before we quit the guiDaniel Silverstone2011-03-131-3/+6
| | | | svn path=/trunk/netsurf/; revision=12036
* Shunt the schedule function definitions to desktop/schedule.h. Shunt the ↵Daniel Silverstone2011-03-131-20/+32
| | | | | | hlcache/llcache to using schedule to get their cleanups run. svn path=/trunk/netsurf/; revision=12029