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