diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2011-08-31 12:12:41 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2011-08-31 12:12:41 +0000 |
commit | 2348b134924e8b24fba02f068a16c6fb308af88a (patch) | |
tree | fbfcb267459fc9b970c3d0c6dc5153c1817e2b32 /content/content_protected.h | |
parent | d7b46332a8b799848d9c8080509191b6395f17e9 (diff) | |
download | netsurf-2348b134924e8b24fba02f068a16c6fb308af88a.tar.gz netsurf-2348b134924e8b24fba02f068a16c6fb308af88a.tar.bz2 |
refactor bitmap out of generic content structure
svn path=/trunk/netsurf/; revision=12686
Diffstat (limited to 'content/content_protected.h')
-rw-r--r-- | content/content_protected.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/content/content_protected.h b/content/content_protected.h index d113508e4..fd854a0bc 100644 --- a/content/content_protected.h +++ b/content/content_protected.h @@ -68,6 +68,10 @@ struct content_handler { nserror (*clone)(const struct content *old, struct content **newc); bool (*matches_quirks)(const struct content *c, bool quirks); content_type (*type)(lwc_string *mime_type); + + /** handler dependant content sensitive internal data interface. */ + void * (*get_internal)(const struct content *c, void *context); + /** There must be one content per user for this type. */ bool no_share; }; @@ -98,12 +102,9 @@ struct content { bool quirks; /**< Content is in quirks mode */ char *fallback_charset; /**< Fallback charset, or NULL */ - /**< URL for refresh request, in standard form as from url_join. */ + /** URL for refresh request, in standard form as from url_join. */ char *refresh; - /** Bitmap, for various image contents. */ - struct bitmap *bitmap; - unsigned int time; /**< Creation time, if LOADING or READY, otherwise total time. */ @@ -174,6 +175,7 @@ const char *content__get_source_data(struct content *c, unsigned long *size); void content__invalidate_reuse_data(struct content *c); const char *content__get_refresh_url(struct content *c); struct bitmap *content__get_bitmap(struct content *c); +bool content__get_opaque(struct content *c); bool content__is_locked(struct content *c); |