Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(226)

Side by Side Diff: chrome/browser/ssl/chrome_security_state_model_delegate.h

Issue 1470813002: Add SecurityStateModelClient interface and implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: blundell comments Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ssl/chrome_security_state_model_delegate.cc » ('j') | chrome/browser/ssl/security_state_model.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698