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 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
494 RequestFileSystemWorker = 509, | 494 RequestFileSystemWorker = 509, |
495 RequestFileSystemSyncWorker = 510, | 495 RequestFileSystemSyncWorker = 510, |
496 UIEventLayerX = 511, | 496 UIEventLayerX = 511, |
497 UIEventLayerY = 512, | 497 UIEventLayerY = 512, |
498 UIEventPageX = 513, | 498 UIEventPageX = 513, |
499 UIEventPageY = 514, | 499 UIEventPageY = 514, |
500 BgPropertiesFixed = 515, | 500 BgPropertiesFixed = 515, |
501 HTMLImageElementComposite = 516, | 501 HTMLImageElementComposite = 516, |
502 DevToolsConsoleTimeline = 517, | 502 DevToolsConsoleTimeline = 517, |
503 DevToolsConsoleProfile = 518, | 503 DevToolsConsoleProfile = 518, |
| 504 SVGStyleElementTitle = 519, |
504 // Add new features immediately above this line. Don't change assigned | 505 // Add new features immediately above this line. Don't change assigned |
505 // numbers of any item, and don't reuse removed slots. | 506 // numbers of any item, and don't reuse removed slots. |
506 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ | 507 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ |
507 // to update the UMA mapping. | 508 // to update the UMA mapping. |
508 NumberOfFeatures, // This enum value must be last. | 509 NumberOfFeatures, // This enum value must be last. |
509 }; | 510 }; |
510 | 511 |
511 // "count" sets the bit for this feature to 1. Repeated calls are ignored. | 512 // "count" sets the bit for this feature to 1. Repeated calls are ignored. |
512 static void count(const Document&, Feature); | 513 static void count(const Document&, Feature); |
513 // This doesn't count for ExecutionContexts for shared workers and service | 514 // This doesn't count for ExecutionContexts for shared workers and service |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
564 | 565 |
565 void updateMeasurements(); | 566 void updateMeasurements(); |
566 | 567 |
567 OwnPtr<BitVector> m_countBits; | 568 OwnPtr<BitVector> m_countBits; |
568 BitVector m_CSSFeatureBits; | 569 BitVector m_CSSFeatureBits; |
569 }; | 570 }; |
570 | 571 |
571 } // namespace blink | 572 } // namespace blink |
572 | 573 |
573 #endif // UseCounter_h | 574 #endif // UseCounter_h |
OLD | NEW |