Chromium Code Reviews| 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_DELEGATE_H_ | |
| 6 #define CHROME_BROWSER_SSL_SECURITY_STATE_MODEL_DELEGATE_H_ | |
| 7 | |
| 8 #include "base/memory/ref_counted.h" | |
| 9 | |
| 10 namespace net { | |
| 11 class X509Certificate; | |
| 12 } // namespace net | |
| 13 | |
| 14 // Provides information that a SecurityStateModel needs to determine the | |
|
blundell
2015/11/23 16:06:17
"embedder-specific information"
estark
2015/11/23 16:23:40
Done.
| |
| 15 // page's security status. | |
| 16 class SecurityStateModelDelegate { | |
| 17 public: | |
| 18 SecurityStateModelDelegate() {} | |
| 19 virtual ~SecurityStateModelDelegate() {} | |
| 20 | |
| 21 // Returns the certificate used to load the page or request. | |
| 22 virtual bool RetrieveCert(scoped_refptr<net::X509Certificate>* cert) = 0; | |
| 23 | |
| 24 // Returns true if the page or request is known to be loaded with a | |
| 25 // MITM certificate. | |
| 26 virtual bool UsedKnownMITMCertificate() = 0; | |
| 27 }; | |
| 28 | |
| 29 #endif // CHROME_BROWSER_SSL_SECURITY_STATE_MODEL_DELEGATE_H_ | |
| OLD | NEW |