NetSurf
Data Fields
content Struct Reference

Content which corresponds to a single URL. More...

#include <content_protected.h>

Collaboration diagram for content:
[legend]

Data Fields

struct llcache_handlellcache
 Low-level cache object. More...
 
lwc_string * mime_type
 Original MIME type of data. More...
 
const struct content_handlerhandler
 Handler for content. More...
 
content_status status
 Current status. More...
 
int width
 Width dimension, if applicable. More...
 
int height
 Height dimension, if applicable. More...
 
int available_width
 Viewport width. More...
 
int available_height
 Viewport height. More...
 
bool quirks
 Content is in quirks mode. More...
 
char * fallback_charset
 Fallback charset, or NULL. More...
 
struct nsurlrefresh
 URL for refresh request. More...
 
struct content_rfc5988_linklinks
 list of metadata links More...
 
uint64_t time
 Creation timestamp when LOADING or READY. More...
 
uint64_t reformat_time
 Earliest time to attempt a period reflow while fetching a page's objects. More...
 
unsigned int size
 Estimated size of all data associated with this content. More...
 
char * title
 Title for browser window. More...
 
unsigned int active
 Number of child fetches or conversions currently in progress. More...
 
struct content_useruser_list
 List of users. More...
 
char status_message [120]
 Full text for status bar. More...
 
char sub_status [80]
 Status of content. More...
 
bool locked
 Content is being processed: data structures may be inconsistent and content must not be redrawn or modified. More...
 
unsigned long total_size
 Total data size, 0 if unknown. More...
 
long http_code
 HTTP status code, 0 if not HTTP. More...
 
struct {
   char *   string
 
   struct textsearch_context *   context
 
textsearch
 Free text search state. More...
 

Detailed Description

Content which corresponds to a single URL.

Definition at line 180 of file content_protected.h.

Field Documentation

◆ active

unsigned int content::active

◆ available_height

int content::available_height

Viewport height.

Definition at line 216 of file content_protected.h.

Referenced by content__init(), content__reformat(), and html_object_callback().

◆ available_width

int content::available_width

◆ context

struct textsearch_context* content::context

◆ fallback_charset

char* content::fallback_charset

◆ handler

const struct content_handler* content::handler

◆ height

int content::height

◆ http_code

long content::http_code

HTTP status code, 0 if not HTTP.

Definition at line 286 of file content_protected.h.

Referenced by content__clone(), and content__init().

◆ links

struct content_rfc5988_link* content::links

list of metadata links

Definition at line 235 of file content_protected.h.

Referenced by content__add_rfc5988_link(), content_destroy(), and content_find_rfc5988_link().

◆ llcache

struct llcache_handle* content::llcache

◆ locked

bool content::locked

Content is being processed: data structures may be inconsistent and content must not be redrawn or modified.

Definition at line 277 of file content_protected.h.

Referenced by content__clone(), content__init(), content__is_locked(), content__reformat(), content_convert(), content_destroy(), content_exec(), content_redraw(), content_scaled_redraw(), content_set_error(), and content_set_ready().

◆ mime_type

lwc_string* content::mime_type

Original MIME type of data.

Definition at line 189 of file content_protected.h.

Referenced by content__clone(), content__get_mime_type(), content__init(), and content_destroy().

◆ quirks

bool content::quirks

◆ reformat_time

uint64_t content::reformat_time

Earliest time to attempt a period reflow while fetching a page's objects.

Definition at line 247 of file content_protected.h.

Referenced by content__clone(), html_object_callback(), and html_reformat().

◆ refresh

struct nsurl* content::refresh

URL for refresh request.

Definition at line 230 of file content_protected.h.

Referenced by content__clone(), content__get_refresh_url(), content__init(), html_destroy(), and html_process_inserted_meta().

◆ size

unsigned int content::size

◆ status

content_status content::status

◆ status_message

char content::status_message[120]

Full text for status bar.

Definition at line 268 of file content_protected.h.

Referenced by content__clone(), content__get_status_message(), content_set_status(), and content_update_status().

◆ string

char* content::string

◆ sub_status

char content::sub_status[80]

Status of content.

Definition at line 272 of file content_protected.h.

Referenced by content__clone(), content__init(), content_set_status(), and content_update_status().

◆ 

struct { ... } content::textsearch

◆ time

uint64_t content::time

Creation timestamp when LOADING or READY.

Total time in ms when DONE.

Definition at line 241 of file content_protected.h.

Referenced by content__clone(), content__init(), content_set_done(), and content_update_status().

◆ title

char* content::title

Title for browser window.

Definition at line 256 of file content_protected.h.

Referenced by content__clone(), content__get_title(), content__init(), content__set_title(), content_destroy(), and nsbmp_convert().

◆ total_size

unsigned long content::total_size

Total data size, 0 if unknown.

Definition at line 282 of file content_protected.h.

Referenced by content__clone(), and content__init().

◆ user_list

struct content_user* content::user_list

◆ width

int content::width

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