#include "extensions/browser/warning_service.h"
#include "base/observer_list.h"
#include "content/public/browser/browser_thread.h"
#include "extensions/browser/extensions_browser_client.h"
#include "extensions/browser/warning_service_factory.h"
#include "extensions/common/extension_id.h"
#include "extensions/common/extension_set.h"
BrowserThread;
namespace extensions {
WarningService::WarningService(content::BrowserContext* browser_context)
: … { … }
WarningService::~WarningService() { … }
WarningService* WarningService::Get(content::BrowserContext* browser_context) { … }
void WarningService::ClearWarnings(
const std::set<Warning::WarningType>& types) { … }
std::set<Warning::WarningType>
WarningService::GetWarningTypesAffectingExtension(
const ExtensionId& extension_id) const { … }
std::vector<std::string> WarningService::GetWarningMessagesForExtension(
const ExtensionId& extension_id) const { … }
void WarningService::AddWarnings(const WarningSet& warnings) { … }
void WarningService::NotifyWarningsOnUI(void* browser_context_id,
const WarningSet& warnings) { … }
void WarningService::AddObserver(Observer* observer) { … }
void WarningService::RemoveObserver(Observer* observer) { … }
void WarningService::NotifyWarningsChanged(
const ExtensionIdSet& affected_extensions) { … }
void WarningService::OnExtensionUnloaded(
content::BrowserContext* browser_context,
const Extension* extension,
UnloadedExtensionReason reason) { … }
}