Chromium Code Reviews| 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 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 558 MixedContentPlugin = 616, | 558 MixedContentPlugin = 616, |
| 559 MixedContentPrefetch = 617, | 559 MixedContentPrefetch = 617, |
| 560 MixedContentVideo = 618, | 560 MixedContentVideo = 618, |
| 561 CORSCredentialedNullOriginAccessAllowed = 619, | 561 CORSCredentialedNullOriginAccessAllowed = 619, |
| 562 AudioListenerDopplerFactor = 620, | 562 AudioListenerDopplerFactor = 620, |
| 563 AudioListenerSpeedOfSound = 621, | 563 AudioListenerSpeedOfSound = 621, |
| 564 AudioListenerSetVelocity = 622, | 564 AudioListenerSetVelocity = 622, |
| 565 ShadowRootGetElementsByClassName = 623, | 565 ShadowRootGetElementsByClassName = 623, |
| 566 ShadowRootGetElementsByTagName = 624, | 566 ShadowRootGetElementsByTagName = 624, |
| 567 ShadowRootGetElementsByTagNameNS = 625, | 567 ShadowRootGetElementsByTagNameNS = 625, |
| 568 AudioContextCreateAnalyser = 626, | |
| 569 AudioContextCreateBiquadFilter = 627, | |
| 570 AudioContextCreateBufferSource = 628, | |
| 571 AudioContextCreateChannelMerger = 629, | |
| 572 AudioContextCreateChannelSplitter = 630, | |
| 573 AudioContextCreateConvolver = 631, | |
| 574 AudioContextCreateDelay = 632, | |
| 575 AudioContextCreateDynamicsCompressor = 633, | |
| 576 AudioContextCreateGain = 634, | |
| 577 AudioContextCreateMediaElementSource = 635, | |
| 578 AudioContextCreateMediaStreamDestination = 636, | |
| 579 AudioContextCreateMediaStreamSource = 637, | |
| 580 AudioContextCreateOscillator = 638, | |
| 581 AudioContextCreatePanner = 639, | |
| 582 AudioContextCreatePeriodicWave = 640, | |
| 583 AudioContextCreateScriptProcessor = 641, | |
| 584 AudioContextCreateStereoPanner = 642, | |
| 585 AudioContextCreateWaveShaper = 643, | |
| 586 AudioContextDecodeAudioData = 644, | |
| 587 AudioContextResume = 645, | |
| 588 AudioContextSuspend = 646, | |
| 589 AudioContext = 647, | |
| 590 OfflineAudioContext = 648, | |
| 591 PrefixedAudioContext = 649, | |
| 592 PrefixedOfflineAudioContext = 650, | |
| 568 | 593 |
| 569 // Add new features immediately above this line. Don't change assigned | 594 // Add new features immediately above this line. Don't change assigned |
| 570 // numbers of any item, and don't reuse removed slots. | 595 // numbers of any item, and don't reuse removed slots. |
| 571 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/ | 596 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/ |
| 572 // to update the UMA mapping. | 597 // to update the UMA mapping. |
|
Ken Russell (switch to Gerrit)
2014/12/17 00:44:30
Please make sure to do this after this lands.
| |
| 573 NumberOfFeatures, // This enum value must be last. | 598 NumberOfFeatures, // This enum value must be last. |
| 574 }; | 599 }; |
| 575 | 600 |
| 576 // "count" sets the bit for this feature to 1. Repeated calls are ignored. | 601 // "count" sets the bit for this feature to 1. Repeated calls are ignored. |
| 577 static void count(const Frame*, Feature); | 602 static void count(const Frame*, Feature); |
| 578 static void count(const Document&, Feature); | 603 static void count(const Document&, Feature); |
| 579 // This doesn't count for ExecutionContexts for shared workers and service | 604 // This doesn't count for ExecutionContexts for shared workers and service |
| 580 // workers. | 605 // workers. |
| 581 static void count(const ExecutionContext*, Feature); | 606 static void count(const ExecutionContext*, Feature); |
| 582 // Use countIfNotPrivateScript() instead of count() if you don't want | 607 // Use countIfNotPrivateScript() instead of count() if you don't want |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 641 | 666 |
| 642 void updateMeasurements(); | 667 void updateMeasurements(); |
| 643 | 668 |
| 644 OwnPtr<BitVector> m_countBits; | 669 OwnPtr<BitVector> m_countBits; |
| 645 BitVector m_CSSFeatureBits; | 670 BitVector m_CSSFeatureBits; |
| 646 }; | 671 }; |
| 647 | 672 |
| 648 } // namespace blink | 673 } // namespace blink |
| 649 | 674 |
| 650 #endif // UseCounter_h | 675 #endif // UseCounter_h |
| OLD | NEW |