#include "extensions/browser/api/content_settings/content_settings_service.h"
#include "base/lazy_instance.h"
#include "base/memory/scoped_refptr.h"
#include "extensions/browser/pref_names.h"
#include "extensions/common/api/types.h"
#include "extensions/common/extension_id.h"
ChromeSettingScope;
namespace extensions {
ContentSettingsService::ContentSettingsService(content::BrowserContext* context)
: … { … }
ContentSettingsService::~ContentSettingsService() = default;
ContentSettingsService* ContentSettingsService::Get(
content::BrowserContext* context) { … }
BrowserContextKeyedAPIFactory<ContentSettingsService>*
ContentSettingsService::GetFactoryInstance() { … }
void ContentSettingsService::OnExtensionRegistered(
const ExtensionId& extension_id,
const base::Time& install_time,
bool is_enabled) { … }
void ContentSettingsService::OnExtensionPrefsLoaded(
const ExtensionId& extension_id,
const ExtensionPrefs* prefs) { … }
void ContentSettingsService::OnExtensionPrefsDeleted(
const ExtensionId& extension_id) { … }
void ContentSettingsService::OnExtensionStateChanged(
const ExtensionId& extension_id,
bool state) { … }
void ContentSettingsService::OnExtensionPrefsWillBeDestroyed(
ExtensionPrefs* prefs) { … }
void ContentSettingsService::OnExtensionPrefsAvailable(ExtensionPrefs* prefs) { … }
}