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 800 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
811 LinkRelSubresource = 916, | 811 LinkRelSubresource = 916, |
812 LinkRelPrefetch = 917, | 812 LinkRelPrefetch = 917, |
813 LinkRelPrerender = 918, | 813 LinkRelPrerender = 918, |
814 LinkRelNext = 919, | 814 LinkRelNext = 919, |
815 PrefixedPerformanceResourceTimingBufferFull = 920, | 815 PrefixedPerformanceResourceTimingBufferFull = 920, |
816 CSSValuePrefixedMinContent = 921, | 816 CSSValuePrefixedMinContent = 921, |
817 CSSValuePrefixedMaxContent = 922, | 817 CSSValuePrefixedMaxContent = 922, |
818 CSSValuePrefixedFitContent = 923, | 818 CSSValuePrefixedFitContent = 923, |
819 CSSValuePrefixedFillAvailable = 924, | 819 CSSValuePrefixedFillAvailable = 924, |
820 FetchAPIRequestContext = 925, | 820 FetchAPIRequestContext = 925, |
| 821 PresentationDefaultRequest = 926, |
| 822 PresentationAvailabilityChangeEventListener = 927, |
| 823 PresentationRequestConstructor = 928, |
| 824 PresentationRequestStart = 929, |
| 825 PresentationRequestJoin = 930, |
| 826 PresentationRequestGetAvailability = 931, |
| 827 PresentationRequestSessionConnectEventListener = 932, |
| 828 PresentationSessionClose = 933, |
| 829 PresentationSessionSend = 934, |
| 830 PresentationSessionStateChangeEventListener = 935, |
| 831 PresentationSessionMessageEventListener = 936, |
821 | 832 |
822 // Add new features immediately above this line. Don't change assigned | 833 // Add new features immediately above this line. Don't change assigned |
823 // numbers of any item, and don't reuse removed slots. | 834 // numbers of any item, and don't reuse removed slots. |
824 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ | 835 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ |
825 // to update the UMA mapping. | 836 // to update the UMA mapping. |
826 NumberOfFeatures, // This enum value must be last. | 837 NumberOfFeatures, // This enum value must be last. |
827 }; | 838 }; |
828 | 839 |
829 // "count" sets the bit for this feature to 1. Repeated calls are ignored. | 840 // "count" sets the bit for this feature to 1. Repeated calls are ignored. |
830 static void count(const Frame*, Feature); | 841 static void count(const Frame*, Feature); |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
914 | 925 |
915 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR
ecordedMeasurement(feature); } | 926 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR
ecordedMeasurement(feature); } |
916 | 927 |
917 CountBits m_countBits; | 928 CountBits m_countBits; |
918 BitVector m_CSSFeatureBits; | 929 BitVector m_CSSFeatureBits; |
919 }; | 930 }; |
920 | 931 |
921 } // namespace blink | 932 } // namespace blink |
922 | 933 |
923 #endif // UseCounter_h | 934 #endif // UseCounter_h |
OLD | NEW |