#pragma once
#include <pal/LogMacros.h>
#include <wtf/Assertions.h>
#include <wtf/Forward.h>
namespace WebCore {
#if !LOG_DISABLED || !RELEASE_LOG_DISABLED
#ifndef LOG_CHANNEL_PREFIX
#define LOG_CHANNEL_PREFIX Log
#endif
#define WEBCORE_LOG_CHANNELS(M) \
M(Animations) \
M(Archives) \
M(Compositing) \
M(ContentFiltering) \
M(DatabaseTracker) \
M(DisplayLists) \
M(DOMTimers) \
M(Editing) \
M(Events) \
M(FileAPI) \
M(Filters) \
M(Frames) \
M(FTP) \
M(Fullscreen) \
M(Gamepad) \
M(History) \
M(IOSurface) \
M(IconDatabase) \
M(Images) \
M(IndexedDB) \
M(IndexedDBOperations) \
M(Layers) \
M(Layout) \
M(Loading) \
M(Media) \
M(MediaCaptureSamples) \
M(MediaQueries) \
M(MediaSource) \
M(MediaStream) \
M(MediaSourceSamples) \
M(MemoryPressure) \
M(MessagePorts) \
M(Network) \
M(NotYetImplemented) \
M(PageCache) \
M(PerformanceLogging) \
M(PlatformLeaks) \
M(Plugins) \
M(PopupBlocking) \
M(Progress) \
M(RemoteInspector) \
M(ResourceLoading) \
M(ResourceLoadObserver) \
M(ResourceLoadStatistics) \
M(Scrolling) \
M(Services) \
M(ServiceWorker) \
M(SpellingAndGrammar) \
M(SQLDatabase) \
M(StorageAPI) \
M(SVG) \
M(TextAutosizing) \
M(Tiling) \
M(Threading) \
M(URLParser) \
M(Viewports) \
M(WebAudio) \
M(WebGL) \
M(WebGPU) \
M(WebRTC) \
M(WheelEventTestTriggers) \
#undef DECLARE_LOG_CHANNEL
#define DECLARE_LOG_CHANNEL(name) \
WEBCORE_EXPORT extern WTFLogChannel JOIN_LOG_CHANNEL_WITH_PREFIX(LOG_CHANNEL_PREFIX, name);
WEBCORE_LOG_CHANNELS(DECLARE_LOG_CHANNEL)
String logLevelString();
bool isLogChannelEnabled(const String& name);
WEBCORE_EXPORT void setLogChannelToAccumulate(const String& name);
#endif // !LOG_DISABLED || !RELEASE_LOG_DISABLED
WEBCORE_EXPORT WTFLogChannel* getLogChannel(const String& name);
}