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 782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
793 MixedContentBlockableAllowed = 896, | 793 MixedContentBlockableAllowed = 896, |
794 PseudoBeforeAfterForInputElement = 897, | 794 PseudoBeforeAfterForInputElement = 897, |
795 V8Permissions_Revoke_Method = 898, | 795 V8Permissions_Revoke_Method = 898, |
796 LinkRelDnsPrefetch = 899, | 796 LinkRelDnsPrefetch = 899, |
797 LinkRelPreconnect = 900, | 797 LinkRelPreconnect = 900, |
798 LinkRelPreload = 901, | 798 LinkRelPreload = 901, |
799 LinkHeaderDnsPrefetch = 902, | 799 LinkHeaderDnsPrefetch = 902, |
800 LinkHeaderPreconnect = 903, | 800 LinkHeaderPreconnect = 903, |
801 ClientHintsMetaAcceptCH = 904, | 801 ClientHintsMetaAcceptCH = 904, |
802 HTMLElementDeprecatedWidth = 905, | 802 HTMLElementDeprecatedWidth = 905, |
| 803 OfflineAudioContextStartRendering = 906, |
| 804 OfflineAudioContextSuspend = 907, |
| 805 OfflineAudioContextResume = 908, |
803 | 806 |
804 // Add new features immediately above this line. Don't change assigned | 807 // Add new features immediately above this line. Don't change assigned |
805 // numbers of any item, and don't reuse removed slots. | 808 // numbers of any item, and don't reuse removed slots. |
806 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ | 809 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ |
807 // to update the UMA mapping. | 810 // to update the UMA mapping. |
808 NumberOfFeatures, // This enum value must be last. | 811 NumberOfFeatures, // This enum value must be last. |
809 }; | 812 }; |
810 | 813 |
811 // "count" sets the bit for this feature to 1. Repeated calls are ignored. | 814 // "count" sets the bit for this feature to 1. Repeated calls are ignored. |
812 static void count(const Frame*, Feature); | 815 static void count(const Frame*, Feature); |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
896 | 899 |
897 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR
ecordedMeasurement(feature); } | 900 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR
ecordedMeasurement(feature); } |
898 | 901 |
899 CountBits m_countBits; | 902 CountBits m_countBits; |
900 BitVector m_CSSFeatureBits; | 903 BitVector m_CSSFeatureBits; |
901 }; | 904 }; |
902 | 905 |
903 } // namespace blink | 906 } // namespace blink |
904 | 907 |
905 #endif // UseCounter_h | 908 #endif // UseCounter_h |
OLD | NEW |