Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: third_party/WebKit/Source/core/frame/UseCounter.h

Issue 2721463004: Added use counters for HTML[Embed | Object]Element getter and setter (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 1458 matching lines...) Expand 10 before | Expand all | Expand 10 after
1469 PresentationReceiverSecureOrigin = 1820, 1469 PresentationReceiverSecureOrigin = 1820,
1470 PresentationRequestInsecureOrigin = 1821, 1470 PresentationRequestInsecureOrigin = 1821,
1471 PresentationRequestSecureOrigin = 1822, 1471 PresentationRequestSecureOrigin = 1822,
1472 RtcpMuxPolicyNegotiate = 1823, 1472 RtcpMuxPolicyNegotiate = 1823,
1473 DOMClobberedVariableAccessed = 1824, 1473 DOMClobberedVariableAccessed = 1824,
1474 HTMLDocumentCreateProcessingInstruction = 1825, 1474 HTMLDocumentCreateProcessingInstruction = 1825,
1475 FetchResponseConstructionWithStream = 1826, 1475 FetchResponseConstructionWithStream = 1826,
1476 LocationOrigin = 1827, 1476 LocationOrigin = 1827,
1477 DocumentOrigin = 1828, 1477 DocumentOrigin = 1828,
1478 SubtleCryptoOnlyStrictSecureContextCheckFailed = 1829, 1478 SubtleCryptoOnlyStrictSecureContextCheckFailed = 1829,
1479 V8HTMLObjectElement_getter = 1830,
1480 V8HTMLObjectElement_setter = 1831,
1481 V8HTMLEmbedElement_getter = 1832,
1482 V8HTMLEmbedElement_setter = 1833,
1479 1483
1480 // Add new features immediately above this line. Don't change assigned 1484 // Add new features immediately above this line. Don't change assigned
1481 // numbers of any item, and don't reuse removed slots. 1485 // numbers of any item, and don't reuse removed slots.
1482 // Also, run update_use_counter_feature_enum.py in 1486 // Also, run update_use_counter_feature_enum.py in
foolip 2017/02/28 04:38:22 Don't forget to update histograms.xml :)
1483 // chromium/src/tools/metrics/histograms/ to update the UMA mapping. 1487 // chromium/src/tools/metrics/histograms/ to update the UMA mapping.
1484 NumberOfFeatures, // This enum value must be last. 1488 NumberOfFeatures, // This enum value must be last.
1485 }; 1489 };
1486 1490
1487 // An interface to observe UseCounter changes. Note that this is never 1491 // An interface to observe UseCounter changes. Note that this is never
1488 // notified when the counter is disabled by |m_muteCount| or 1492 // notified when the counter is disabled by |m_muteCount| or
1489 // |m_disableReporting|. 1493 // |m_disableReporting|.
1490 class Observer : public GarbageCollected<Observer> { 1494 class Observer : public GarbageCollected<Observer> {
1491 public: 1495 public:
1492 // Notified when a feature is counted for the first time. This should return 1496 // Notified when a feature is counted for the first time. This should return
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
1578 // Tracks what features/properties need to be reported to the legacy 1582 // Tracks what features/properties need to be reported to the legacy
1579 // histograms. 1583 // histograms.
1580 BitVector m_featureBits; 1584 BitVector m_featureBits;
1581 BitVector m_CSSBits; 1585 BitVector m_CSSBits;
1582 } m_legacyCounter; 1586 } m_legacyCounter;
1583 }; 1587 };
1584 1588
1585 } // namespace blink 1589 } // namespace blink
1586 1590
1587 #endif // UseCounter_h 1591 #endif // UseCounter_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698