chromium/chrome/browser/extensions/devtools_util.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/extensions/devtools_util.h"

#include "base/functional/bind.h"
#include "chrome/browser/devtools/devtools_window.h"
#include "chrome/browser/profiles/profile.h"
#include "extensions/browser/extension_host.h"
#include "extensions/browser/extension_registry.h"
#include "extensions/browser/lazy_context_id.h"
#include "extensions/browser/lazy_context_task_queue.h"
#include "extensions/browser/process_manager.h"
#include "extensions/browser/service_worker/service_worker_task_queue.h"
#include "extensions/common/extension.h"
#include "extensions/common/manifest_handlers/background_info.h"

namespace extensions {
namespace devtools_util {

namespace {

// Helper to inspect an ExtensionHost after it has been loaded.
void InspectExtensionHost(
    DevToolsOpenedByAction opened_by,
    std::unique_ptr<LazyContextTaskQueue::ContextInfo> context_info) {}

void InspectServiceWorkerBackgroundHelper(
    DevToolsOpenedByAction opened_by,
    std::unique_ptr<LazyContextTaskQueue::ContextInfo> context_info) {}

}  // namespace

// Helper to inspect a service worker after it has been started.
void InspectServiceWorkerBackground(const Extension* extension,
                                    Profile* profile,
                                    DevToolsOpenedByAction opened_by) {}

void InspectInactiveServiceWorkerBackground(const Extension* extension,
                                            Profile* profile,
                                            DevToolsOpenedByAction opened_by) {}

void InspectBackgroundPage(const Extension* extension,
                           Profile* profile,
                           DevToolsOpenedByAction opened_by) {}

}  // namespace devtools_util
}  // namespace extensions