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

Unified Diff: chrome/browser/ssl/ssl_error_classification.h

Issue 1227173006: New SSL metric added: Likely From Same Domain (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resolving Comments Created 5 years, 5 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: chrome/browser/ssl/ssl_error_classification.h
diff --git a/chrome/browser/ssl/ssl_error_classification.h b/chrome/browser/ssl/ssl_error_classification.h
index 2eda135dfb616681c3a8c77120c7eee52067e927..89869b9ad6dc0f9804841523e57874b81aec24da 100644
--- a/chrome/browser/ssl/ssl_error_classification.h
+++ b/chrome/browser/ssl/ssl_error_classification.h
@@ -117,6 +117,11 @@ class SSLErrorClassification : public content::NotificationObserver {
// fields.
bool IsCertLikelyFromMultiTenantHosting() const;
+ // Returns true if the hostname in |request_url_| has the same domain
+ // (effective TLD + 1 label) as at least one of the subject
+ // alternative names in |cert_|.
+ bool IsCertLikelyFromSameDomain() const;
+
static std::vector<Tokens> GetTokenizedDNSNames(
const std::vector<std::string>& dns_names);
« no previous file with comments | « no previous file | chrome/browser/ssl/ssl_error_classification.cc » ('j') | chrome/browser/ssl/ssl_error_classification.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698