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 694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
705 V8SVGStyleElement_Disabled_AttributeSetter = 799, | 705 V8SVGStyleElement_Disabled_AttributeSetter = 799, |
706 ElementCreateShadowRootMultipleWithUserAgentShadowRoot = 800, | 706 ElementCreateShadowRootMultipleWithUserAgentShadowRoot = 800, |
707 InputTypeFileSecureOrigin = 801, | 707 InputTypeFileSecureOrigin = 801, |
708 InputTypeFileInsecureOrigin = 802, | 708 InputTypeFileInsecureOrigin = 802, |
709 V8HashChangeEvent_InitHashChangeEvent_Method = 803, | 709 V8HashChangeEvent_InitHashChangeEvent_Method = 803, |
710 ElementCreateShadowRootWithParameter = 804, | 710 ElementCreateShadowRootWithParameter = 804, |
711 V8KeyboardEvent_KeyIdentifier_AttributeGetter = 805, | 711 V8KeyboardEvent_KeyIdentifier_AttributeGetter = 805, |
712 V8SecurityPolicyViolationEvent_DocumentURI_AttributeGetter = 806, | 712 V8SecurityPolicyViolationEvent_DocumentURI_AttributeGetter = 806, |
713 V8SecurityPolicyViolationEvent_BlockedURI_AttributeGetter = 807, | 713 V8SecurityPolicyViolationEvent_BlockedURI_AttributeGetter = 807, |
714 V8SecurityPolicyViolationEvent_StatusCode_AttributeGetter = 808, | 714 V8SecurityPolicyViolationEvent_StatusCode_AttributeGetter = 808, |
| 715 HTMLLinkElementDisabled = 809, |
| 716 V8HTMLLinkElement_Disabled_AttributeGetter = 810, |
| 717 V8HTMLLinkElement_Disabled_AttributeSetter = 811, |
| 718 V8HTMLStyleElement_Disabled_AttributeGetter = 812, |
| 719 V8HTMLStyleElement_Disabled_AttributeSetter = 813, |
715 | 720 |
716 // Add new features immediately above this line. Don't change assigned | 721 // Add new features immediately above this line. Don't change assigned |
717 // numbers of any item, and don't reuse removed slots. | 722 // numbers of any item, and don't reuse removed slots. |
718 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ | 723 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ |
719 // to update the UMA mapping. | 724 // to update the UMA mapping. |
720 NumberOfFeatures, // This enum value must be last. | 725 NumberOfFeatures, // This enum value must be last. |
721 }; | 726 }; |
722 | 727 |
723 // "count" sets the bit for this feature to 1. Repeated calls are ignored. | 728 // "count" sets the bit for this feature to 1. Repeated calls are ignored. |
724 static void count(const Frame*, Feature); | 729 static void count(const Frame*, Feature); |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
808 | 813 |
809 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR
ecordedMeasurement(feature); } | 814 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR
ecordedMeasurement(feature); } |
810 | 815 |
811 CountBits m_countBits; | 816 CountBits m_countBits; |
812 BitVector m_CSSFeatureBits; | 817 BitVector m_CSSFeatureBits; |
813 }; | 818 }; |
814 | 819 |
815 } // namespace blink | 820 } // namespace blink |
816 | 821 |
817 #endif // UseCounter_h | 822 #endif // UseCounter_h |
OLD | NEW |