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 799 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
810 V8Permissions_Request_Method = 915, | 810 V8Permissions_Request_Method = 915, |
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 | 821 |
821 // Add new features immediately above this line. Don't change assigned | 822 // Add new features immediately above this line. Don't change assigned |
822 // numbers of any item, and don't reuse removed slots. | 823 // numbers of any item, and don't reuse removed slots. |
823 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ | 824 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ |
824 // to update the UMA mapping. | 825 // to update the UMA mapping. |
825 NumberOfFeatures, // This enum value must be last. | 826 NumberOfFeatures, // This enum value must be last. |
826 }; | 827 }; |
827 | 828 |
828 // "count" sets the bit for this feature to 1. Repeated calls are ignored. | 829 // "count" sets the bit for this feature to 1. Repeated calls are ignored. |
829 static void count(const Frame*, Feature); | 830 static void count(const Frame*, Feature); |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
913 | 914 |
914 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR
ecordedMeasurement(feature); } | 915 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR
ecordedMeasurement(feature); } |
915 | 916 |
916 CountBits m_countBits; | 917 CountBits m_countBits; |
917 BitVector m_CSSFeatureBits; | 918 BitVector m_CSSFeatureBits; |
918 }; | 919 }; |
919 | 920 |
920 } // namespace blink | 921 } // namespace blink |
921 | 922 |
922 #endif // UseCounter_h | 923 #endif // UseCounter_h |
OLD | NEW |