#include "chrome/browser/ui/webui/sync_file_system_internals/extension_statuses_handler.h"
#include <map>
#include <memory>
#include <utility>
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/memory/weak_ptr.h"
#include "base/values.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/sync_file_system/sync_file_system_service.h"
#include "chrome/browser/sync_file_system/sync_file_system_service_factory.h"
#include "content/public/browser/web_ui.h"
#include "content/public/browser/web_ui_data_source.h"
#include "extensions/browser/extension_registry.h"
#include "extensions/browser/extension_system.h"
#include "extensions/common/extension.h"
SyncFileSystemServiceFactory;
SyncServiceState;
namespace syncfs_internals {
namespace {
void ConvertExtensionStatusToDictionary(
const base::WeakPtr<extensions::ExtensionService>& extension_service,
base::OnceCallback<void(const base::Value::List)> callback,
const std::map<GURL, std::string>& status_map) { … }
}
ExtensionStatusesHandler::ExtensionStatusesHandler(Profile* profile)
: … { … }
ExtensionStatusesHandler::~ExtensionStatusesHandler() { … }
void ExtensionStatusesHandler::RegisterMessages() { … }
void ExtensionStatusesHandler::GetExtensionStatusesAsDictionary(
Profile* profile,
base::OnceCallback<void(const base::Value::List)> callback) { … }
void ExtensionStatusesHandler::HandleGetExtensionStatuses(
const base::Value::List& args) { … }
void ExtensionStatusesHandler::DidGetExtensionStatuses(std::string callback_id,
base::Value::List list) { … }
}