Content settings: remove some plugin-related code/resources when... there are no...
[chromium-blink-merge.git] / content / test / mock_ssl_host_state_delegate.h
blob836139e681233fb4a315648958d1a2e4e6216453
1 // Copyright (c) 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.
5 #ifndef CONTENT_PUBLIC_TEST_MOCK_SSL_HOST_STATE_DELEGATE_H_
6 #define CONTENT_PUBLIC_TEST_MOCK_SSL_HOST_STATE_DELEGATE_H_
8 #include "content/public/browser/ssl_host_state_delegate.h"
10 namespace content {
12 class MockSSLHostStateDelegate : public SSLHostStateDelegate {
13 public:
14 MockSSLHostStateDelegate();
15 ~MockSSLHostStateDelegate() override;
17 void AllowCert(const std::string& host,
18 const net::X509Certificate& cert,
19 net::CertStatus error) override;
21 void Clear() override;
23 CertJudgment QueryPolicy(const std::string& host,
24 const net::X509Certificate& cert,
25 net::CertStatus error,
26 bool* expired_previous_decision) override;
28 void HostRanInsecureContent(const std::string& host, int pid) override;
30 bool DidHostRunInsecureContent(const std::string& host,
31 int pid) const override;
33 void RevokeUserAllowExceptions(const std::string& host) override;
35 bool HasAllowException(const std::string& host) const override;
37 private:
38 std::set<std::string> exceptions_;
41 } // namespace content
43 #endif // CONTENT_PUBLIC_TEST_MOCK_SSL_HOST_STATE_DELEGATE_H_