blob: 483d7cc7733a8b952d80ef0cd19ba2fee7446f82 [file] [log] [blame]
// 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.
#ifndef CHROME_BROWSER_EXTENSIONS_DEVTOOLS_UTIL_H_
#define CHROME_BROWSER_EXTENSIONS_DEVTOOLS_UTIL_H_
#include "extensions/buildflags/buildflags.h"
static_assert(BUILDFLAG(ENABLE_EXTENSIONS_CORE));
class Profile;
enum class DevToolsOpenedByAction;
namespace extensions {
class Extension;
namespace devtools_util {
// Open a dev tools window for the service worker background for the given
// extension.
void InspectServiceWorkerBackground(const Extension* extension,
Profile* profile,
DevToolsOpenedByAction opened_by);
// Open a dev tools window for an inactive service worker background for the
// given extension.
void InspectInactiveServiceWorkerBackground(const Extension* extension,
Profile* profile,
DevToolsOpenedByAction opened_by);
// Open a dev tools window for the background page for the given extension,
// starting the background page first if necessary.
void InspectBackgroundPage(const Extension* extension,
Profile* profile,
DevToolsOpenedByAction opened_by);
} // namespace devtools_util
} // namespace extensions
#endif // CHROME_BROWSER_EXTENSIONS_DEVTOOLS_UTIL_H_