chromium/chrome/browser/ui/webui/sync_file_system_internals/extension_statuses_handler.cc

// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 {

// TODO(crbug.com/40638409): Break this and GetExtensionStatusesAsDictionary
// into a separate library, so the callbacks can use weak pointers to the
// calling instances. This will also break the dependency between
// ExtensionStatusesHandler and FileMetadataHandler.
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) {}

}  // namespace

ExtensionStatusesHandler::ExtensionStatusesHandler(Profile* profile)
    :{}

ExtensionStatusesHandler::~ExtensionStatusesHandler() {}

void ExtensionStatusesHandler::RegisterMessages() {}

// static
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) {}

}  // namespace syncfs_internals