 Chromium Code Reviews
 Chromium Code Reviews Issue 1579063002:
  Implement a skeleton version of Expect CT reports  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master
    
  
    Issue 1579063002:
  Implement a skeleton version of Expect CT reports  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master| 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..6d841c6ed29df3fbe910a0c98045a95c75834171 | 
| --- /dev/null | 
| +++ b/chrome/browser/ssl/chrome_expect_ct_reporter.cc | 
| @@ -0,0 +1,25 @@ | 
| +// Copyright 2015 The Chromium Authors. All rights reserved. | 
| 
eroman
2016/03/08 23:40:47
nit: 2016
 
estark
2016/03/08 23:46:32
Done.
 | 
| +// 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" | 
| + | 
| +ChromeExpectCTReporter::ChromeExpectCTReporter( | 
| + 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 | 
| +} |