#include "extensions/browser/extension_prefs_helper.h"
#include "build/build_config.h"
#include "components/prefs/pref_service.h"
#include "extensions/browser/extension_pref_value_map.h"
#include "extensions/browser/extension_prefs.h"
#include "extensions/browser/extension_prefs_helper_factory.h"
#include "extensions/browser/pref_names.h"
#include "extensions/common/api/types.h"
#include "extensions/common/extension_id.h"
namespace extensions {
BrowserContext;
ExtensionPrefsHelper* ExtensionPrefsHelper::Get(BrowserContext* context) { … }
ExtensionPrefsHelper::ExtensionPrefsHelper(ExtensionPrefs* prefs,
ExtensionPrefValueMap* value_map)
: … { … }
ExtensionPrefsHelper::~ExtensionPrefsHelper() = default;
void ExtensionPrefsHelper::SetExtensionControlledPref(
const ExtensionId& extension_id,
const std::string& pref_key,
ChromeSettingScope scope,
base::Value value) { … }
void ExtensionPrefsHelper::RemoveExtensionControlledPref(
const ExtensionId& extension_id,
const std::string& pref_key,
ChromeSettingScope scope) { … }
bool ExtensionPrefsHelper::CanExtensionControlPref(
const ExtensionId& extension_id,
const std::string& pref_key,
bool incognito) { … }
bool ExtensionPrefsHelper::DoesExtensionControlPref(
const ExtensionId& extension_id,
const std::string& pref_key,
bool* from_incognito) { … }
}