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

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

Issue 1470813002: Add SecurityStateModelClient interface and implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: delegate_ -> client_ 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
« no previous file with comments | « no previous file | chrome/browser/ssl/chrome_security_state_model_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_CLIENT_H_
6 #define CHROME_BROWSER_SSL_CHROME_SECURITY_STATE_MODEL_CLIENT_H_
7
8 #include "base/macros.h"
9 #include "chrome/browser/ssl/security_state_model_client.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 ChromeSecurityStateModelClient : public SecurityStateModelClient {
18 public:
19 explicit ChromeSecurityStateModelClient(content::WebContents* web_contents);
20 ~ChromeSecurityStateModelClient() override;
21
22 // SecurityStateModelClient:
23 bool RetrieveCert(scoped_refptr<net::X509Certificate>* cert) override;
24 bool UsedPolicyInstalledCertificate() override;
25
26 private:
27 content::WebContents* web_contents_;
28
29 DISALLOW_COPY_AND_ASSIGN(ChromeSecurityStateModelClient);
30 };
31
32 #endif // CHROME_BROWSER_SSL_CHROME_SECURITY_STATE_MODEL_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ssl/chrome_security_state_model_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698