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 902 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
913 RTCPeerConnectionSetRemoteDescriptionLegacyNoFailureCallback = 1056, | 913 RTCPeerConnectionSetRemoteDescriptionLegacyNoFailureCallback = 1056, |
914 RTCPeerConnectionSetRemoteDescriptionLegacyCompliant = 1057, | 914 RTCPeerConnectionSetRemoteDescriptionLegacyCompliant = 1057, |
915 RTCPeerConnectionGetStatsLegacyNonCompliant = 1058, | 915 RTCPeerConnectionGetStatsLegacyNonCompliant = 1058, |
916 NodeFilterIsFunction = 1059, | 916 NodeFilterIsFunction = 1059, |
917 NodeFilterIsObject = 1060, | 917 NodeFilterIsObject = 1060, |
918 TextEncoderUTF16 = 1061, | 918 TextEncoderUTF16 = 1061, |
919 CSSSelectorInternalPseudoListBox = 1062, | 919 CSSSelectorInternalPseudoListBox = 1062, |
920 CSSSelectorInternalMediaControlsCastButton = 1063, | 920 CSSSelectorInternalMediaControlsCastButton = 1063, |
921 CSSSelectorInternalMediaControlsOverlayCastButton = 1064, | 921 CSSSelectorInternalMediaControlsOverlayCastButton = 1064, |
922 CSSSelectorInternalPseudoSpatialNavigationFocus = 1065, | 922 CSSSelectorInternalPseudoSpatialNavigationFocus = 1065, |
| 923 SameOriginTextScript = 1066, |
| 924 SameOriginApplicationScript = 1067, |
| 925 SameOriginOtherScript = 1068, |
| 926 CrossOriginTextScript = 1069, |
| 927 CrossOriginApplicationScript = 1070, |
| 928 CrossOriginOtherScript = 1071, |
923 | 929 |
924 // Add new features immediately above this line. Don't change assigned | 930 // Add new features immediately above this line. Don't change assigned |
925 // numbers of any item, and don't reuse removed slots. | 931 // numbers of any item, and don't reuse removed slots. |
926 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ | 932 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ |
927 // to update the UMA mapping. | 933 // to update the UMA mapping. |
928 NumberOfFeatures, // This enum value must be last. | 934 NumberOfFeatures, // This enum value must be last. |
929 }; | 935 }; |
930 | 936 |
931 // "count" sets the bit for this feature to 1. Repeated calls are ignored. | 937 // "count" sets the bit for this feature to 1. Repeated calls are ignored. |
932 static void count(const Frame*, Feature); | 938 static void count(const Frame*, Feature); |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1017 | 1023 |
1018 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR
ecordedMeasurement(feature); } | 1024 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR
ecordedMeasurement(feature); } |
1019 | 1025 |
1020 CountBits m_countBits; | 1026 CountBits m_countBits; |
1021 BitVector m_CSSFeatureBits; | 1027 BitVector m_CSSFeatureBits; |
1022 }; | 1028 }; |
1023 | 1029 |
1024 } // namespace blink | 1030 } // namespace blink |
1025 | 1031 |
1026 #endif // UseCounter_h | 1032 #endif // UseCounter_h |
OLD | NEW |