| 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 590b0749a3e06852839a347d12c4a6dd304aa64f..31817e91caa81d6537b9707d0b1acc7eee89242d 100644
|
| --- a/third_party/WebKit/Source/core/frame/UseCounter.h
|
| +++ b/third_party/WebKit/Source/core/frame/UseCounter.h
|
| @@ -29,6 +29,7 @@
|
| #include "core/CSSPropertyNames.h"
|
| #include "core/CoreExport.h"
|
| #include "core/css/parser/CSSParserMode.h"
|
| +#include "platform/weborigin/KURL.h"
|
| #include "wtf/BitVector.h"
|
| #include "wtf/Noncopyable.h"
|
| #include "wtf/text/WTFString.h"
|
| @@ -1428,7 +1429,7 @@ class CORE_EXPORT UseCounter {
|
| static bool isCounted(Document&, const String&);
|
| bool isCounted(CSSPropertyID unresolvedProperty);
|
|
|
| - void didCommitLoad();
|
| + void didCommitLoad(KURL);
|
|
|
| static UseCounter* getFrom(const Document*);
|
| static UseCounter* getFrom(const CSSStyleSheet*);
|
| @@ -1448,7 +1449,15 @@ class CORE_EXPORT UseCounter {
|
| EnumerationHistogram& featuresHistogram() const;
|
| EnumerationHistogram& cssHistogram() const;
|
|
|
| + // If non-zero, ignore all usage (eg. because we're not currently running
|
| + // code that's interesting from a metrics perspective).
|
| unsigned m_muteCount;
|
| +
|
| + // If true, m_muteCount is currently incremented due to loading a page that's
|
| + // not interesting from a metrics perspective.
|
| + bool m_mutedByLoad;
|
| +
|
| + // The scope represented by this UseCounter instance.
|
| Context m_context;
|
|
|
| // Track what features/properties have been reported to the (non-legacy)
|
|
|