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

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: 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/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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698