| 1 | /* |
| 2 | * Copyright (C) 2012-2018 Apple Inc. All rights reserved. |
| 3 | * |
| 4 | * Redistribution and use in source and binary forms, with or without |
| 5 | * modification, are permitted provided that the following conditions |
| 6 | * are met: |
| 7 | * 1. Redistributions of source code must retain the above copyright |
| 8 | * notice, this list of conditions and the following disclaimer. |
| 9 | * 2. Redistributions in binary form must reproduce the above copyright |
| 10 | * notice, this list of conditions and the following disclaimer in the |
| 11 | * documentation and/or other materials provided with the distribution. |
| 12 | * |
| 13 | * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' |
| 14 | * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, |
| 15 | * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR |
| 16 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS |
| 17 | * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR |
| 18 | * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF |
| 19 | * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
| 20 | * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN |
| 21 | * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) |
| 22 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF |
| 23 | * THE POSSIBILITY OF SUCH DAMAGE. |
| 24 | */ |
| 25 | |
| 26 | #pragma once |
| 27 | |
| 28 | #include <wtf/text/WTFString.h> |
| 29 | |
| 30 | namespace WebCore { |
| 31 | |
| 32 | class DiagnosticLoggingKeys { |
| 33 | public: |
| 34 | WEBCORE_EXPORT static String activeInForegroundTabKey(); |
| 35 | WEBCORE_EXPORT static String activeInBackgroundTabOnlyKey(); |
| 36 | static String applicationCacheKey(); |
| 37 | #if ENABLE(APPLICATION_MANIFEST) |
| 38 | static String applicationManifestKey(); |
| 39 | #endif |
| 40 | static String audioKey(); |
| 41 | WEBCORE_EXPORT static String backNavigationDeltaKey(); |
| 42 | WEBCORE_EXPORT static String cacheControlNoStoreKey(); |
| 43 | static String cachedResourceRevalidationKey(); |
| 44 | static String cachedResourceRevalidationReasonKey(); |
| 45 | static String canCacheKey(); |
| 46 | WEBCORE_EXPORT static String canceledLessThan2SecondsKey(); |
| 47 | WEBCORE_EXPORT static String canceledLessThan5SecondsKey(); |
| 48 | WEBCORE_EXPORT static String canceledLessThan20SecondsKey(); |
| 49 | WEBCORE_EXPORT static String canceledMoreThan20SecondsKey(); |
| 50 | static String cannotSuspendActiveDOMObjectsKey(); |
| 51 | WEBCORE_EXPORT static String cpuUsageKey(); |
| 52 | WEBCORE_EXPORT static String createSharedBufferFailedKey(); |
| 53 | static String deniedByClientKey(); |
| 54 | static String deviceMotionKey(); |
| 55 | static String deviceOrientationKey(); |
| 56 | static String diskCacheKey(); |
| 57 | static String diskCacheAfterValidationKey(); |
| 58 | static String documentLoaderStoppingKey(); |
| 59 | WEBCORE_EXPORT static String domainCausingCrashKey(); |
| 60 | static String domainCausingEnergyDrainKey(); |
| 61 | WEBCORE_EXPORT static String domainCausingJetsamKey(); |
| 62 | WEBCORE_EXPORT static String simulatedPageCrashKey(); |
| 63 | WEBCORE_EXPORT static String exceededActiveMemoryLimitKey(); |
| 64 | WEBCORE_EXPORT static String exceededInactiveMemoryLimitKey(); |
| 65 | WEBCORE_EXPORT static String exceededBackgroundCPULimitKey(); |
| 66 | static String domainVisitedKey(); |
| 67 | static String engineFailedToLoadKey(); |
| 68 | WEBCORE_EXPORT static String entryRightlyNotWarmedUpKey(); |
| 69 | WEBCORE_EXPORT static String entryWronglyNotWarmedUpKey(); |
| 70 | static String expiredKey(); |
| 71 | WEBCORE_EXPORT static String failedLessThan2SecondsKey(); |
| 72 | WEBCORE_EXPORT static String failedLessThan5SecondsKey(); |
| 73 | WEBCORE_EXPORT static String failedLessThan20SecondsKey(); |
| 74 | WEBCORE_EXPORT static String failedMoreThan20SecondsKey(); |
| 75 | static String fontKey(); |
| 76 | static String hasPluginsKey(); |
| 77 | static String httpsNoStoreKey(); |
| 78 | static String imageKey(); |
| 79 | static String inMemoryCacheKey(); |
| 80 | WEBCORE_EXPORT static String inactiveKey(); |
| 81 | WEBCORE_EXPORT static String internalErrorKey(); |
| 82 | WEBCORE_EXPORT static String invalidSessionIDKey(); |
| 83 | WEBCORE_EXPORT static String isAttachmentKey(); |
| 84 | WEBCORE_EXPORT static String isConditionalRequestKey(); |
| 85 | static String isDisabledKey(); |
| 86 | static String isErrorPageKey(); |
| 87 | static String isExpiredKey(); |
| 88 | WEBCORE_EXPORT static String isReloadIgnoringCacheDataKey(); |
| 89 | static String loadingKey(); |
| 90 | static String isLoadingKey(); |
| 91 | static String mainDocumentErrorKey(); |
| 92 | static String mainResourceKey(); |
| 93 | static String mediaLoadedKey(); |
| 94 | static String mediaLoadingFailedKey(); |
| 95 | static String memoryCacheEntryDecisionKey(); |
| 96 | static String memoryCacheUsageKey(); |
| 97 | WEBCORE_EXPORT static String missingValidatorFieldsKey(); |
| 98 | static String navigationKey(); |
| 99 | WEBCORE_EXPORT static String needsRevalidationKey(); |
| 100 | WEBCORE_EXPORT static String networkCacheKey(); |
| 101 | WEBCORE_EXPORT static String networkCacheFailureReasonKey(); |
| 102 | WEBCORE_EXPORT static String networkCacheUnusedReasonKey(); |
| 103 | WEBCORE_EXPORT static String networkCacheReuseFailureKey(); |
| 104 | static String networkKey(); |
| 105 | WEBCORE_EXPORT static String networkProcessCrashedKey(); |
| 106 | WEBCORE_EXPORT static String neverSeenBeforeKey(); |
| 107 | static String noKey(); |
| 108 | static String noCacheKey(); |
| 109 | static String noCurrentHistoryItemKey(); |
| 110 | static String noDocumentLoaderKey(); |
| 111 | WEBCORE_EXPORT static String noLongerInCacheKey(); |
| 112 | static String noStoreKey(); |
| 113 | WEBCORE_EXPORT static String nonVisibleStateKey(); |
| 114 | WEBCORE_EXPORT static String notHTTPFamilyKey(); |
| 115 | static String notInMemoryCacheKey(); |
| 116 | WEBCORE_EXPORT static String occurredKey(); |
| 117 | WEBCORE_EXPORT static String otherKey(); |
| 118 | static String pageCacheKey(); |
| 119 | static String pageCacheFailureKey(); |
| 120 | static String pageContainsAtLeastOneMediaEngineKey(); |
| 121 | static String pageContainsAtLeastOnePluginKey(); |
| 122 | static String pageContainsMediaEngineKey(); |
| 123 | static String pageContainsPluginKey(); |
| 124 | static String pageHandlesWebGLContextLossKey(); |
| 125 | static String pageLoadedKey(); |
| 126 | static String playedKey(); |
| 127 | static String pluginLoadedKey(); |
| 128 | static String pluginLoadingFailedKey(); |
| 129 | static String postPageBackgroundingCPUUsageKey(); |
| 130 | static String postPageBackgroundingMemoryUsageKey(); |
| 131 | static String postPageLoadCPUUsageKey(); |
| 132 | static String postPageLoadMemoryUsageKey(); |
| 133 | static String provisionalLoadKey(); |
| 134 | static String prunedDueToMaxSizeReached(); |
| 135 | static String prunedDueToMemoryPressureKey(); |
| 136 | static String prunedDueToProcessSuspended(); |
| 137 | static String quirkRedirectComingKey(); |
| 138 | static String rawKey(); |
| 139 | static String redirectKey(); |
| 140 | static String reloadFromOriginKey(); |
| 141 | static String reloadKey(); |
| 142 | static String reloadRevalidatingExpiredKey(); |
| 143 | static String replaceKey(); |
| 144 | static String resourceLoadedKey(); |
| 145 | static String resourceResponseSourceKey(); |
| 146 | WEBCORE_EXPORT static String retrievalKey(); |
| 147 | WEBCORE_EXPORT static String retrievalRequestKey(); |
| 148 | WEBCORE_EXPORT static String revalidatingKey(); |
| 149 | static String sameLoadKey(); |
| 150 | static String scriptKey(); |
| 151 | static String serviceWorkerKey(); |
| 152 | WEBCORE_EXPORT static String streamingMedia(); |
| 153 | static String styleSheetKey(); |
| 154 | WEBCORE_EXPORT static String succeededLessThan2SecondsKey(); |
| 155 | WEBCORE_EXPORT static String succeededLessThan5SecondsKey(); |
| 156 | WEBCORE_EXPORT static String succeededLessThan20SecondsKey(); |
| 157 | WEBCORE_EXPORT static String succeededMoreThan20SecondsKey(); |
| 158 | WEBCORE_EXPORT static String successfulSpeculativeWarmupWithRevalidationKey(); |
| 159 | WEBCORE_EXPORT static String successfulSpeculativeWarmupWithoutRevalidationKey(); |
| 160 | static String svgDocumentKey(); |
| 161 | WEBCORE_EXPORT static String synchronousMessageFailedKey(); |
| 162 | WEBCORE_EXPORT static String telemetryPageLoadKey(); |
| 163 | WEBCORE_EXPORT static String timedOutKey(); |
| 164 | WEBCORE_EXPORT static String uncacheableStatusCodeKey(); |
| 165 | static String underMemoryPressureKey(); |
| 166 | WEBCORE_EXPORT static String unknownEntryRequestKey(); |
| 167 | WEBCORE_EXPORT static String unlikelyToReuseKey(); |
| 168 | WEBCORE_EXPORT static String unsupportedHTTPMethodKey(); |
| 169 | static String unsuspendableDOMObjectKey(); |
| 170 | WEBCORE_EXPORT static String unusedKey(); |
| 171 | static String unusedReasonCredentialSettingsKey(); |
| 172 | static String unusedReasonErrorKey(); |
| 173 | static String unusedReasonMustRevalidateNoValidatorKey(); |
| 174 | static String unusedReasonNoStoreKey(); |
| 175 | static String unusedReasonRedirectChainKey(); |
| 176 | static String unusedReasonReloadKey(); |
| 177 | static String unusedReasonTypeMismatchKey(); |
| 178 | static String usedKey(); |
| 179 | WEBCORE_EXPORT static String userZoomActionKey(); |
| 180 | WEBCORE_EXPORT static String (); |
| 181 | static String videoKey(); |
| 182 | WEBCORE_EXPORT static String visibleNonActiveStateKey(); |
| 183 | WEBCORE_EXPORT static String visibleAndActiveStateKey(); |
| 184 | WEBCORE_EXPORT static String wastedSpeculativeWarmupWithRevalidationKey(); |
| 185 | WEBCORE_EXPORT static String wastedSpeculativeWarmupWithoutRevalidationKey(); |
| 186 | WEBCORE_EXPORT static String webGLStateKey(); |
| 187 | WEBCORE_EXPORT static String webViewKey(); |
| 188 | static String yesKey(); |
| 189 | |
| 190 | WEBCORE_EXPORT static String memoryUsageToDiagnosticLoggingKey(uint64_t memoryUsage); |
| 191 | WEBCORE_EXPORT static String foregroundCPUUsageToDiagnosticLoggingKey(double cpuUsage); |
| 192 | WEBCORE_EXPORT static String backgroundCPUUsageToDiagnosticLoggingKey(double cpuUsage); |
| 193 | |
| 194 | WEBCORE_EXPORT static String resourceLoadStatisticsTelemetryKey(); |
| 195 | }; |
| 196 | |
| 197 | } // namespace WebCore |
| 198 | |