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 683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
694 SVGHrefAnimVal = 759, | 694 SVGHrefAnimVal = 759, |
695 V8CSSRuleList_Item_Method = 760, | 695 V8CSSRuleList_Item_Method = 760, |
696 V8MediaList_Item_Method = 761, | 696 V8MediaList_Item_Method = 761, |
697 V8StyleSheetList_Item_Method = 762, | 697 V8StyleSheetList_Item_Method = 762, |
698 StyleSheetListAnonymousNamedGetter = 763, | 698 StyleSheetListAnonymousNamedGetter = 763, |
699 AutocapitalizeAttribute = 764, | 699 AutocapitalizeAttribute = 764, |
700 FullscreenSecureOrigin = 765, | 700 FullscreenSecureOrigin = 765, |
701 FullscreenInsecureOrigin = 766, | 701 FullscreenInsecureOrigin = 766, |
702 DialogInSandboxedContext = 767, | 702 DialogInSandboxedContext = 767, |
703 SVGSMILAnimationInImageRegardlessOfCache = 768, | 703 SVGSMILAnimationInImageRegardlessOfCache = 768, |
| 704 PushSubscriptionId = 769, |
704 | 705 |
705 // Add new features immediately above this line. Don't change assigned | 706 // Add new features immediately above this line. Don't change assigned |
706 // numbers of any item, and don't reuse removed slots. | 707 // numbers of any item, and don't reuse removed slots. |
707 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ | 708 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ |
708 // to update the UMA mapping. | 709 // to update the UMA mapping. |
709 NumberOfFeatures, // This enum value must be last. | 710 NumberOfFeatures, // This enum value must be last. |
710 }; | 711 }; |
711 | 712 |
712 // "count" sets the bit for this feature to 1. Repeated calls are ignored. | 713 // "count" sets the bit for this feature to 1. Repeated calls are ignored. |
713 static void count(const Frame*, Feature); | 714 static void count(const Frame*, Feature); |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
797 | 798 |
798 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR
ecordedMeasurement(feature); } | 799 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR
ecordedMeasurement(feature); } |
799 | 800 |
800 CountBits m_countBits; | 801 CountBits m_countBits; |
801 BitVector m_CSSFeatureBits; | 802 BitVector m_CSSFeatureBits; |
802 }; | 803 }; |
803 | 804 |
804 } // namespace blink | 805 } // namespace blink |
805 | 806 |
806 #endif // UseCounter_h | 807 #endif // UseCounter_h |
OLD | NEW |