blob: 81aa1645a32067bbefa9bd2177eb5e87332aee7e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_COMMON_SECURITY_STYLE_UTIL_H_
#define CONTENT_COMMON_SECURITY_STYLE_UTIL_H_
#include "content/public/common/security_style.h"
#include "net/cert/cert_status_flags.h"
class GURL;
namespace content {
// Returns a security style describing an individual resource. Does
// not take into account any of the page- or host-level state such as
// mixed content or whether the host has run insecure content.
SecurityStyle GetSecurityStyleForResource(const GURL& url,
bool has_certificate,
net::CertStatus cert_status);
} // namespace content
#endif // CONTENT_COMMON_SECURITY_STYLE_UTIL_H_
|