#include "extensions/browser/task_queue_util.h"
#include "content/public/browser/browser_context.h"
#include "extensions/browser/extension_registry.h"
#include "extensions/browser/extensions_browser_client.h"
#include "extensions/browser/lazy_background_task_queue.h"
#include "extensions/browser/lazy_context_id.h"
#include "extensions/browser/service_worker/service_worker_task_queue.h"
#include "extensions/common/extension.h"
#include "extensions/common/extension_id.h"
#include "extensions/common/manifest_handlers/background_info.h"
#include "extensions/common/manifest_handlers/incognito_info.h"
namespace extensions {
namespace {
#if DCHECK_IS_ON()
bool IsOffTheRecordContextAllowed(content::BrowserContext* browser_context) { … }
#endif
ServiceWorkerTaskQueue* GetServiceWorkerTaskQueueForBrowserContext(
content::BrowserContext* browser_context,
bool is_split_mode) { … }
ServiceWorkerTaskQueue* GetServiceWorkerTaskQueueForExtension(
content::BrowserContext* browser_context,
const Extension* extension) { … }
ServiceWorkerTaskQueue* GetServiceWorkerTaskQueueForExtensionId(
content::BrowserContext* browser_context,
const ExtensionId& extension_id) { … }
TaskQueueFunction;
void DoTaskQueueFunction(content::BrowserContext* browser_context,
const Extension* extension,
TaskQueueFunction function) { … }
}
LazyContextTaskQueue* GetTaskQueueForLazyContextId(
const LazyContextId& context_id) { … }
void ActivateTaskQueueForExtension(content::BrowserContext* browser_context,
const Extension* extension) { … }
void DeactivateTaskQueueForExtension(content::BrowserContext* browser_context,
const Extension* extension) { … }
}