#include "chrome/browser/extensions/safe_browsing_verdict_handler.h"
#include "base/metrics/histogram_macros.h"
#include "base/stl_util.h"
#include "base/trace_event/trace_event.h"
#include "chrome/browser/extensions/extension_service.h"
#include "extensions/browser/blocklist_extension_prefs.h"
#include "extensions/browser/blocklist_state.h"
#include "extensions/browser/extension_registry.h"
namespace extensions {
namespace {
void Partition(const ExtensionIdSet& before,
const ExtensionIdSet& after,
const ExtensionIdSet& unchanged,
ExtensionIdSet* no_longer,
ExtensionIdSet* not_yet) { … }
}
SafeBrowsingVerdictHandler::SafeBrowsingVerdictHandler(
ExtensionPrefs* extension_prefs,
ExtensionRegistry* registry,
ExtensionService* extension_service)
: … { … }
SafeBrowsingVerdictHandler::~SafeBrowsingVerdictHandler() = default;
void SafeBrowsingVerdictHandler::Init() { … }
void SafeBrowsingVerdictHandler::ManageBlocklist(
const Blocklist::BlocklistStateMap& state_map) { … }
void SafeBrowsingVerdictHandler::UpdateBlocklistedExtensions(
const ExtensionIdSet& blocklist,
const ExtensionIdSet& unchanged) { … }
void SafeBrowsingVerdictHandler::UpdateGreylistedExtensions(
const ExtensionIdSet& greylist,
const ExtensionIdSet& unchanged,
const Blocklist::BlocklistStateMap& state_map) { … }
void SafeBrowsingVerdictHandler::OnExtensionUninstalled(
content::BrowserContext* browser_context,
const Extension* extension,
UninstallReason reason) { … }
}