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 842 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
853 CSSAtRuleViewport = 977, | 853 CSSAtRuleViewport = 977, |
854 CSSAtRuleWebkitKeyframes = 978, | 854 CSSAtRuleWebkitKeyframes = 978, |
855 V8HTMLFieldSetElement_Elements_AttributeGetter = 979, | 855 V8HTMLFieldSetElement_Elements_AttributeGetter = 979, |
856 HTMLMediaElementPreloadForcedNone = 980, | 856 HTMLMediaElementPreloadForcedNone = 980, |
857 ExternalAddSearchProvider = 981, | 857 ExternalAddSearchProvider = 981, |
858 ExternalIsSearchProviderInstalled = 982, | 858 ExternalIsSearchProviderInstalled = 982, |
859 V8Permissions_RequestAll_Method = 983, | 859 V8Permissions_RequestAll_Method = 983, |
860 BluetoothDeviceInstanceId = 984, | 860 BluetoothDeviceInstanceId = 984, |
861 HTMLLabelElementFormIDLAttribute = 985, | 861 HTMLLabelElementFormIDLAttribute = 985, |
862 HTMLLabelElementFormContentAttribute = 986, | 862 HTMLLabelElementFormContentAttribute = 986, |
| 863 DeviceOrientationAbsoluteInsecureOrigin = 987, |
| 864 DeviceOrientationAbsoluteSecureOrigin = 988, |
863 | 865 |
864 // Add new features immediately above this line. Don't change assigned | 866 // Add new features immediately above this line. Don't change assigned |
865 // numbers of any item, and don't reuse removed slots. | 867 // numbers of any item, and don't reuse removed slots. |
866 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ | 868 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ |
867 // to update the UMA mapping. | 869 // to update the UMA mapping. |
868 NumberOfFeatures, // This enum value must be last. | 870 NumberOfFeatures, // This enum value must be last. |
869 }; | 871 }; |
870 | 872 |
871 // "count" sets the bit for this feature to 1. Repeated calls are ignored. | 873 // "count" sets the bit for this feature to 1. Repeated calls are ignored. |
872 static void count(const Frame*, Feature); | 874 static void count(const Frame*, Feature); |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
957 | 959 |
958 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR
ecordedMeasurement(feature); } | 960 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR
ecordedMeasurement(feature); } |
959 | 961 |
960 CountBits m_countBits; | 962 CountBits m_countBits; |
961 BitVector m_CSSFeatureBits; | 963 BitVector m_CSSFeatureBits; |
962 }; | 964 }; |
963 | 965 |
964 } // namespace blink | 966 } // namespace blink |
965 | 967 |
966 #endif // UseCounter_h | 968 #endif // UseCounter_h |
OLD | NEW |