Index: chrome/browser/ssl/chrome_expect_ct_reporter.cc |
diff --git a/chrome/browser/ssl/chrome_expect_ct_reporter.cc b/chrome/browser/ssl/chrome_expect_ct_reporter.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..3adfe47975da42907cbbde12cf572459fb6b3701 |
--- /dev/null |
+++ b/chrome/browser/ssl/chrome_expect_ct_reporter.cc |
@@ -0,0 +1,27 @@ |
+// 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. |
+ |
+#include "chrome/browser/ssl/chrome_expect_ct_reporter.h" |
+ |
+#include <string> |
+ |
+#include "net/url_request/certificate_report_sender.h" |
+#include "net/url_request/url_request.h" |
+#include "net/url_request/url_request_context.h" |
mmenke
2016/03/07 18:28:08
The last two includes are not currently used in th
estark
2016/03/08 02:36:06
Done.
estark
2016/03/08 02:36:06
Done.
|
+ |
+ChromeExpectCTReporter::ChromeExpectCTReporter( |
mmenke
2016/03/07 18:28:08
Is there going to be anything Chrome specific abou
estark
2016/03/07 22:20:32
I did it this way (ChromeExpectCTReporter instead
mmenke
2016/03/07 23:08:12
Hrm...Then it seems a little weird that Certificat
estark
2016/03/08 02:36:06
net::CertificateReportSender is used by other thin
|
+ net::URLRequestContext* request_context) |
+ : report_sender_(new net::CertificateReportSender( |
+ request_context, |
+ net::CertificateReportSender::DO_NOT_SEND_COOKIES)) {} |
+ |
+ChromeExpectCTReporter::~ChromeExpectCTReporter() {} |
+ |
+void ChromeExpectCTReporter::OnExpectCTFailed( |
+ const net::HostPortPair& host_port_pair, |
+ const GURL& report_uri, |
+ const net::SSLInfo& ssl_info) { |
+ // TODO(estark): build and send a report about the policy |
+ // violation. https://crbug.com/568806 |
+} |