From a39b651620272d240c40a9ff056eb50a758350f7 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sun, 23 Feb 2020 17:00:44 +0000 Subject: Browser window: Add stubs for new interfaces for page-info dialogue. --- include/netsurf/browser_window.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) (limited to 'include') diff --git a/include/netsurf/browser_window.h b/include/netsurf/browser_window.h index eb2bd7c6b..cc63f6e7f 100644 --- a/include/netsurf/browser_window.h +++ b/include/netsurf/browser_window.h @@ -789,4 +789,33 @@ browser_window_page_info_state browser_window_get_page_info_state( */ nserror browser_window_get_ssl_chain(struct browser_window *bw, struct cert_chain **chain); +/** + * Get the number of cookies in use for the current page. + * + * \param bw A browser window. + * \return Number of cookies in use, or 0 on error. + */ +int browser_window_get_cookie_count( + const struct browser_window *bw); + +/** + * Open cookie viewer for the current page. + * + * \param bw A browser window. + * \return NSERROR_OK, or appropriate error otherwise. + */ +nserror browser_window_show_cookies( + const struct browser_window *bw); + +/** + * Show the certificate page for the current page. + * + * Does nothing for a page without certificates. + * + * \param bw A browser window. + * \return NSERROR_OK, or appropriate error otherwise. + */ +nserror browser_window_show_certificates( + const struct browser_window *bw); + #endif -- cgit v1.2.3