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/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 SecurityStateModelDelegate { | |
| 18 public: | |
| 19 SecurityStateModelDelegate() {} | |
| 20 virtual ~SecurityStateModelDelegate() {} | |
| 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 // MITM certificate. | |
|
felt
2015/11/23 23:21:00
I think calling it a "MITM certificate" is confusi
estark
2015/11/24 00:07:23
Done.
| |
| 27 virtual bool UsedKnownMITMCertificate() = 0; | |
| 28 | |
| 29 private: | |
| 30 DISALLOW_COPY_AND_ASSIGN(SecurityStateModelDelegate); | |
| 31 }; | |
| 32 | |
| 33 #endif // CHROME_BROWSER_SSL_SECURITY_STATE_MODEL_DELEGATE_H_ | |
| OLD | NEW |