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_CHROME_SECURITY_STATE_MODEL_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_SSL_CHROME_SECURITY_STATE_MODEL_DELEGATE_H_ |
| 7 |
| 8 #include "base/macros.h" |
| 9 #include "chrome/browser/ssl/security_state_model_delegate.h" |
| 10 |
| 11 namespace content { |
| 12 class WebContents; |
| 13 } // namespace content |
| 14 |
| 15 // Uses a WebContents to provide a SecurityStateModel with the |
| 16 // information that it needs to determine the page's security status. |
| 17 class ChromeSecurityStateModelDelegate : public SecurityStateModelDelegate { |
| 18 public: |
| 19 explicit ChromeSecurityStateModelDelegate(content::WebContents* web_contents); |
| 20 ~ChromeSecurityStateModelDelegate() override; |
| 21 |
| 22 // SecurityStateModelDelegate: |
| 23 bool RetrieveCert(scoped_refptr<net::X509Certificate>* cert) override; |
| 24 bool UsedKnownMITMCertificate() override; |
| 25 |
| 26 private: |
| 27 content::WebContents* web_contents_; |
| 28 |
| 29 DISALLOW_COPY_AND_ASSIGN(ChromeSecurityStateModelDelegate); |
| 30 }; |
| 31 |
| 32 #endif // CHROME_BROWSER_SSL_CHROME_SECURITY_STATE_MODEL_DELEGATE_H_ |
OLD | NEW |