NetSurf
Data Fields
llcache_object Struct Reference

Low-level cache object. More...

Collaboration diagram for llcache_object:
[legend]

Data Fields

llcache_objectprev
 Previous in list. More...
 
llcache_objectnext
 Next in list. More...
 
nsurlurl
 Post-redirect URL for object. More...
 
uint8_t * source_data
 Source data for object. More...
 
size_t source_len
 Byte length of source data. More...
 
size_t source_alloc
 Allocated size of source buffer. More...
 
struct cert_chainchain
 Certificate chain from the fetch. More...
 
llcache_store_state store_state
 where the data for the object is stored More...
 
llcache_object_userusers
 List of users. More...
 
llcache_fetch_ctx fetch
 Fetch context for object. More...
 
llcache_cache_control cache
 Cache control data for object. More...
 
llcache_objectcandidate
 Object to use, if fetch determines that it is still fresh. More...
 
uint32_t candidate_count
 Count of objects this is a candidate for. More...
 
llcache_headerheaders
 Fetch headers. More...
 
size_t num_headers
 Number of fetch headers. More...
 
time_t last_used
 time the last user was removed from the object More...
 

Detailed Description

Low-level cache object.

Todo:
Consider whether a list is a sane container.

Definition at line 169 of file llcache.c.

Field Documentation

◆ cache

llcache_cache_control llcache_object::cache

◆ candidate

llcache_object* llcache_object::candidate

Object to use, if fetch determines that it is still fresh.

Definition at line 189 of file llcache.c.

Referenced by llcache_fetch_callback(), llcache_fetch_notmodified(), llcache_fetch_process_data(), llcache_fetch_timeout(), and llcache_object_retrieve_from_cache().

◆ candidate_count

uint32_t llcache_object::candidate_count

Count of objects this is a candidate for.

Definition at line 192 of file llcache.c.

Referenced by build_candidate_list(), llcache_clean(), and llcache_object_retrieve_from_cache().

◆ chain

struct cert_chain* llcache_object::chain

◆ fetch

llcache_fetch_ctx llcache_object::fetch

◆ headers

llcache_header* llcache_object::headers

◆ last_used

time_t llcache_object::last_used

time the last user was removed from the object

Definition at line 204 of file llcache.c.

Referenced by llcache_clean().

◆ next

llcache_object* llcache_object::next

◆ num_headers

size_t llcache_object::num_headers

◆ prev

llcache_object* llcache_object::prev

Previous in list.

Definition at line 170 of file llcache.c.

Referenced by llcache_object_add_to_list(), and llcache_object_remove_from_list().

◆ source_alloc

size_t llcache_object::source_alloc

Allocated size of source buffer.

Definition at line 178 of file llcache.c.

Referenced by llcache_fetch_process_data(), and llcache_object_snapshot().

◆ source_data

uint8_t* llcache_object::source_data

◆ source_len

size_t llcache_object::source_len

◆ store_state

llcache_store_state llcache_object::store_state

where the data for the object is stored

Definition at line 182 of file llcache.c.

Referenced by build_candidate_list(), llcache_clean(), llcache_object_destroy(), and llcache_retrieve_persisted_data().

◆ url

nsurl* llcache_object::url

◆ users

llcache_object_user* llcache_object::users

The documentation for this struct was generated from the following file: