blob: b2aebbe200ed971d34c8f227aca8bfe9700e6962 [file] [log] [blame]
// Copyright 2025 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef EXTENSIONS_COMMON_USER_SCRIPTS_ALLOWED_STATE_H_
#define EXTENSIONS_COMMON_USER_SCRIPTS_ALLOWED_STATE_H_
#include "extensions/common/extension_id.h"
namespace extensions {
// Returns the current user script allowed state for the given extension ID for
// the specific context.
// Defaults to false if there is no entry.
bool GetCurrentUserScriptAllowedState(int context_id,
const ExtensionId& extension_id);
// Sets the user script allowed state for the given extension ID in the specific
// context.
void SetCurrentUserScriptAllowedState(int context_id,
const ExtensionId& extension_id,
bool enabled);
} // namespace extensions
#endif // EXTENSIONS_COMMON_USER_SCRIPTS_ALLOWED_STATE_H_