| OLD | NEW |
| (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_SSL_SECURITY_STATE_MODEL_CLIENT_H_ |
| 6 #define CHROME_BROWSER_SSL_SECURITY_STATE_MODEL_CLIENT_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "base/memory/ref_counted.h" |
| 10 |
| 11 namespace net { |
| 12 class X509Certificate; |
| 13 } // namespace net |
| 14 |
| 15 // Provides embedder-specific information that a SecurityStateModel |
| 16 // needs to determine the page's security status. |
| 17 class SecurityStateModelClient { |
| 18 public: |
| 19 SecurityStateModelClient() {} |
| 20 virtual ~SecurityStateModelClient() {} |
| 21 |
| 22 // Returns the certificate used to load the page or request. |
| 23 virtual bool RetrieveCert(scoped_refptr<net::X509Certificate>* cert) = 0; |
| 24 |
| 25 // Returns true if the page or request is known to be loaded with a |
| 26 // certificate installed by the system administrator. |
| 27 virtual bool UsedPolicyInstalledCertificate() = 0; |
| 28 |
| 29 private: |
| 30 DISALLOW_COPY_AND_ASSIGN(SecurityStateModelClient); |
| 31 }; |
| 32 |
| 33 #endif // CHROME_BROWSER_SSL_SECURITY_STATE_MODEL_CLIENT_H_ |
| OLD | NEW |