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