OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google, Inc. All rights reserved. | 2 * Copyright (C) 2012 Google, Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 958 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
969 SVG1DOMSVGElement = 1114, | 969 SVG1DOMSVGElement = 1114, |
970 SVG1DOMImageElement = 1115, | 970 SVG1DOMImageElement = 1115, |
971 SVG1DOMForeignObjectElement = 1116, | 971 SVG1DOMForeignObjectElement = 1116, |
972 AudioContextCreateIIRFilter = 1117, | 972 AudioContextCreateIIRFilter = 1117, |
973 CSSSelectorPseudoSlotted = 1118, | 973 CSSSelectorPseudoSlotted = 1118, |
974 MediaDevicesEnumerateDevices = 1119, | 974 MediaDevicesEnumerateDevices = 1119, |
975 NonSecureSharedWorkerAccessedFromSecureContext = 1120, | 975 NonSecureSharedWorkerAccessedFromSecureContext = 1120, |
976 SecureSharedWorkerAccessedFromNonSecureContext = 1121, | 976 SecureSharedWorkerAccessedFromNonSecureContext = 1121, |
977 NonCSSStyleSheetType = 1122, | 977 NonCSSStyleSheetType = 1122, |
978 EventDeepPath = 1123, | 978 EventDeepPath = 1123, |
| 979 LinkHeaderPreload = 1124, |
979 | 980 |
980 // Add new features immediately above this line. Don't change assigned | 981 // Add new features immediately above this line. Don't change assigned |
981 // numbers of any item, and don't reuse removed slots. | 982 // numbers of any item, and don't reuse removed slots. |
982 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ | 983 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ |
983 // to update the UMA mapping. | 984 // to update the UMA mapping. |
984 NumberOfFeatures, // This enum value must be last. | 985 NumberOfFeatures, // This enum value must be last. |
985 }; | 986 }; |
986 | 987 |
987 // "count" sets the bit for this feature to 1. Repeated calls are ignored. | 988 // "count" sets the bit for this feature to 1. Repeated calls are ignored. |
988 static void count(const Frame*, Feature); | 989 static void count(const Frame*, Feature); |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1073 | 1074 |
1074 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR
ecordedMeasurement(feature); } | 1075 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR
ecordedMeasurement(feature); } |
1075 | 1076 |
1076 CountBits m_countBits; | 1077 CountBits m_countBits; |
1077 BitVector m_CSSFeatureBits; | 1078 BitVector m_CSSFeatureBits; |
1078 }; | 1079 }; |
1079 | 1080 |
1080 } // namespace blink | 1081 } // namespace blink |
1081 | 1082 |
1082 #endif // UseCounter_h | 1083 #endif // UseCounter_h |
OLD | NEW |