summaryrefslogtreecommitdiff
path: root/content/hlcache.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Do not attempt to destroy contents that are still loadingJohn Mark Bell2011-03-031-0/+4
| | | | svn path=/trunk/netsurf/; revision=11898
* A little more debug to help us spot how many users of locked contents there ↵Daniel Silverstone2011-01-201-3/+5
| | | | | | are, during shutdown svn path=/trunk/netsurf/; revision=11418
* Fix cleanup of hlcache_retrieval_ctx_ringJohn Mark Bell2010-10-281-1/+2
| | | | svn path=/trunk/netsurf/; revision=10915
* Rate-limit cache clean attemptsJohn Mark Bell2010-08-101-3/+16
| | | | svn path=/trunk/netsurf/; revision=10686
* Clean up caches on exitJohn Mark Bell2010-04-271-5/+66
| | | | svn path=/trunk/netsurf/; revision=10494
* Ensure we propagate the error to our client, and then abort the llcache ↵Daniel Silverstone2010-04-221-1/+11
| | | | | | handle, should we fail to find a content when converting a nascent hlcache context into an object svn path=/trunk/netsurf/; revision=10453
* Add assertionJohn Mark Bell2010-04-161-0/+1
| | | | svn path=/trunk/netsurf/; revision=10414
* Stop leaking hlcache handles.John Mark Bell2010-04-131-1/+1
| | | | svn path=/trunk/netsurf/; revision=10395
* Revert last change.Michael Drake2010-04-121-5/+0
| | | | svn path=/trunk/netsurf/; revision=10382