chromium/components/security_interstitials/content/insecure_form_tab_storage.h

// Copyright 2020 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_INTERSTITIALS_CONTENT_INSECURE_FORM_TAB_STORAGE_H_
#define COMPONENTS_SECURITY_INTERSTITIALS_CONTENT_INSECURE_FORM_TAB_STORAGE_H_

#include "content/public/browser/web_contents_user_data.h"

namespace content {
class WebContents;
}  // namespace content

namespace security_interstitials {

// A short-lived, per tab storage for mixed form interstitials, that:
// -Stores a flag while proceeding, so a new interstitial is not shown
//  immediately.
// -Stores a flag when an interstitial is currently being shown, to prevent
//  reloading the interstitial from causing it to be bypassed in certain cases
//  (e.g. for GET form submissions).
class InsecureFormTabStorage
    : public content::WebContentsUserData<InsecureFormTabStorage> {};

}  // namespace security_interstitials

#endif  // COMPONENTS_SECURITY_INTERSTITIALS_CONTENT_INSECURE_FORM_TAB_STORAGE_H_