chromium/components/security_state/content/security_state_tab_helper.h

// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef COMPONENTS_SECURITY_STATE_CONTENT_SECURITY_STATE_TAB_HELPER_H_
#define COMPONENTS_SECURITY_STATE_CONTENT_SECURITY_STATE_TAB_HELPER_H_

#include <memory>

#include "base/functional/callback.h"
#include "base/types/strong_alias.h"
#include "components/security_state/core/security_state.h"
#include "content/public/browser/web_contents_observer.h"
#include "content/public/browser/web_contents_user_data.h"
#include "third_party/blink/public/common/security/security_style.h"

namespace content {
class WebContents;
}  // namespace content

// Tab helper provides the page's security status. This fundamental
// implementation uses the WebContent's `VisibleSecurityState` to access the
// `security_state::SecurityLevel`. Embedders override this class to provide
// additional information, e.g. about policy-installed certificates.
class SecurityStateTabHelper
    : public content::WebContentsUserData<SecurityStateTabHelper> {};

#endif  // COMPONENTS_SECURITY_STATE_CONTENT_SECURITY_STATE_TAB_HELPER_H_