Chromium Code Reviews| Index: content/public/browser/web_contents.h |
| diff --git a/content/public/browser/web_contents.h b/content/public/browser/web_contents.h |
| index ffcb4b123ec75d027b41a7c68be882daba3ffd19..a3efa58ffd1fb74fe45392414661212761532654 100644 |
| --- a/content/public/browser/web_contents.h |
| +++ b/content/public/browser/web_contents.h |
| @@ -17,6 +17,7 @@ |
| #include "base/supports_user_data.h" |
| #include "build/build_config.h" |
| #include "content/common/content_export.h" |
| +#include "content/public/browser/certificate_request_result_type.h" |
| #include "content/public/browser/invalidate_type.h" |
| #include "content/public/browser/navigation_controller.h" |
| #include "content/public/browser/page_navigator.h" |
| @@ -432,6 +433,13 @@ class WebContents : public PageNavigator, |
| // Invoked when visible security state changes. |
| virtual void DidChangeVisibleSecurityState() = 0; |
| + using CertErrorCallback = |
| + base::Callback<void(content::CertificateRequestResultType)>; |
| + // Invoked when a certificate error occurs to give observers a chance to |
| + // handle the error. The returned value indictates that an observer |
|
Sami
2017/02/08 14:58:43
typo: indicates
irisu
2017/02/14 05:46:14
Done.
|
| + // will handle the certificate error. |
| + virtual bool NotifyCertificateError(CertErrorCallback handler) = 0; |
| + |
| // Commands ------------------------------------------------------------------ |
| // Stop any pending navigation. |