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