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

Side by Side Diff: chrome/browser/net/expect_ct_monitor.h

Issue 1579063002: Implement a skeleton version of Expect CT reports (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 11 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 2015 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 #ifndef CHROME_BROWSER_NET_EXPECT_CT_MONITOR_H_
6 #define CHROME_BROWSER_NET_EXPECT_CT_MONITOR_H_
7
8 #include "base/macros.h"
9
10 namespace net {
11 class URLRequest;
12 } // namespace net
13
14 // An interface for monitoring whenever a URLRequest uses a certificate
15 // that violates Certificate Transparency policy.
16 class ExpectCTMonitor {
17 public:
18 ExpectCTMonitor() {}
19 virtual ~ExpectCTMonitor() {}
20
21 // This method is called when a |request| failed to comply with
22 // Certificate Transparency policy.
23 virtual void OnCTComplianceFailed(net::URLRequest* request) = 0;
24
25 private:
26 DISALLOW_COPY_AND_ASSIGN(ExpectCTMonitor);
27 };
28
29 #endif // CHROME_BROWSER_NET_EXPECT_CT_MONITOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698