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

Side by Side Diff: chrome/browser/ssl/chrome_expect_ct_reporter.cc

Issue 1579063002: Implement a skeleton version of Expect CT reports (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove unnecessary (?) NET_EXPORTs Created 4 years, 9 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/ssl/chrome_expect_ct_reporter.h"
6
7 #include <string>
8
9 #include "net/url_request/certificate_report_sender.h"
10
11 ChromeExpectCTReporter::ChromeExpectCTReporter(
12 net::URLRequestContext* request_context)
13 : report_sender_(new net::CertificateReportSender(
14 request_context,
15 net::CertificateReportSender::DO_NOT_SEND_COOKIES)) {}
16
17 ChromeExpectCTReporter::~ChromeExpectCTReporter() {}
18
19 void ChromeExpectCTReporter::OnExpectCTFailed(
20 const net::HostPortPair& host_port_pair,
21 const GURL& report_uri,
22 const net::SSLInfo& ssl_info) {
23 // TODO(estark): build and send a report about the policy
24 // violation. https://crbug.com/568806
25 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698