Web Inspector: Network: add button to show system certificate dialog
[WebKit-https.git] / Source / WebKit / WebProcess / WebPage / WebInspectorUI.cpp
index e82b569..32853ad 100644 (file)
 #include "config.h"
 #include "WebInspectorUI.h"
 
+#include "WebCoreArgumentCoders.h"
 #include "WebInspectorMessages.h"
 #include "WebInspectorProxyMessages.h"
 #include "WebPage.h"
 #include "WebProcess.h"
+#include <WebCore/CertificateInfo.h>
 #include <WebCore/Chrome.h>
 #include <WebCore/DOMWrapperWorld.h>
 #include <WebCore/InspectorController.h>
@@ -261,6 +263,11 @@ void WebInspectorUI::inspectedURLChanged(const String& urlString)
     WebProcess::singleton().parentProcessConnection()->send(Messages::WebInspectorProxy::InspectedURLChanged(urlString), m_inspectedPageIdentifier);
 }
 
+void WebInspectorUI::showCertificate(const CertificateInfo& certificateInfo)
+{
+    WebProcess::singleton().parentProcessConnection()->send(Messages::WebInspectorProxy::ShowCertificate(certificateInfo), m_inspectedPageIdentifier);
+}
+
 void WebInspectorUI::showConsole()
 {
     m_frontendAPIDispatcher.dispatchCommand("showConsole"_s);