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

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

Issue 2448943002: Refactor SecurityStateModel/Clients for simplicity and reusability. (Closed)
Patch Set: refactor -> SecurityStateTabHelper. 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 "components/security_state/core/security_state_model.h"
11 #include "third_party/WebKit/public/platform/WebSecurityStyle.h"
12
13 namespace content {
14 struct SecurityStyleExplanations;
15 class WebContents;
16 }
17
18 namespace security_state_content_utils {
blundell 2016/11/01 23:29:01 nit: this should just be the namespace of the comp
Eric Seckler 2016/11/03 17:01:06 Done.
19
20 // Retrieves the visible security state that is relevant to the
21 // SecurityStateModel from the current page in |web_contents|.
22 std::unique_ptr<security_state::SecurityStateModel::VisibleSecurityState>
23 GetVisibleSecurityState(content::WebContents* web_contents);
24
25 // Returns the SecurityStyle that should be applied to a WebContents
26 // with the given |security_info|. Populates
27 // |security_style_explanations| to explain why the returned
28 // SecurityStyle was chosen.
29 blink::WebSecurityStyle GetSecurityStyle(
30 const security_state::SecurityStateModel::SecurityInfo& security_info,
31 content::SecurityStyleExplanations* security_style_explanations);
32
33 } // namespace security_state_content_utils
34
35 #endif // COMPONENTS_SECURITY_STATE_CONTENT_CONTENT_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698