| 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 826 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 837 CSPSourceWildcardWouldMatchExactHost = 959, | 837 CSPSourceWildcardWouldMatchExactHost = 959, |
| 838 CredentialManagerGet = 960, | 838 CredentialManagerGet = 960, |
| 839 CredentialManagerGetWithUI = 961, | 839 CredentialManagerGetWithUI = 961, |
| 840 CredentialManagerGetWithoutUI = 962, | 840 CredentialManagerGetWithoutUI = 962, |
| 841 CredentialManagerStore = 963, | 841 CredentialManagerStore = 963, |
| 842 CredentialManagerRequireUserMediation = 964, | 842 CredentialManagerRequireUserMediation = 964, |
| 843 // The above items are available in M47 branch. | 843 // The above items are available in M47 branch. |
| 844 | 844 |
| 845 RequestAutocomplete = 965, | 845 RequestAutocomplete = 965, |
| 846 BlockableMixedContentInSubframeBlocked = 966, | 846 BlockableMixedContentInSubframeBlocked = 966, |
| 847 AddEventListenerThirdArgumentIsObject = 967, |
| 848 RemoveEventListenerThirdArgumentIsObject = 968, |
| 847 | 849 |
| 848 // Add new features immediately above this line. Don't change assigned | 850 // Add new features immediately above this line. Don't change assigned |
| 849 // numbers of any item, and don't reuse removed slots. | 851 // numbers of any item, and don't reuse removed slots. |
| 850 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ | 852 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ |
| 851 // to update the UMA mapping. | 853 // to update the UMA mapping. |
| 852 NumberOfFeatures, // This enum value must be last. | 854 NumberOfFeatures, // This enum value must be last. |
| 853 }; | 855 }; |
| 854 | 856 |
| 855 // "count" sets the bit for this feature to 1. Repeated calls are ignored. | 857 // "count" sets the bit for this feature to 1. Repeated calls are ignored. |
| 856 static void count(const Frame*, Feature); | 858 static void count(const Frame*, Feature); |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 941 | 943 |
| 942 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR
ecordedMeasurement(feature); } | 944 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR
ecordedMeasurement(feature); } |
| 943 | 945 |
| 944 CountBits m_countBits; | 946 CountBits m_countBits; |
| 945 BitVector m_CSSFeatureBits; | 947 BitVector m_CSSFeatureBits; |
| 946 }; | 948 }; |
| 947 | 949 |
| 948 } // namespace blink | 950 } // namespace blink |
| 949 | 951 |
| 950 #endif // UseCounter_h | 952 #endif // UseCounter_h |
| OLD | NEW |