| Index: third_party/WebKit/Source/core/frame/UseCounter.h
|
| diff --git a/third_party/WebKit/Source/core/frame/UseCounter.h b/third_party/WebKit/Source/core/frame/UseCounter.h
|
| index fb1d9619255ff73a50db350583567bd0ddd783c2..246bdf6e61b321fe01d2443834235c246c87b5fe 100644
|
| --- a/third_party/WebKit/Source/core/frame/UseCounter.h
|
| +++ b/third_party/WebKit/Source/core/frame/UseCounter.h
|
| @@ -38,6 +38,7 @@ namespace blink {
|
|
|
| class CSSStyleSheet;
|
| class Document;
|
| +class EnumerationHistogram;
|
| class ExecutionContext;
|
| class Frame;
|
| class LocalFrame;
|
| @@ -58,7 +59,13 @@ class CORE_EXPORT UseCounter {
|
| DISALLOW_NEW();
|
| WTF_MAKE_NONCOPYABLE(UseCounter);
|
| public:
|
| - UseCounter();
|
| + enum Context {
|
| + DefaultContext,
|
| + // Counters for SVGImages (lifetime independent from other pages).
|
| + SVGImageContext
|
| + };
|
| +
|
| + UseCounter(Context = DefaultContext);
|
|
|
| enum Feature {
|
| // Do not change assigned numbers of existing items: add new features
|
| @@ -1336,7 +1343,17 @@ public:
|
|
|
| bool hasRecordedMeasurement(Feature) const;
|
|
|
| -protected:
|
| +private:
|
| + EnumerationHistogram& featuresHistogram() const;
|
| + EnumerationHistogram& cssHistogram() const;
|
| +
|
| + unsigned m_muteCount;
|
| + Context m_context;
|
| +
|
| + // Track what features/properties have been reported to the (non-legacy) histograms.
|
| + BitVector m_featuresRecorded;
|
| + BitVector m_CSSRecorded;
|
| +
|
| // Encapsulates the work to preserve the old "FeatureObserver" histogram with original semantics
|
| // TODO(rbyers): remove this - http://crbug.com/597963
|
| class LegacyCounter {
|
| @@ -1351,12 +1368,6 @@ protected:
|
| BitVector m_featureBits;
|
| BitVector m_CSSBits;
|
| } m_legacyCounter;
|
| -
|
| - unsigned m_muteCount;
|
| -
|
| - // Track what features/properties have been reported to the (non-legacy) histograms.
|
| - BitVector m_featuresRecorded;
|
| - BitVector m_CSSRecorded;
|
| };
|
|
|
| } // namespace blink
|
|
|