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

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

Issue 979893003: Refactor ChromeFraudulentCertReporter for code reuse by SSL reporting (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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: chrome/browser/ssl/ssl_interstitial_certificate_reporter.h
diff --git a/chrome/browser/ssl/ssl_interstitial_certificate_reporter.h b/chrome/browser/ssl/ssl_interstitial_certificate_reporter.h
new file mode 100644
index 0000000000000000000000000000000000000000..c89b606cdd82ca51154d110841827e416df9c465
--- /dev/null
+++ b/chrome/browser/ssl/ssl_interstitial_certificate_reporter.h
@@ -0,0 +1,34 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_SSL_SSL_INTERSTITIAL_CERTIFICATE_REPORTER_H_
+#define CHROME_BROWSER_SSL_SSL_INTERSTITIAL_CERTIFICATE_REPORTER_H_
+
+#include <string>
+
+#include "base/logging.h"
+#include "chrome/browser/net/chrome_certificate_reporter.h"
+
+namespace net {
+class SSLInfo;
+class URLRequestContext;
+}
+
+// This class builds and sends certiifcate reports from SSL blocking
+// page interstitials.
+class SSLInterstitialCertificateReporter
felt 2015/03/04 19:15:47 Small detail, but I'm not sure if this is the best
estark 2015/03/04 22:11:57 This class is gone now (see previous comment).
+ : public chrome_browser_net::ChromeCertificateReporter {
+ public:
+ explicit SSLInterstitialCertificateReporter(
+ net::URLRequestContext* request_context);
+ ~SSLInterstitialCertificateReporter() {}
+
+ // chrome_browser_net::ChromeCertificateReporter implementation
+ virtual void SendReport(const std::string& hostname,
+ const net::SSLInfo& ssl_info);
+
+ DISALLOW_COPY_AND_ASSIGN(SSLInterstitialCertificateReporter);
+};
+
+#endif // CHROME_BROWSER_SSL_SSL_INTERSTITIAL_CERTIFICATE_REPORTER_H_

Powered by Google App Engine
This is Rietveld 408576698