Browser window: Add stubs for new interfaces for page-info dialogue.

This commit is contained in:
Michael Drake 2020-02-23 17:00:44 +00:00
parent d23a7b4c8f
commit a39b651620
2 changed files with 53 additions and 0 deletions

View File

@ -4721,3 +4721,27 @@ browser_window_get_ssl_chain(struct browser_window *bw,
return NSERROR_OK;
}
/* Exported interface, documented in browser_window.h */
int browser_window_get_cookie_count(
const struct browser_window *bw)
{
/** \todo Implement cookie count */
return 0;
}
/* Exported interface, documented in browser_window.h */
nserror browser_window_show_cookies(
const struct browser_window *bw)
{
/** \todo Implement show cookies */
return NSERROR_OK;
}
/* Exported interface, documented in browser_window.h */
nserror browser_window_show_certificates(
const struct browser_window *bw)
{
/** \todo Implement show certificates */
return NSERROR_OK;
}

View File

@ -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