#include "chrome/browser/extensions/shared_module_service.h"
#include <set>
#include <vector>
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/version.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/extensions/pending_extension_manager.h"
#include "extensions/browser/extension_system.h"
#include "extensions/browser/uninstall_reason.h"
#include "extensions/common/extension.h"
#include "extensions/common/extension_urls.h"
namespace extensions {
namespace {
ImportInfoVector;
ImportInfoList;
bool IsSharedModule(const Extension* extension,
content::BrowserContext* context) { … }
}
SharedModuleService::SharedModuleService(content::BrowserContext* context)
: … { … }
SharedModuleService::~SharedModuleService() { … }
SharedModuleService::ImportStatus SharedModuleService::CheckImports(
const Extension* extension,
ImportInfoList* missing_modules,
ImportInfoList* outdated_modules) { … }
SharedModuleService::ImportStatus SharedModuleService::SatisfyImports(
const Extension* extension) { … }
std::unique_ptr<ExtensionSet> SharedModuleService::GetDependentExtensions(
const Extension* extension) { … }
InstallGate::Action SharedModuleService::ShouldDelay(const Extension* extension,
bool install_immediately) { … }
void SharedModuleService::PruneSharedModules() { … }
void SharedModuleService::OnExtensionInstalled(
content::BrowserContext* browser_context,
const Extension* extension,
bool is_update) { … }
void SharedModuleService::OnExtensionUninstalled(
content::BrowserContext* browser_context,
const Extension* extension,
extensions::UninstallReason reason) { … }
}