669938c086480331940bc3f0e9a29b203e55aeab
[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 backNavigationKey();
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     WEBCORE_EXPORT static String deltaKey();
47     static String deniedByClientKey();
48     static String deviceMotionKey();
49     static String deviceOrientationKey();
50     static String deviceProximityKey();
51     static String diskCacheKey();
52     static String diskCacheAfterValidationKey();
53     static String documentLoaderStoppingKey();
54     static String engineFailedToLoadKey();
55     WEBCORE_EXPORT static String entryRightlyNotWarmedUpKey();
56     WEBCORE_EXPORT static String entryWronglyNotWarmedUpKey();
57     static String expiredKey();
58     static String fontKey();
59     static String hasCalledWindowOpenKey();
60     static String hasOpenerKey();
61     static String hasPluginsKey();
62     static String httpsNoStoreKey();
63     static String imageKey();
64     static String inMemoryCacheKey();
65     WEBCORE_EXPORT static String inactiveKey();
66     WEBCORE_EXPORT static String internalErrorKey();
67     WEBCORE_EXPORT static String invalidSessionIDKey();
68     WEBCORE_EXPORT static String isAttachmentKey();
69     WEBCORE_EXPORT static String isConditionalRequestKey();
70     static String isDisabledKey();
71     static String isErrorPageKey();
72     static String isExpiredKey();
73     WEBCORE_EXPORT static String isReloadIgnoringCacheDataKey();
74     static String loadingKey();
75     static String isLoadingKey();
76     static String mainDocumentErrorKey();
77     static String mainResourceKey();
78     static String mediaLoadedKey();
79     static String mediaLoadingFailedKey();
80     static String memoryCacheEntryDecisionKey();
81     static String memoryCacheUsageKey();
82     WEBCORE_EXPORT static String missingValidatorFieldsKey();
83     static String navigationKey();
84     WEBCORE_EXPORT static String needsRevalidationKey();
85     WEBCORE_EXPORT static String networkCacheKey();
86     static String networkKey();
87     WEBCORE_EXPORT static String networkProcessCrashedKey();
88     WEBCORE_EXPORT static String neverSeenBeforeKey();
89     static String noKey();
90     static String noCacheKey();
91     static String noCurrentHistoryItemKey();
92     static String noDocumentLoaderKey();
93     WEBCORE_EXPORT static String noLongerInCacheKey();
94     static String noStoreKey();
95     WEBCORE_EXPORT static String nonVisibleStateKey();
96     WEBCORE_EXPORT static String notHTTPFamilyKey();
97     WEBCORE_EXPORT static String notInCacheKey();
98     static String notInMemoryCacheKey();
99     WEBCORE_EXPORT static String otherKey();
100     static String pageCacheKey();
101     static String pageCacheFailureKey();
102     static String pageContainsAtLeastOneMediaEngineKey();
103     static String pageContainsAtLeastOnePluginKey();
104     static String pageContainsMediaEngineKey();
105     static String pageContainsPluginKey();
106     static String pageHandlesWebGLContextLossKey();
107     static String pageLoadedKey();
108     static String playedKey();
109     static String pluginLoadedKey();
110     static String pluginLoadingFailedKey();
111     static String postPageBackgroundingCPUUsageKey();
112     static String postPageBackgroundingMemoryUsageKey();
113     static String postPageLoadCPUUsageKey();
114     static String postPageLoadMemoryUsageKey();
115     static String provisionalLoadKey();
116     static String prunedDueToMaxSizeReached();
117     static String prunedDueToMemoryPressureKey();
118     static String prunedDueToProcessSuspended();
119     static String quirkRedirectComingKey();
120     static String rawKey();
121     static String redirectKey();
122     static String reloadFromOriginKey();
123     static String reloadKey();
124     static String replaceKey();
125     WEBCORE_EXPORT static String requestKey();
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 unusableCachedEntryKey();
146     WEBCORE_EXPORT static String unusedKey();
147     static String unusedReasonCredentialSettingsKey();
148     static String unusedReasonErrorKey();
149     static String unusedReasonMustRevalidateNoValidatorKey();
150     static String unusedReasonNoStoreKey();
151     static String unusedReasonRedirectChainKey();
152     static String unusedReasonReloadKey();
153     static String unusedReasonTypeMismatchKey();
154     static String usedKey();
155     WEBCORE_EXPORT static String userKey();
156     WEBCORE_EXPORT static String varyingHeaderMismatchKey();
157     static String videoKey();
158     WEBCORE_EXPORT static String visibleNonActiveStateKey();
159     WEBCORE_EXPORT static String visibleAndActiveStateKey();
160     WEBCORE_EXPORT static String wastedSpeculativeWarmupWithRevalidationKey();
161     WEBCORE_EXPORT static String wastedSpeculativeWarmupWithoutRevalidationKey();
162     WEBCORE_EXPORT static String webGLStateKey();
163     WEBCORE_EXPORT static String webViewKey();
164     static String yesKey();
165     WEBCORE_EXPORT static String zoomedKey();
166
167     WEBCORE_EXPORT static String memoryUsageToDiagnosticLoggingKey(uint64_t memoryUsage);
168     WEBCORE_EXPORT static String foregroundCPUUsageToDiagnosticLoggingKey(double cpuUsage);
169     WEBCORE_EXPORT static String backgroundCPUUsageToDiagnosticLoggingKey(double cpuUsage);
170 };
171
172 } // namespace WebCore