| 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_
|
|
|