diff options
author | Vincent Sanders <vince@kyllikki.org> | 2017-03-03 10:41:43 +0000 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2017-03-03 14:45:39 +0000 |
commit | 6083de4ee1370dbd483e489e4e63ec2a58becc71 (patch) | |
tree | a0a29537056f72d47ba30ec867eef51b5881e466 /desktop/browser_private.h | |
parent | 855721282c01a0cd0c94c87e03ac8229da077372 (diff) | |
download | netsurf-6083de4ee1370dbd483e489e4e63ec2a58becc71.tar.gz netsurf-6083de4ee1370dbd483e489e4e63ec2a58becc71.tar.bz2 |
split out browser windoe favicon context to separate structure
Diffstat (limited to 'desktop/browser_private.h')
-rw-r--r-- | desktop/browser_private.h | 31 |
1 files changed, 23 insertions, 8 deletions
diff --git a/desktop/browser_private.h b/desktop/browser_private.h index 0234cce0b..b8dce84bb 100644 --- a/desktop/browser_private.h +++ b/desktop/browser_private.h @@ -46,18 +46,33 @@ struct browser_window { * READY or DONE status or NULL for no content. */ struct hlcache_handle *current_content; - /** Page being loaded, or NULL. */ + /** + * Content handle of page in process of being loaded or NULL + * if no page is being loaded. + */ struct hlcache_handle *loading_content; - /** Page Favicon */ - struct hlcache_handle *current_favicon; - /** handle for favicon which we started loading early */ - struct hlcache_handle *loading_favicon; /** - * flag to indicate favicon fetch already failed which - * prevents infinite error looping. + * Favicon */ - bool failed_favicon; + struct { + /** + * content handle of current page favicon + */ + struct hlcache_handle *current; + + /** + * content handle for favicon which we started loading + * early + */ + struct hlcache_handle *loading; + + /** + * flag to indicate favicon fetch already failed which + * prevents infinite error looping. + */ + bool failed; + } favicon; /** local history handle. */ struct history *history; |