| 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 956 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 967 SVG1DOMCursorElement = 1112, | 967 SVG1DOMCursorElement = 1112, |
| 968 V8SVGPathElement_PathLength_AttributeGetter = 1113, | 968 V8SVGPathElement_PathLength_AttributeGetter = 1113, |
| 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 | 978 |
| 978 // Add new features immediately above this line. Don't change assigned | 979 // Add new features immediately above this line. Don't change assigned |
| 979 // numbers of any item, and don't reuse removed slots. | 980 // numbers of any item, and don't reuse removed slots. |
| 980 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ | 981 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ |
| 981 // to update the UMA mapping. | 982 // to update the UMA mapping. |
| 982 NumberOfFeatures, // This enum value must be last. | 983 NumberOfFeatures, // This enum value must be last. |
| 983 }; | 984 }; |
| 984 | 985 |
| 985 // "count" sets the bit for this feature to 1. Repeated calls are ignored. | 986 // "count" sets the bit for this feature to 1. Repeated calls are ignored. |
| 986 static void count(const Frame*, Feature); | 987 static void count(const Frame*, Feature); |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1071 | 1072 |
| 1072 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR
ecordedMeasurement(feature); } | 1073 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR
ecordedMeasurement(feature); } |
| 1073 | 1074 |
| 1074 CountBits m_countBits; | 1075 CountBits m_countBits; |
| 1075 BitVector m_CSSFeatureBits; | 1076 BitVector m_CSSFeatureBits; |
| 1076 }; | 1077 }; |
| 1077 | 1078 |
| 1078 } // namespace blink | 1079 } // namespace blink |
| 1079 | 1080 |
| 1080 #endif // UseCounter_h | 1081 #endif // UseCounter_h |
| OLD | NEW |