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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/net/expect_ct_monitor.h
diff --git a/chrome/browser/net/expect_ct_monitor.h b/chrome/browser/net/expect_ct_monitor.h
new file mode 100644
index 0000000000000000000000000000000000000000..ace01044f6a383c9059fef3318dcab1d2cee5eb6
--- /dev/null
+++ b/chrome/browser/net/expect_ct_monitor.h
@@ -0,0 +1,29 @@
+// 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.
+
+#ifndef CHROME_BROWSER_NET_EXPECT_CT_MONITOR_H_
+#define CHROME_BROWSER_NET_EXPECT_CT_MONITOR_H_
+
+#include "base/macros.h"
+
+namespace net {
+class URLRequest;
+} // namespace net
+
+// An interface for monitoring whenever a URLRequest uses a certificate
+// that violates Certificate Transparency policy.
+class ExpectCTMonitor {
+ public:
+ ExpectCTMonitor() {}
+ virtual ~ExpectCTMonitor() {}
+
+ // This method is called when a |request| failed to comply with
+ // Certificate Transparency policy.
+ virtual void OnCTComplianceFailed(net::URLRequest* request) = 0;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ExpectCTMonitor);
+};
+
+#endif // CHROME_BROWSER_NET_EXPECT_CT_MONITOR_H_

Powered by Google App Engine
This is Rietveld 408576698