| 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 1583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1594 bool hasRecordedMeasurement(Feature) const; | 1594 bool hasRecordedMeasurement(Feature) const; |
| 1595 | 1595 |
| 1596 DECLARE_TRACE(); | 1596 DECLARE_TRACE(); |
| 1597 | 1597 |
| 1598 private: | 1598 private: |
| 1599 // Notifies that a feature is newly counted to |m_observers|. This shouldn't | 1599 // Notifies that a feature is newly counted to |m_observers|. This shouldn't |
| 1600 // be called when the counter is disabled by |m_muteCount| or | 1600 // be called when the counter is disabled by |m_muteCount| or |
| 1601 // |m_disableReporting|. | 1601 // |m_disableReporting|. |
| 1602 void notifyFeatureCounted(Feature); | 1602 void notifyFeatureCounted(Feature); |
| 1603 | 1603 |
| 1604 EnumerationHistogram& extensionFeaturesHistogram() const; |
| 1604 EnumerationHistogram& featuresHistogram() const; | 1605 EnumerationHistogram& featuresHistogram() const; |
| 1605 EnumerationHistogram& cssHistogram() const; | 1606 EnumerationHistogram& cssHistogram() const; |
| 1606 EnumerationHistogram& animatedCSSHistogram() const; | 1607 EnumerationHistogram& animatedCSSHistogram() const; |
| 1607 | 1608 |
| 1608 // If non-zero, ignore all 'count' calls completely. | 1609 // If non-zero, ignore all 'count' calls completely. |
| 1609 unsigned m_muteCount; | 1610 unsigned m_muteCount; |
| 1610 | 1611 |
| 1611 // If true, disable reporting all histogram entries. | 1612 // If true, disable reporting all histogram entries. |
| 1612 bool m_disableReporting; | 1613 bool m_disableReporting; |
| 1613 | 1614 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 1637 // Tracks what features/properties need to be reported to the legacy | 1638 // Tracks what features/properties need to be reported to the legacy |
| 1638 // histograms. | 1639 // histograms. |
| 1639 BitVector m_featureBits; | 1640 BitVector m_featureBits; |
| 1640 BitVector m_CSSBits; | 1641 BitVector m_CSSBits; |
| 1641 } m_legacyCounter; | 1642 } m_legacyCounter; |
| 1642 }; | 1643 }; |
| 1643 | 1644 |
| 1644 } // namespace blink | 1645 } // namespace blink |
| 1645 | 1646 |
| 1646 #endif // UseCounter_h | 1647 #endif // UseCounter_h |
| OLD | NEW |