| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CONTENT_PUBLIC_TEST_MOCK_SSL_HOST_STATE_DELEGATE_H_ | 5 #ifndef CONTENT_PUBLIC_TEST_MOCK_SSL_HOST_STATE_DELEGATE_H_ |
| 6 #define CONTENT_PUBLIC_TEST_MOCK_SSL_HOST_STATE_DELEGATE_H_ | 6 #define CONTENT_PUBLIC_TEST_MOCK_SSL_HOST_STATE_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "content/public/browser/ssl_host_state_delegate.h" | 8 #include "content/public/browser/ssl_host_state_delegate.h" |
| 9 | 9 |
| 10 namespace content { | 10 namespace content { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 CertJudgment QueryPolicy(const std::string& host, | 23 CertJudgment QueryPolicy(const std::string& host, |
| 24 const net::X509Certificate& cert, | 24 const net::X509Certificate& cert, |
| 25 net::CertStatus error, | 25 net::CertStatus error, |
| 26 bool* expired_previous_decision) override; | 26 bool* expired_previous_decision) override; |
| 27 | 27 |
| 28 void HostRanInsecureContent(const std::string& host, int pid) override; | 28 void HostRanInsecureContent(const std::string& host, int pid) override; |
| 29 | 29 |
| 30 bool DidHostRunInsecureContent(const std::string& host, | 30 bool DidHostRunInsecureContent(const std::string& host, |
| 31 int pid) const override; | 31 int pid) const override; |
| 32 | 32 |
| 33 void HostRanContentWithCertificateErrors(const std::string& host, |
| 34 int pid) override; |
| 35 |
| 36 bool DidHostRunContentWithCertificateErrors(const std::string& host, |
| 37 int pid) const override; |
| 38 |
| 33 void RevokeUserAllowExceptions(const std::string& host) override; | 39 void RevokeUserAllowExceptions(const std::string& host) override; |
| 34 | 40 |
| 35 bool HasAllowException(const std::string& host) const override; | 41 bool HasAllowException(const std::string& host) const override; |
| 36 | 42 |
| 37 private: | 43 private: |
| 38 std::set<std::string> exceptions_; | 44 std::set<std::string> exceptions_; |
| 39 }; | 45 }; |
| 40 | 46 |
| 41 } // namespace content | 47 } // namespace content |
| 42 | 48 |
| 43 #endif // CONTENT_PUBLIC_TEST_MOCK_SSL_HOST_STATE_DELEGATE_H_ | 49 #endif // CONTENT_PUBLIC_TEST_MOCK_SSL_HOST_STATE_DELEGATE_H_ |
| OLD | NEW |