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

Side by Side Diff: chrome/browser/ssl/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 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_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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698