summaryrefslogtreecommitdiff
path: root/include/netsurf/browser_window.h
diff options
context:
space:
mode:
authorMichael Drake <michael.drake@codethink.co.uk>2020-02-23 17:00:44 +0000
committerMichael Drake <michael.drake@codethink.co.uk>2020-02-23 17:38:14 +0000
commita39b651620272d240c40a9ff056eb50a758350f7 (patch)
treefaa201249fc2fb7b151ca13db8f51dc45b91b1e6 /include/netsurf/browser_window.h
parentd23a7b4c8ffda7448bdb05591655954655a3cfe0 (diff)
downloadnetsurf-a39b651620272d240c40a9ff056eb50a758350f7.tar.gz
netsurf-a39b651620272d240c40a9ff056eb50a758350f7.tar.bz2
Browser window: Add stubs for new interfaces for page-info dialogue.
Diffstat (limited to 'include/netsurf/browser_window.h')
-rw-r--r--include/netsurf/browser_window.h29
1 files changed, 29 insertions, 0 deletions
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