Flaky Test: fast/events/resize-subframe-in-rendering-update.html
[WebKit-https.git] / Source / WebCore / page / DiagnosticLoggingKeys.cpp
index 5abf163..84ff08b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2012, 2013 Apple Inc. All rights reserved.
+ * Copyright (C) 2012-2018 Apple Inc. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions
@@ -30,483 +30,834 @@ namespace WebCore {
 
 String DiagnosticLoggingKeys::mediaLoadedKey()
 {
-    return ASCIILiteral("mediaLoaded");
+    return "mediaLoaded"_s;
 }
 
 String DiagnosticLoggingKeys::mediaLoadingFailedKey()
 {
-    return ASCIILiteral("mediaFailedLoading");
+    return "mediaFailedLoading"_s;
 }
 
-String DiagnosticLoggingKeys::missingValidatorFieldsKey()
+String DiagnosticLoggingKeys::memoryCacheEntryDecisionKey()
 {
-    return ASCIILiteral("missingValidatorFields");
+    return "memoryCacheEntryDecision"_s;
 }
 
-String DiagnosticLoggingKeys::mustRevalidateIsExpiredKey()
+String DiagnosticLoggingKeys::memoryCacheUsageKey()
 {
-    return ASCIILiteral("mustRevalidateIsExpired");
+    return "memoryCacheUsage"_s;
+}
+
+String DiagnosticLoggingKeys::missingValidatorFieldsKey()
+{
+    return "missingValidatorFields"_s;
 }
 
 String DiagnosticLoggingKeys::pluginLoadedKey()
 {
-    return ASCIILiteral("pluginLoaded");
+    return "pluginLoaded"_s;
 }
 
 String DiagnosticLoggingKeys::pluginLoadingFailedKey()
 {
-    return ASCIILiteral("pluginFailedLoading");
+    return "pluginFailedLoading"_s;
+}
+
+String DiagnosticLoggingKeys::postPageBackgroundingCPUUsageKey()
+{
+    return "postPageBackgroundingCPUUsage"_s;
+}
+
+String DiagnosticLoggingKeys::postPageBackgroundingMemoryUsageKey()
+{
+    return "postPageBackgroundingMemoryUsage"_s;
+}
+
+String DiagnosticLoggingKeys::pageHandlesWebGLContextLossKey()
+{
+    return "pageHandlesWebGLContextLoss"_s;
+}
+
+String DiagnosticLoggingKeys::postPageLoadCPUUsageKey()
+{
+    return "postPageLoadCPUUsage"_s;
+}
+
+String DiagnosticLoggingKeys::postPageLoadMemoryUsageKey()
+{
+    return "postPageLoadMemoryUsage"_s;
+}
+
+String DiagnosticLoggingKeys::provisionalLoadKey()
+{
+    return "provisionalLoad"_s;
 }
 
 String DiagnosticLoggingKeys::pageContainsPluginKey()
 {
-    return ASCIILiteral("pageContainsPlugin");
+    return "pageContainsPlugin"_s;
 }
 
 String DiagnosticLoggingKeys::pageContainsAtLeastOnePluginKey()
 {
-    return ASCIILiteral("pageContainsAtLeastOnePlugin");
+    return "pageContainsAtLeastOnePlugin"_s;
 }
 
 String DiagnosticLoggingKeys::pageContainsMediaEngineKey()
 {
-    return ASCIILiteral("pageContainsMediaEngine");
+    return "pageContainsMediaEngine"_s;
 }
 
 String DiagnosticLoggingKeys::pageContainsAtLeastOneMediaEngineKey()
 {
-    return ASCIILiteral("pageContainsAtLeastOneMediaEngine");
+    return "pageContainsAtLeastOneMediaEngine"_s;
 }
 
-String DiagnosticLoggingKeys::successKey()
+String DiagnosticLoggingKeys::pageLoadedKey()
 {
-    return ASCIILiteral("success");
+    return "pageLoaded"_s;
 }
 
-String DiagnosticLoggingKeys::failureKey()
+String DiagnosticLoggingKeys::playedKey()
 {
-    return ASCIILiteral("failure");
+    return "played"_s;
 }
 
-String DiagnosticLoggingKeys::pageLoadedKey()
+String DiagnosticLoggingKeys::engineFailedToLoadKey()
 {
-    return ASCIILiteral("pageLoaded");
+    return "engineFailedToLoad"_s;
 }
 
-String DiagnosticLoggingKeys::playedKey()
+String DiagnosticLoggingKeys::entryRightlyNotWarmedUpKey()
 {
-    return ASCIILiteral("played");
+    return "entryRightlyNotWarmedUp"_s;
 }
 
-String DiagnosticLoggingKeys::engineFailedToLoadKey()
+String DiagnosticLoggingKeys::entryWronglyNotWarmedUpKey()
 {
-    return ASCIILiteral("engineFailedToLoad");
+    return "entryWronglyNotWarmedUp"_s;
 }
 
 String DiagnosticLoggingKeys::navigationKey()
 {
-    return ASCIILiteral("navigation");
+    return "navigation"_s;
+}
+
+String DiagnosticLoggingKeys::needsRevalidationKey()
+{
+    return "needsRevalidation"_s;
 }
 
 String DiagnosticLoggingKeys::networkCacheKey()
 {
-    return ASCIILiteral("networkCache");
+    return "networkCache"_s;
+}
+
+String DiagnosticLoggingKeys::networkCacheFailureReasonKey()
+{
+    return "networkCacheFailureReason"_s;
+}
+
+String DiagnosticLoggingKeys::networkCacheUnusedReasonKey()
+{
+    return "networkCacheUnusedReason"_s;
+}
+
+String DiagnosticLoggingKeys::networkCacheReuseFailureKey()
+{
+    return "networkCacheReuseFailure"_s;
 }
 
 String DiagnosticLoggingKeys::networkKey()
 {
-    return ASCIILiteral("network");
+    return "network"_s;
+}
+
+String DiagnosticLoggingKeys::networkProcessCrashedKey()
+{
+    return "networkProcessCrashed"_s;
 }
 
 String DiagnosticLoggingKeys::neverSeenBeforeKey()
 {
-    return ASCIILiteral("neverSeenBefore");
+    return "neverSeenBefore"_s;
+}
+
+String DiagnosticLoggingKeys::noKey()
+{
+    return "no"_s;
 }
 
 String DiagnosticLoggingKeys::noCacheKey()
 {
-    return ASCIILiteral("noCache");
+    return "noCache"_s;
 }
 
 String DiagnosticLoggingKeys::noStoreKey()
 {
-    return ASCIILiteral("noStore");
+    return "noStore"_s;
+}
+
+String DiagnosticLoggingKeys::nonVisibleStateKey()
+{
+    return "nonVisibleState"_s;
 }
 
 String DiagnosticLoggingKeys::notInMemoryCacheKey()
 {
-    return ASCIILiteral("notInMemoryCache");
+    return "notInMemoryCache"_s;
 }
 
-String DiagnosticLoggingKeys::pageCacheKey()
+String DiagnosticLoggingKeys::backForwardCacheKey()
 {
-    return ASCIILiteral("pageCache");
+    return "backForwardCache"_s;
 }
 
-String DiagnosticLoggingKeys::noDocumentLoaderKey()
+String DiagnosticLoggingKeys::backForwardCacheFailureKey()
 {
-    return ASCIILiteral("noDocumentLoader");
+    return "backForwardCacheFailure"_s;
 }
 
-String DiagnosticLoggingKeys::noLongerInCacheKey()
+String DiagnosticLoggingKeys::visuallyEmptyKey()
 {
-    return ASCIILiteral("noLongerInCache");
+    return "visuallyEmpty"_s;
 }
 
-String DiagnosticLoggingKeys::otherKey()
+String DiagnosticLoggingKeys::noDocumentLoaderKey()
 {
-    return ASCIILiteral("other");
+    return "noDocumentLoader"_s;
 }
 
-String DiagnosticLoggingKeys::mainDocumentErrorKey()
+String DiagnosticLoggingKeys::noLongerInCacheKey()
 {
-    return ASCIILiteral("mainDocumentError");
+    return "noLongerInCache"_s;
 }
 
-String DiagnosticLoggingKeys::mainResourceKey()
+String DiagnosticLoggingKeys::otherKey()
 {
-    return ASCIILiteral("mainResource");
+    return "other"_s;
 }
 
-String DiagnosticLoggingKeys::mediaKey()
+String DiagnosticLoggingKeys::mainResourceKey()
 {
-    return ASCIILiteral("media");
+    return "mainResource"_s;
 }
 
 String DiagnosticLoggingKeys::isErrorPageKey()
 {
-    return ASCIILiteral("isErrorPage");
+    return "isErrorPage"_s;
 }
 
 String DiagnosticLoggingKeys::isExpiredKey()
 {
-    return ASCIILiteral("isExpired");
+    return "isExpired"_s;
 }
 
 String DiagnosticLoggingKeys::isReloadIgnoringCacheDataKey()
 {
-    return ASCIILiteral("isReloadIgnoringCacheData");
-}
-
-String DiagnosticLoggingKeys::loadedKey()
-{
-    return ASCIILiteral("loaded");
+    return "isReloadIgnoringCacheData"_s;
 }
 
 String DiagnosticLoggingKeys::loadingKey()
 {
-    return ASCIILiteral("loading");
+    return "loading"_s;
 }
 
 String DiagnosticLoggingKeys::hasPluginsKey()
 {
-    return ASCIILiteral("hasPlugins");
+    return "hasPlugins"_s;
 }
 
 String DiagnosticLoggingKeys::httpsNoStoreKey()
 {
-    return ASCIILiteral("httpsNoStore");
+    return "httpsNoStore"_s;
 }
 
 String DiagnosticLoggingKeys::imageKey()
 {
-    return ASCIILiteral("image");
+    return "image"_s;
 }
 
 String DiagnosticLoggingKeys::inMemoryCacheKey()
 {
-    return ASCIILiteral("inMemoryCache");
+    return "inMemoryCache"_s;
+}
+
+String DiagnosticLoggingKeys::inactiveKey()
+{
+    return "inactive"_s;
+}
+
+String DiagnosticLoggingKeys::internalErrorKey()
+{
+    return "internalError"_s;
+}
+
+String DiagnosticLoggingKeys::invalidSessionIDKey()
+{
+    return "invalidSessionID"_s;
 }
 
 String DiagnosticLoggingKeys::isAttachmentKey()
 {
-    return ASCIILiteral("isAttachment");
+    return "isAttachment"_s;
 }
 
 String DiagnosticLoggingKeys::isConditionalRequestKey()
 {
-    return ASCIILiteral("isConditionalRequest");
+    return "isConditionalRequest"_s;
+}
+
+String DiagnosticLoggingKeys::isDisabledKey()
+{
+    return "isDisabled"_s;
 }
 
 String DiagnosticLoggingKeys::noCurrentHistoryItemKey()
 {
-    return ASCIILiteral("noCurrentHistoryItem");
+    return "noCurrentHistoryItem"_s;
 }
 
 String DiagnosticLoggingKeys::quirkRedirectComingKey()
 {
-    return ASCIILiteral("quirkRedirectComing");
+    return "quirkRedirectComing"_s;
 }
 
 String DiagnosticLoggingKeys::rawKey()
 {
-    return ASCIILiteral("raw");
+    return "raw"_s;
 }
 
-String DiagnosticLoggingKeys::reasonKey()
+String DiagnosticLoggingKeys::redirectKey()
 {
-    return ASCIILiteral("reason");
+    return "redirect"_s;
 }
 
-String DiagnosticLoggingKeys::loadingAPISenseKey()
+String DiagnosticLoggingKeys::isLoadingKey()
 {
-    return ASCIILiteral("loadingAPISense");
+    return "isLoading"_s;
 }
 
 String DiagnosticLoggingKeys::documentLoaderStoppingKey()
 {
-    return ASCIILiteral("documentLoaderStopping");
+    return "documentLoaderStopping"_s;
+}
+
+String DiagnosticLoggingKeys::domainCausingCrashKey()
+{
+    return "DomainCausingCrash"_s;
+}
+
+String DiagnosticLoggingKeys::domainCausingEnergyDrainKey()
+{
+    return "DomainCausingEnergyDrain"_s;
+}
+
+String DiagnosticLoggingKeys::domainCausingJetsamKey()
+{
+    return "DomainCausingJetsam"_s;
+}
+
+String DiagnosticLoggingKeys::simulatedPageCrashKey()
+{
+    return "SimulatedPageCrash"_s;
+}
+
+String DiagnosticLoggingKeys::exceededActiveMemoryLimitKey()
+{
+    return "ExceededActiveMemoryLimit"_s;
+}
+
+String DiagnosticLoggingKeys::exceededInactiveMemoryLimitKey()
+{
+    return "ExceededInactiveMemoryLimit"_s;
+}
+
+String DiagnosticLoggingKeys::exceededBackgroundCPULimitKey()
+{
+    return "ExceededBackgroundCPULimit"_s;
+}
+
+String DiagnosticLoggingKeys::domainVisitedKey()
+{
+    return "DomainVisited"_s;
 }
 
 String DiagnosticLoggingKeys::cannotSuspendActiveDOMObjectsKey()
 {
-    return ASCIILiteral("cannotSuspendActiveDOMObjects");
+    return "cannotSuspendActiveDOMObjects"_s;
+}
+
+String DiagnosticLoggingKeys::cpuUsageKey()
+{
+    return "cpuUsage"_s;
+}
+
+String DiagnosticLoggingKeys::createSharedBufferFailedKey()
+{
+    return "createSharedBufferFailed"_s;
+}
+
+String DiagnosticLoggingKeys::activeInForegroundTabKey()
+{
+    return "activeInForegroundTab"_s;
+}
+
+String DiagnosticLoggingKeys::activeInBackgroundTabOnlyKey()
+{
+    return "activeInBackgroundTabOnly"_s;
 }
 
 String DiagnosticLoggingKeys::applicationCacheKey()
 {
-    return ASCIILiteral("applicationCache");
+    return "applicationCache"_s;
 }
 
+#if ENABLE(APPLICATION_MANIFEST)
+String DiagnosticLoggingKeys::applicationManifestKey()
+{
+    return "applicationManifest"_s;
+}
+#endif
+
 String DiagnosticLoggingKeys::audioKey()
 {
-    return ASCIILiteral("audio");
+    return "audio"_s;
+}
+
+String DiagnosticLoggingKeys::backNavigationDeltaKey()
+{
+    return "backNavigationDelta"_s;
+}
+
+String DiagnosticLoggingKeys::canCacheKey()
+{
+    return "canCache"_s;
 }
 
 String DiagnosticLoggingKeys::cacheControlNoStoreKey()
 {
-    return ASCIILiteral("cacheControlNoStore");
+    return "cacheControlNoStore"_s;
 }
 
 String DiagnosticLoggingKeys::cachedResourceRevalidationKey()
 {
-    return ASCIILiteral("cachedResourceRevalidation");
+    return "cachedResourceRevalidation"_s;
 }
 
-String DiagnosticLoggingKeys::deniedByClientKey()
+String DiagnosticLoggingKeys::cachedResourceRevalidationReasonKey()
 {
-    return ASCIILiteral("deniedByClient");
+    return "cachedResourceRevalidationReason"_s;
 }
 
-String DiagnosticLoggingKeys::deviceMotionKey()
+String DiagnosticLoggingKeys::deniedByClientKey()
 {
-    return ASCIILiteral("deviceMotion");
+    return "deniedByClient"_s;
 }
 
-String DiagnosticLoggingKeys::deviceOrientationKey()
+String DiagnosticLoggingKeys::deviceMotionKey()
 {
-    return ASCIILiteral("deviceOrientation");
+    return "deviceMotion"_s;
 }
 
-String DiagnosticLoggingKeys::deviceProximityKey()
+String DiagnosticLoggingKeys::deviceOrientationKey()
 {
-    return ASCIILiteral("deviceProximity");
+    return "deviceOrientation"_s;
 }
 
 String DiagnosticLoggingKeys::diskCacheKey()
 {
-    return ASCIILiteral("diskCache");
+    return "diskCache"_s;
 }
 
 String DiagnosticLoggingKeys::diskCacheAfterValidationKey()
 {
-    return ASCIILiteral("diskCacheAfterValidation");
+    return "diskCacheAfterValidation"_s;
 }
 
 String DiagnosticLoggingKeys::reloadKey()
 {
-    return ASCIILiteral("reload");
+    return "reload"_s;
 }
 
-String DiagnosticLoggingKeys::requestKey()
+String DiagnosticLoggingKeys::replaceKey()
 {
-    return ASCIILiteral("request");
+    return "replace"_s;
 }
 
 String DiagnosticLoggingKeys::retrievalRequestKey()
 {
-    return ASCIILiteral("retrievalRequest");
+    return "retrievalRequest"_s;
 }
 
-String DiagnosticLoggingKeys::resourceKey()
+String DiagnosticLoggingKeys::resourceLoadedKey()
 {
-    return ASCIILiteral("resource");
+    return "resourceLoaded"_s;
 }
 
-String DiagnosticLoggingKeys::resourceRequestKey()
+String DiagnosticLoggingKeys::resourceResponseSourceKey()
 {
-    return ASCIILiteral("resourceRequest");
-}
-
-String DiagnosticLoggingKeys::resourceResponseKey()
-{
-    return ASCIILiteral("resourceResponse");
+    return "resourceResponseSource"_s;
 }
 
 String DiagnosticLoggingKeys::retrievalKey()
 {
-    return ASCIILiteral("retrieval");
+    return "retrieval"_s;
 }
 
 String DiagnosticLoggingKeys::revalidatingKey()
 {
-    return ASCIILiteral("revalidating");
+    return "revalidating"_s;
 }
 
 String DiagnosticLoggingKeys::reloadFromOriginKey()
 {
-    return ASCIILiteral("reloadFromOrigin");
+    return "reloadFromOrigin"_s;
+}
+
+String DiagnosticLoggingKeys::reloadRevalidatingExpiredKey()
+{
+    return "reloadRevalidatingExpired"_s;
 }
 
 String DiagnosticLoggingKeys::sameLoadKey()
 {
-    return ASCIILiteral("sameLoad");
+    return "sameLoad"_s;
 }
 
 String DiagnosticLoggingKeys::scriptKey()
 {
-    return ASCIILiteral("script");
+    return "script"_s;
+}
+
+String DiagnosticLoggingKeys::serviceWorkerKey()
+{
+    return "serviceWorker"_s;
 }
 
-String DiagnosticLoggingKeys::sourceKey()
+String DiagnosticLoggingKeys::streamingMedia()
 {
-    return ASCIILiteral("sourceKey");
+    return "streamingMedia"_s;
 }
 
 String DiagnosticLoggingKeys::styleSheetKey()
 {
-    return ASCIILiteral("styleSheet");
+    return "styleSheet"_s;
+}
+
+String DiagnosticLoggingKeys::successfulSpeculativeWarmupWithRevalidationKey()
+{
+    return "successfulSpeculativeWarmupWithRevalidation"_s;
+}
+
+String DiagnosticLoggingKeys::successfulSpeculativeWarmupWithoutRevalidationKey()
+{
+    return "successfulSpeculativeWarmupWithoutRevalidation"_s;
 }
 
 String DiagnosticLoggingKeys::svgDocumentKey()
 {
-    return ASCIILiteral("svgDocument");
+    return "svgDocument"_s;
+}
+
+String DiagnosticLoggingKeys::synchronousMessageFailedKey()
+{
+    return "synchronousMessageFailed"_s;
+}
+
+String DiagnosticLoggingKeys::telemetryPageLoadKey()
+{
+    return "telemetryPageLoad"_s;
+}
+
+String DiagnosticLoggingKeys::timedOutKey()
+{
+    return "timedOut"_s;
+}
+
+String DiagnosticLoggingKeys::canceledLessThan2SecondsKey()
+{
+    return "canceledLessThan2Seconds"_s;
+}
+
+String DiagnosticLoggingKeys::canceledLessThan5SecondsKey()
+{
+    return "canceledLessThan5Seconds"_s;
+}
+
+String DiagnosticLoggingKeys::canceledLessThan20SecondsKey()
+{
+    return "canceledLessThan20Seconds"_s;
+}
+
+String DiagnosticLoggingKeys::canceledMoreThan20SecondsKey()
+{
+    return "canceledMoreThan20Seconds"_s;
+}
+
+String DiagnosticLoggingKeys::failedLessThan2SecondsKey()
+{
+    return "failedLessThan2Seconds"_s;
+}
+
+String DiagnosticLoggingKeys::failedLessThan5SecondsKey()
+{
+    return "failedLessThan5Seconds"_s;
+}
+
+String DiagnosticLoggingKeys::failedLessThan20SecondsKey()
+{
+    return "failedLessThan20Seconds"_s;
+}
+
+String DiagnosticLoggingKeys::failedMoreThan20SecondsKey()
+{
+    return "failedMoreThan20Seconds"_s;
+}
+
+String DiagnosticLoggingKeys::occurredKey()
+{
+    return "occurred"_s;
+}
+
+String DiagnosticLoggingKeys::succeededLessThan2SecondsKey()
+{
+    return "succeededLessThan2Seconds"_s;
+}
+
+String DiagnosticLoggingKeys::succeededLessThan5SecondsKey()
+{
+    return "succeededLessThan5Seconds"_s;
+}
+
+String DiagnosticLoggingKeys::succeededLessThan20SecondsKey()
+{
+    return "succeededLessThan20Seconds"_s;
+}
+
+String DiagnosticLoggingKeys::succeededMoreThan20SecondsKey()
+{
+    return "succeededMoreThan20Seconds"_s;
 }
 
 String DiagnosticLoggingKeys::uncacheableStatusCodeKey()
 {
-    return ASCIILiteral("uncacheableStatusCode");
+    return "uncacheableStatusCode"_s;
 }
 
-String DiagnosticLoggingKeys::unsupportedHTTPMethodKey()
+String DiagnosticLoggingKeys::underMemoryPressureKey()
 {
-    return ASCIILiteral("unsupportedHTTPMethod");
+    return "underMemoryPressure"_s;
 }
 
-String DiagnosticLoggingKeys::unsuspendableDOMObjectKey()
+String DiagnosticLoggingKeys::unknownEntryRequestKey()
 {
-    return ASCIILiteral("unsuspendableDOMObject");
+    return "unknownEntryRequest"_s;
 }
 
-String DiagnosticLoggingKeys::unusableCachedEntryKey()
+String DiagnosticLoggingKeys::unlikelyToReuseKey()
 {
-    return ASCIILiteral("unusableCachedEntry");
+    return "unlikelyToReuse"_s;
+}
+
+String DiagnosticLoggingKeys::unsupportedHTTPMethodKey()
+{
+    return "unsupportedHTTPMethod"_s;
+}
+
+String DiagnosticLoggingKeys::unsuspendableDOMObjectKey()
+{
+    return "unsuspendableDOMObject"_s;
 }
 
 String DiagnosticLoggingKeys::unusedKey()
 {
-    return ASCIILiteral("unused");
+    return "unused"_s;
 }
 
 String DiagnosticLoggingKeys::unusedReasonCredentialSettingsKey()
 {
-    return ASCIILiteral("unused.reason.credentialSettings");
+    return "unused.reason.credentialSettings"_s;
 }
 
 String DiagnosticLoggingKeys::unusedReasonErrorKey()
 {
-    return ASCIILiteral("unused.reason.error");
+    return "unused.reason.error"_s;
 }
 
 String DiagnosticLoggingKeys::unusedReasonMustRevalidateNoValidatorKey()
 {
-    return ASCIILiteral("unused.reason.mustRevalidateNoValidator");
+    return "unused.reason.mustRevalidateNoValidator"_s;
 }
 
 String DiagnosticLoggingKeys::unusedReasonNoStoreKey()
 {
-    return ASCIILiteral("unused.reason.noStore");
+    return "unused.reason.noStore"_s;
 }
 
 String DiagnosticLoggingKeys::unusedReasonRedirectChainKey()
 {
-    return ASCIILiteral("unused.reason.redirectChain");
+    return "unused.reason.redirectChain"_s;
 }
 
 String DiagnosticLoggingKeys::unusedReasonReloadKey()
 {
-    return ASCIILiteral("unused.reason.reload");
+    return "unused.reason.reload"_s;
 }
 
 String DiagnosticLoggingKeys::unusedReasonTypeMismatchKey()
 {
-    return ASCIILiteral("unused.reason.typeMismatch");
+    return "unused.reason.typeMismatch"_s;
 }
 
 String DiagnosticLoggingKeys::usedKey()
 {
-    return ASCIILiteral("used");
+    return "used"_s;
 }
 
-String DiagnosticLoggingKeys::userKey()
+String DiagnosticLoggingKeys::userZoomActionKey()
 {
-    return ASCIILiteral("user");
+    return "userZoomAction"_s;
 }
 
 String DiagnosticLoggingKeys::varyingHeaderMismatchKey()
 {
-    return ASCIILiteral("varyingHeaderMismatch");
+    return "varyingHeaderMismatch"_s;
 }
 
 String DiagnosticLoggingKeys::videoKey()
 {
-    return ASCIILiteral("video");
+    return "video"_s;
+}
+
+String DiagnosticLoggingKeys::visibleNonActiveStateKey()
+{
+    return "visibleNonActiveState"_s;
+}
+
+String DiagnosticLoggingKeys::visibleAndActiveStateKey()
+{
+    return "visibleAndActiveState"_s;
+}
+
+String DiagnosticLoggingKeys::wastedSpeculativeWarmupWithRevalidationKey()
+{
+    return "wastedSpeculativeWarmupWithRevalidation"_s;
+}
+
+String DiagnosticLoggingKeys::wastedSpeculativeWarmupWithoutRevalidationKey()
+{
+    return "wastedSpeculativeWarmupWithoutRevalidation"_s;
 }
 
 String DiagnosticLoggingKeys::webViewKey()
 {
-    return ASCIILiteral("webView");
+    return "webView"_s;
 }
 
-String DiagnosticLoggingKeys::zoomedKey()
+String DiagnosticLoggingKeys::yesKey()
 {
-    return ASCIILiteral("zoomed");
+    return "yes"_s;
 }
 
 String DiagnosticLoggingKeys::expiredKey()
 {
-    return ASCIILiteral("expired");
+    return "expired"_s;
 }
 
 String DiagnosticLoggingKeys::fontKey()
 {
-    return ASCIILiteral("font");
+    return "font"_s;
 }
 
 String DiagnosticLoggingKeys::prunedDueToMemoryPressureKey()
 {
-    return ASCIILiteral("pruned.memoryPressure");
+    return "pruned.memoryPressure"_s;
 }
 
 String DiagnosticLoggingKeys::prunedDueToMaxSizeReached()
 {
-    return ASCIILiteral("pruned.capacityReached");
+    return "pruned.capacityReached"_s;
 }
 
 String DiagnosticLoggingKeys::prunedDueToProcessSuspended()
 {
-    return ASCIILiteral("pruned.processSuspended");
+    return "pruned.processSuspended"_s;
 }
 
 String WebCore::DiagnosticLoggingKeys::notHTTPFamilyKey()
 {
-    return ASCIILiteral("notHTTPFamily");
-}
-
-String DiagnosticLoggingKeys::notInCacheKey()
-{
-    return ASCIILiteral("notInCache");
-}
-
+    return "notHTTPFamily"_s;
+}
+
+String WebCore::DiagnosticLoggingKeys::webGLStateKey()
+{
+    return "webGLState"_s;
+}
+
+String DiagnosticLoggingKeys::memoryUsageToDiagnosticLoggingKey(uint64_t memoryUsage)
+{
+    if (memoryUsage < 32 * MB)
+        return "below32"_s;
+    if (memoryUsage < 64 * MB)
+        return "32to64"_s;
+    if (memoryUsage < 128 * MB)
+        return "64to128"_s;
+    if (memoryUsage < 256 * MB)
+        return "128to256"_s;
+    if (memoryUsage < 512 * MB)
+        return "256to512"_s;
+    if (memoryUsage < 1024 * MB)
+        return "512to1024"_s;
+    if (memoryUsage < 2048 * MB)
+        return "1024to2048"_s;
+    if (memoryUsage < 4096llu * MB)
+        return "2048to4096"_s;
+    if (memoryUsage < 8192llu * MB)
+        return "4096to8192"_s;
+    if (memoryUsage < 16384llu * MB)
+        return "8192to16384"_s;
+    if (memoryUsage < 32768llu * MB)
+        return "16384to32768"_s;
+    return "over32768"_s;
+}
+
+String DiagnosticLoggingKeys::foregroundCPUUsageToDiagnosticLoggingKey(double cpuUsage)
+{
+    if (cpuUsage < 10)
+        return "below10"_s;
+    if (cpuUsage < 20)
+        return "10to20"_s;
+    if (cpuUsage < 40)
+        return "20to40"_s;
+    if (cpuUsage < 60)
+        return "40to60"_s;
+    if (cpuUsage < 80)
+        return "60to80"_s;
+    return "over80"_s;
+}
+
+String DiagnosticLoggingKeys::backgroundCPUUsageToDiagnosticLoggingKey(double cpuUsage)
+{
+    if (cpuUsage < 1)
+        return "below1"_s;
+    if (cpuUsage < 5)
+        return "1to5"_s;
+    if (cpuUsage < 10)
+        return "5to10"_s;
+    if (cpuUsage < 30)
+        return "10to30"_s;
+    if (cpuUsage < 50)
+        return "30to50"_s;
+    if (cpuUsage < 70)
+        return "50to70"_s;
+    return "over70"_s;
+}
+
+String DiagnosticLoggingKeys::resourceLoadStatisticsTelemetryKey()
+{
+    return "resourceLoadStatisticsTelemetry"_s;
+}
+    
 } // namespace WebCore