Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(192)

Unified Diff: content/public/browser/web_contents.h

Issue 2639203003: Add certificate error handling to devtools. (Closed)
Patch Set: Fixed test. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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.

Powered by Google App Engine
This is Rietveld 408576698