summaryrefslogtreecommitdiff
path: root/content
Commit message (Collapse)AuthorAgeFilesLines
...
* clean up header usage in content hnadling coreVincent Sanders2016-04-181-20/+10
|
* Reduce unecessary use of networking headersVincent Sanders2016-04-173-3/+4
| | | | | | | | The utility configuration header dragged in a number of bsd sockets and related API as a side effect of setting up the configuration. By splitting the header and API setup into a separate header only the small number of places that need the functionality explitly include it.
* urldb no longer uses curl directly but it does need correct network includesVincent Sanders2016-04-171-0/+1
| | | | | | The update to remove curl usage from urldb must pull in the utility config header instead to get inet_aton and such or compoles on some platforms fail.
* create date and time to seconds since epoch processing utility functionVincent Sanders2016-04-162-41/+64
| | | | | | | currently NetSurf uses curl_getdate to convert textural date and time strings into seconds since epoch. It is betetr to move this functionality to a utility function so curl_getdate can easily be replaced if required.
* complete the rename of the gui browser tableVincent Sanders2016-04-164-13/+13
| | | | | | 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.
* Fix size_t printf formattingVincent Sanders2016-03-174-24/+37
| | | | | | | The printf formatting for size_t is set in c99 as %zu but in windows it is %Iu this is solved by adding and inttypes style PRI macro for size_t This also uses this macro everywhere size_t is formatted.
* revert urldb include fixes as tehy cause build issues elsewhere and failed ↵Vincent Sanders2016-02-121-4/+0
| | | | to fix the warning
* fix more freebsd warningsVincent Sanders2016-02-121-0/+4
|
* remove reliance on GLib from monkey frontendVincent Sanders2016-02-121-1/+1
| | | | | This changes the monkey implemntation to use a simple scheduler list and select instead of glib events.
* Stop GIF animations when they are no longer in use, instead of waiting until ↵Chris Young2016-02-112-0/+9
| | | | they are destroyed.
* Log the cache limit along side size, after clean.Michael Drake2016-02-081-1/+1
|
* Style: Wrap some long lines.Michael Drake2016-02-081-18/+31
|
* Add URL to llcache object destruction logging.Michael Drake2016-02-081-1/+2
|
* Remove torrent of logging during browser window resize.Michael Drake2016-02-061-1/+1
|
* Tiny simplification of curl debug logging.Michael Drake2016-01-211-1/+1
|
* URLdb doesn't store 'mailto' urls, so add early exit to lookup.Michael Drake2016-01-081-0/+6
|
* Fix crazy indentation.Michael Drake2016-01-081-3/+2
|
* 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.
* Remove unused variable.Michael Drake2015-12-201-3/+0
|
* Add extra logging to curl poll fn when not suppressing curl debug.Michael Drake2015-11-111-0/+38
|
* Add support for retrying timed-out cURL fetches.Daniel Silverstone2015-11-104-4/+35
| | | | | | | | | | | | | This is an attempt to amelioriate the situation found in #2384 where we see the cURL connect() failing to complete. Based on the pcap from the bug log, we believe that RISC OS is likely failing to signal the completion of the connection to cURL. As such, cURL times out. This change permits retries of timed out connections in the hope that a fresh socket FD might subsequently function correctly. The defaults chosen mean that the previous behaviour of 30 seconds before timeout is reported will remain the same, but in that time we will make 3 separate attempts to connect the socket.
* Fix error reporting from fetch_startVincent Sanders2015-06-244-47/+79
| | | | | | | 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.
* Allow the resource scheme to provide data directly.Vincent Sanders2015-06-171-48/+151
| | | | | | This allows front ends to provide resources from compiled in data instead of requiring the resources to be available on disc and forcing a redirect.
* fixup all the remaining logging macro callsitesVincent Sanders2015-05-285-68/+69
| | | | | The semantic patch tool appears to have missed some difficult to reason about callsites which have now been manually cleaned up
* Change LOG() macro to be varadicVincent Sanders2015-05-288-197/+182
| | | | | | | | | | | | 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.
* Fix format string type missmatches on 32-bit systems.Michael Drake2015-05-121-3/+7
| | | | Use C99 inttypes header for format string macros.
* Avoid generating confusing warning.Michael Drake2015-05-121-1/+1
| | | | Now the disc cache will be disabled silently if its too slow.
* Improve the logge dinformation about written cache dataVincent Sanders2015-05-081-7/+7
|
* Move the setting of block file extents to background maintinance.Vincent Sanders2015-05-041-16/+68
| | | | | | On some OS the ftruncate operation can take some time so move it to occour in the background maintinance operations instead of when data blocks are initialy opened. This should improve browsing responsiveness.
* Ensure bandwidth minimum check is only performed when enough data hasVincent Sanders2015-04-301-6/+15
| | | | been written.
* Ensure small block cache files allocate their entire extent at open.Vincent Sanders2015-04-301-10/+18
| | | | | | | | | | It seems many filesystems are greatly more efficient if the block file is allocated its entire extent once rather than trying to continuously grown the file later. The size of the block files is known at their creation time so this change ensures they are grown to the full possible extent hence removing future inefficient writes.
* Add scaled content redraw interface.Vincent Sanders2015-04-232-2/+92
| | | | | | Add a new interface to the content to allow automaticaly scaled content redraws. This is intended to replace the thumbnail_redraw interface with something more generic.
* Move bitmap operations into an operation table.Vincent Sanders2015-04-132-10/+14
| | | | | | | The generic bitmap handlers provided by each frontend are called back from the core and therefore should be in an operation table. This was one of the very few remaining interfaces stopping the core code from being split into a library.
* Fix up some doxygen errorsVincent Sanders2015-04-031-1/+1
|
* Use nsutils unistd operations for pread and pwrite to get consistant interfaceVincent Sanders2015-04-021-2/+3
|
* Revert "Fix RISC OS not having a pread/pwrite implementation."Vincent Sanders2015-04-021-2/+0
| | | | | | | This reverts commit 82c7a7a4baf4a7a15381ee720799dc41c3d54909. Conflicts: content/fs_backing_store.c
* extend backing store logging to show errno values ofter operationsVincent Sanders2015-04-011-22/+31
|
* Fix RISC OS not having a pread/pwrite implementation.Vincent Sanders2015-03-311-2/+4
|
* ensure entry invalidation copes with entries in blocksVincent Sanders2015-03-311-13/+47
|
* Improve file naming inside cacheVincent Sanders2015-03-311-87/+84
|
* allocate small block using block use bitmaps to find free entries.Vincent Sanders2015-03-311-12/+69
|
* implement block read and write operations.Vincent Sanders2015-03-311-62/+141
|
* Block file usage bitmaps (de)serialisingVincent Sanders2015-03-311-5/+179
|
* define block store parametersVincent Sanders2015-03-311-0/+20
|
* Change backing store fetch operation to always perform the allocationsVincent Sanders2015-03-312-71/+95
| | | | | | The fetch API previously allowed for the caller to supply the storage, this was never used and was preventing the refactoring necessary for small black storage to be available.
* Compute the element index once and use that as a parameter.Vincent Sanders2015-03-311-58/+115
| | | | | | | | | Change to computing the element index from the flags passed to store and fetch methods instead of passing the flags around and calculating everywhere. Additionally split out writing element of entry to file into distinct function to make code clearer.
* Change element layout and cope with index collisions.Vincent Sanders2015-03-311-36/+45
|
* Remove url from content thumbnailers APIVincent Sanders2015-03-151-5/+7
| | | | | | | | | | | | | | | | The content thumbnailers for each frontend were being provided the contents url. This was only ever used to call the urldb thumbnail setting API. This changes it so the single callsite that passed a valid url adds the bitmap to that url itself in desktop_history.c instead of forcing every frontend to require the urldb API. Additionally the old API could pass the url as NULL which was causing asserts where this was not an expected parameter value. Because of this this fixes bug #2286 which was also present in the monkey frontend as both called nsurl_access() on the url without the NULL check and caused an assertion.
* Move win32 window operations into their own moduleVincent Sanders2015-03-121-1/+2
| | | | | | This splits up a great deal of the win32 window code out from other gui code. It also remove large quantities of unused and junk variables and functions.
* Remove include of nsurl from corestrings.hMichael Drake2015-02-261-3/+5
|