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

Side by Side Diff: components/security_state/content/content_utils.h

Issue 2448943002: Refactor SecurityStateModel/Clients for simplicity and reusability. (Closed)
Patch Set: sync. Created 4 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 2016 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 COMPONENTS_SECURITY_STATE_CONTENT_CONTENT_UTILS_H_
6 #define COMPONENTS_SECURITY_STATE_CONTENT_CONTENT_UTILS_H_
7
8 #include <memory>
9
10 #include "third_party/WebKit/public/platform/WebSecurityStyle.h"
11
12 namespace content {
13 struct SecurityStyleExplanations;
14 class WebContents;
15 } // namespace content
16
17 namespace security_state {
18 struct SecurityInfo;
19 struct VisibleSecurityState;
20 } // namespace security_state
21
22 namespace security_state {
23
24 // Retrieves the visible security state that is relevant to GetSecurityInfo()
25 // from the current page in |web_contents|.
26 std::unique_ptr<security_state::VisibleSecurityState> GetVisibleSecurityState(
27 content::WebContents* web_contents);
28
29 // Returns the SecurityStyle that should be applied to a WebContents
30 // with the given |security_info|. Populates
31 // |security_style_explanations| to explain why the returned
32 // SecurityStyle was chosen.
33 blink::WebSecurityStyle GetSecurityStyle(
34 const security_state::SecurityInfo& security_info,
35 content::SecurityStyleExplanations* security_style_explanations);
36
37 } // namespace security_state
38
39 #endif // COMPONENTS_SECURITY_STATE_CONTENT_CONTENT_UTILS_H_
OLDNEW
« no previous file with comments | « components/security_state/content/DEPS ('k') | components/security_state/content/content_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698