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

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

Issue 2400673003: Remove SSLStatus::security_style member and content::SecurityStyle (Closed)
Patch Set: Created 4 years, 2 months 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_SSL_CHROME_SECURITY_STATE_MODEL_CLIENT_H_ 5 #ifndef CHROME_BROWSER_SSL_CHROME_SECURITY_STATE_MODEL_CLIENT_H_
6 #define CHROME_BROWSER_SSL_CHROME_SECURITY_STATE_MODEL_CLIENT_H_ 6 #define CHROME_BROWSER_SSL_CHROME_SECURITY_STATE_MODEL_CLIENT_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 22 matching lines...) Expand all
33 // with the given |security_info|. Populates 33 // with the given |security_info|. Populates
34 // |security_style_explanations| to explain why the returned 34 // |security_style_explanations| to explain why the returned
35 // SecurityStyle was chosen. 35 // SecurityStyle was chosen.
36 static content::SecurityStyle GetSecurityStyle( 36 static content::SecurityStyle GetSecurityStyle(
37 const security_state::SecurityStateModel::SecurityInfo& security_info, 37 const security_state::SecurityStateModel::SecurityInfo& security_info,
38 content::SecurityStyleExplanations* security_style_explanations); 38 content::SecurityStyleExplanations* security_style_explanations);
39 39
40 // SecurityStateModelClient: 40 // SecurityStateModelClient:
41 void GetVisibleSecurityState( 41 void GetVisibleSecurityState(
42 security_state::SecurityStateModel::VisibleSecurityState* state) override; 42 security_state::SecurityStateModel::VisibleSecurityState* state) override;
43 bool RetrieveCert(scoped_refptr<net::X509Certificate>* cert) override;
estark 2016/10/06 22:00:17 This was a mostly unrelated cleanup that I did whi
felt 2016/10/07 03:30:48 🙌
44 bool UsedPolicyInstalledCertificate() override; 43 bool UsedPolicyInstalledCertificate() override;
45 bool IsOriginSecure(const GURL& url) override; 44 bool IsOriginSecure(const GURL& url) override;
46 45
47 private: 46 private:
48 explicit ChromeSecurityStateModelClient(content::WebContents* web_contents); 47 explicit ChromeSecurityStateModelClient(content::WebContents* web_contents);
49 friend class content::WebContentsUserData<ChromeSecurityStateModelClient>; 48 friend class content::WebContentsUserData<ChromeSecurityStateModelClient>;
50 49
51 content::WebContents* web_contents_; 50 content::WebContents* web_contents_;
52 std::unique_ptr<security_state::SecurityStateModel> security_state_model_; 51 std::unique_ptr<security_state::SecurityStateModel> security_state_model_;
53 52
54 DISALLOW_COPY_AND_ASSIGN(ChromeSecurityStateModelClient); 53 DISALLOW_COPY_AND_ASSIGN(ChromeSecurityStateModelClient);
55 }; 54 };
56 55
57 #endif // CHROME_BROWSER_SSL_CHROME_SECURITY_STATE_MODEL_CLIENT_H_ 56 #endif // CHROME_BROWSER_SSL_CHROME_SECURITY_STATE_MODEL_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698