summaryrefslogtreecommitdiffstats
path: root/net/url_request/fraudulent_certificate_reporter.h
diff options
context:
space:
mode:
authorpalmer@chromium.org <palmer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-15 00:54:05 +0000
committerpalmer@chromium.org <palmer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-15 00:54:05 +0000
commitce2b2ee29a7d34577d9369b42bb0063e3baf3617 (patch)
tree13d62a8bb0b1edcb8a982678f92267ee84a79850 /net/url_request/fraudulent_certificate_reporter.h
parent9c8ae81d134ffa1b5364fb992a27386c9ef96937 (diff)
downloadchromium_src-ce2b2ee29a7d34577d9369b42bb0063e3baf3617.zip
chromium_src-ce2b2ee29a7d34577d9369b42bb0063e3baf3617.tar.gz
chromium_src-ce2b2ee29a7d34577d9369b42bb0063e3baf3617.tar.bz2
Revert 105614.
BUG=99185 Review URL: http://codereview.chromium.org/8289023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105624 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/url_request/fraudulent_certificate_reporter.h')
-rw-r--r--net/url_request/fraudulent_certificate_reporter.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/net/url_request/fraudulent_certificate_reporter.h b/net/url_request/fraudulent_certificate_reporter.h
new file mode 100644
index 0000000..7522c13
--- /dev/null
+++ b/net/url_request/fraudulent_certificate_reporter.h
@@ -0,0 +1,35 @@
+// Copyright (c) 2011 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 NET_URL_REQUEST_FRAUDULENT_CERTIFICATE_REPORTER_H_
+#define NET_URL_REQUEST_FRAUDULENT_CERTIFICATE_REPORTER_H_
+
+#include <string>
+
+#include "net/base/net_export.h"
+
+namespace net {
+
+class SSLInfo;
+
+// FraudulentCertificateReporter is an interface for asynchronously
+// reporting certificate chains that fail the certificate pinning
+// check.
+class NET_EXPORT FraudulentCertificateReporter {
+ public:
+ virtual ~FraudulentCertificateReporter() {}
+
+ // Sends a report to the report collection server containing the |ssl_info|
+ // associated with a connection to |hostname|. If |sni_available| is true,
+ // searches the SNI transport security metadata as well as the usual
+ // transport security metadata when determining policy for sending the report.
+ virtual void SendReport(const std::string& hostname,
+ const SSLInfo& ssl_info,
+ bool sni_available) = 0;
+};
+
+} // namespace net
+
+#endif // NET_URL_REQUEST_FRAUDULENT_CERTIFICATE_REPORTER_H_
+