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

Unified Diff: content/browser/devtools/protocol/network_handler.cc

Issue 1589703002: Surface SCT (Signed Certificate Timestamp) counts in the Security panel. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/browser/devtools/protocol/network_handler.cc
diff --git a/content/browser/devtools/protocol/network_handler.cc b/content/browser/devtools/protocol/network_handler.cc
index d18d87a6b96f36a677e387e4d8c65886c4b75ca3..ac5989ebc9d2ac06f3e8bdb6b860fd7132135aed 100644
--- a/content/browser/devtools/protocol/network_handler.cc
+++ b/content/browser/devtools/protocol/network_handler.cc
@@ -315,6 +315,20 @@ Response NetworkHandler::GetCertificateDetails(
return Response::OK();
}
+Response NetworkHandler::GetCertificateTransparencySummary(
+ bool is_valid_ev,
+ int num_unknown_scts,
+ int num_invalid_scts,
+ int num_valid_scts,
+ std::string* result) {
+ if (!host_)
+ return Response::InternalError("Could not connect to view");
+ WebContents* web_contents = WebContents::FromRenderFrameHost(host_);
+ web_contents->GetDelegate()->GetCertificateTransparencySummary(
+ is_valid_ev, num_unknown_scts, num_invalid_scts, num_valid_scts, result);
+ return Response::OK();
+}
+
Response NetworkHandler::ShowCertificateViewer(int certificate_id) {
if (!host_)
return Response::InternalError("Could not connect to view");

Powered by Google App Engine
This is Rietveld 408576698