Fix remaining bad uses of logDiagnosticMessageWithValue()
[WebKit-https.git] / Source / WebCore / page / DiagnosticLoggingKeys.h
1 /*
2  * Copyright (C) 2012, 2013 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     static String audioKey();
38     WEBCORE_EXPORT static String backNavigationDeltaKey();
39     WEBCORE_EXPORT static String cacheControlNoStoreKey();
40     static String cachedResourceRevalidationKey();
41     static String cachedResourceRevalidationReasonKey();
42     static String canCacheKey();
43     static String cannotSuspendActiveDOMObjectsKey();
44     WEBCORE_EXPORT static String cpuUsageKey();
45     WEBCORE_EXPORT static String createSharedBufferFailedKey();
46     static String deniedByClientKey();
47     static String deviceMotionKey();
48     static String deviceOrientationKey();
49     static String deviceProximityKey();
50     static String diskCacheKey();
51     static String diskCacheAfterValidationKey();
52     static String documentLoaderStoppingKey();
53     static String engineFailedToLoadKey();
54     WEBCORE_EXPORT static String entryRightlyNotWarmedUpKey();
55     WEBCORE_EXPORT static String entryWronglyNotWarmedUpKey();
56     static String expiredKey();
57     static String fontKey();
58     static String hasCalledWindowOpenKey();
59     static String hasOpenerKey();
60     static String hasPluginsKey();
61     static String httpsNoStoreKey();
62     static String imageKey();
63     static String inMemoryCacheKey();
64     WEBCORE_EXPORT static String inactiveKey();
65     WEBCORE_EXPORT static String internalErrorKey();
66     WEBCORE_EXPORT static String invalidSessionIDKey();
67     WEBCORE_EXPORT static String isAttachmentKey();
68     WEBCORE_EXPORT static String isConditionalRequestKey();
69     static String isDisabledKey();
70     static String isErrorPageKey();
71     static String isExpiredKey();
72     WEBCORE_EXPORT static String isReloadIgnoringCacheDataKey();
73     static String loadingKey();
74     static String isLoadingKey();
75     static String mainDocumentErrorKey();
76     static String mainResourceKey();
77     static String mediaLoadedKey();
78     static String mediaLoadingFailedKey();
79     static String memoryCacheEntryDecisionKey();
80     static String memoryCacheUsageKey();
81     WEBCORE_EXPORT static String missingValidatorFieldsKey();
82     static String navigationKey();
83     WEBCORE_EXPORT static String needsRevalidationKey();
84     WEBCORE_EXPORT static String networkCacheKey();
85     WEBCORE_EXPORT static String networkCacheFailureReasonKey();
86     WEBCORE_EXPORT static String networkCacheUnusedReasonKey();
87     WEBCORE_EXPORT static String networkCacheReuseFailureKey();
88     static String networkKey();
89     WEBCORE_EXPORT static String networkProcessCrashedKey();
90     WEBCORE_EXPORT static String neverSeenBeforeKey();
91     static String noKey();
92     static String noCacheKey();
93     static String noCurrentHistoryItemKey();
94     static String noDocumentLoaderKey();
95     WEBCORE_EXPORT static String noLongerInCacheKey();
96     static String noStoreKey();
97     WEBCORE_EXPORT static String nonVisibleStateKey();
98     WEBCORE_EXPORT static String notHTTPFamilyKey();
99     static String notInMemoryCacheKey();
100     WEBCORE_EXPORT static String otherKey();
101     static String pageCacheKey();
102     static String pageCacheFailureKey();
103     static String pageContainsAtLeastOneMediaEngineKey();
104     static String pageContainsAtLeastOnePluginKey();
105     static String pageContainsMediaEngineKey();
106     static String pageContainsPluginKey();
107     static String pageHandlesWebGLContextLossKey();
108     static String pageLoadedKey();
109     static String playedKey();
110     static String pluginLoadedKey();
111     static String pluginLoadingFailedKey();
112     static String postPageBackgroundingCPUUsageKey();
113     static String postPageBackgroundingMemoryUsageKey();
114     static String postPageLoadCPUUsageKey();
115     static String postPageLoadMemoryUsageKey();
116     static String provisionalLoadKey();
117     static String prunedDueToMaxSizeReached();
118     static String prunedDueToMemoryPressureKey();
119     static String prunedDueToProcessSuspended();
120     static String quirkRedirectComingKey();
121     static String rawKey();
122     static String redirectKey();
123     static String reloadFromOriginKey();
124     static String reloadKey();
125     static String replaceKey();
126     static String resourceLoadedKey();
127     static String resourceResponseSourceKey();
128     WEBCORE_EXPORT static String retrievalKey();
129     WEBCORE_EXPORT static String retrievalRequestKey();
130     WEBCORE_EXPORT static String revalidatingKey();
131     static String sameLoadKey();
132     static String scriptKey();
133     WEBCORE_EXPORT static String streamingMedia();
134     static String styleSheetKey();
135     WEBCORE_EXPORT static String successfulSpeculativeWarmupWithRevalidationKey();
136     WEBCORE_EXPORT static String successfulSpeculativeWarmupWithoutRevalidationKey();
137     static String svgDocumentKey();
138     WEBCORE_EXPORT static String synchronousMessageFailedKey();
139     WEBCORE_EXPORT static String uncacheableStatusCodeKey();
140     static String underMemoryPressureKey();
141     WEBCORE_EXPORT static String unknownEntryRequestKey();
142     WEBCORE_EXPORT static String unlikelyToReuseKey();
143     WEBCORE_EXPORT static String unsupportedHTTPMethodKey();
144     static String unsuspendableDOMObjectKey();
145     WEBCORE_EXPORT static String unusedKey();
146     static String unusedReasonCredentialSettingsKey();
147     static String unusedReasonErrorKey();
148     static String unusedReasonMustRevalidateNoValidatorKey();
149     static String unusedReasonNoStoreKey();
150     static String unusedReasonRedirectChainKey();
151     static String unusedReasonReloadKey();
152     static String unusedReasonTypeMismatchKey();
153     static String usedKey();
154     WEBCORE_EXPORT static String userZoomActionKey();
155     WEBCORE_EXPORT static String varyingHeaderMismatchKey();
156     static String videoKey();
157     WEBCORE_EXPORT static String visibleNonActiveStateKey();
158     WEBCORE_EXPORT static String visibleAndActiveStateKey();
159     WEBCORE_EXPORT static String wastedSpeculativeWarmupWithRevalidationKey();
160     WEBCORE_EXPORT static String wastedSpeculativeWarmupWithoutRevalidationKey();
161     WEBCORE_EXPORT static String webGLStateKey();
162     WEBCORE_EXPORT static String webViewKey();
163     static String yesKey();
164
165     WEBCORE_EXPORT static String memoryUsageToDiagnosticLoggingKey(uint64_t memoryUsage);
166     WEBCORE_EXPORT static String foregroundCPUUsageToDiagnosticLoggingKey(double cpuUsage);
167     WEBCORE_EXPORT static String backgroundCPUUsageToDiagnosticLoggingKey(double cpuUsage);
168 };
169
170 } // namespace WebCore