| 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 701 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 712 V8SecurityPolicyViolationEvent_DocumentURI_AttributeGetter = 806, | 712 V8SecurityPolicyViolationEvent_DocumentURI_AttributeGetter = 806, |
| 713 V8SecurityPolicyViolationEvent_BlockedURI_AttributeGetter = 807, | 713 V8SecurityPolicyViolationEvent_BlockedURI_AttributeGetter = 807, |
| 714 V8SecurityPolicyViolationEvent_StatusCode_AttributeGetter = 808, | 714 V8SecurityPolicyViolationEvent_StatusCode_AttributeGetter = 808, |
| 715 HTMLLinkElementDisabled = 809, | 715 HTMLLinkElementDisabled = 809, |
| 716 V8HTMLLinkElement_Disabled_AttributeGetter = 810, | 716 V8HTMLLinkElement_Disabled_AttributeGetter = 810, |
| 717 V8HTMLLinkElement_Disabled_AttributeSetter = 811, | 717 V8HTMLLinkElement_Disabled_AttributeSetter = 811, |
| 718 V8HTMLStyleElement_Disabled_AttributeGetter = 812, | 718 V8HTMLStyleElement_Disabled_AttributeGetter = 812, |
| 719 V8HTMLStyleElement_Disabled_AttributeSetter = 813, | 719 V8HTMLStyleElement_Disabled_AttributeSetter = 813, |
| 720 V8FileReader_ReadAsBinaryString_Method = 814, | 720 V8FileReader_ReadAsBinaryString_Method = 814, |
| 721 V8FileReaderSync_ReadAsBinaryString_Method = 815, | 721 V8FileReaderSync_ReadAsBinaryString_Method = 815, |
| 722 V8DOMStringList_Item_Method = 816, |
| 723 V8Location_AncestorOrigins_AttributeGetter = 817, |
| 724 V8IDBDatabase_ObjectStoreNames_AttributeGetter = 818, |
| 725 IDBDatabaseTransactionStoreNamesIsDOMStringList = 819, |
| 726 V8IDBObjectStore_IndexNames_AttributeGetter = 820, |
| 727 V8IDBTransaction_ObjectStoreNames_AttributeGetter = 821, |
| 722 | 728 |
| 723 // Add new features immediately above this line. Don't change assigned | 729 // Add new features immediately above this line. Don't change assigned |
| 724 // numbers of any item, and don't reuse removed slots. | 730 // numbers of any item, and don't reuse removed slots. |
| 725 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ | 731 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ |
| 726 // to update the UMA mapping. | 732 // to update the UMA mapping. |
| 727 NumberOfFeatures, // This enum value must be last. | 733 NumberOfFeatures, // This enum value must be last. |
| 728 }; | 734 }; |
| 729 | 735 |
| 730 // "count" sets the bit for this feature to 1. Repeated calls are ignored. | 736 // "count" sets the bit for this feature to 1. Repeated calls are ignored. |
| 731 static void count(const Frame*, Feature); | 737 static void count(const Frame*, Feature); |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 815 | 821 |
| 816 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR
ecordedMeasurement(feature); } | 822 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR
ecordedMeasurement(feature); } |
| 817 | 823 |
| 818 CountBits m_countBits; | 824 CountBits m_countBits; |
| 819 BitVector m_CSSFeatureBits; | 825 BitVector m_CSSFeatureBits; |
| 820 }; | 826 }; |
| 821 | 827 |
| 822 } // namespace blink | 828 } // namespace blink |
| 823 | 829 |
| 824 #endif // UseCounter_h | 830 #endif // UseCounter_h |
| OLD | NEW |