| 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 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 481 RequestFileSystemSyncWorker = 510, | 481 RequestFileSystemSyncWorker = 510, |
| 482 UIEventLayerX = 511, | 482 UIEventLayerX = 511, |
| 483 UIEventLayerY = 512, | 483 UIEventLayerY = 512, |
| 484 UIEventPageX = 513, | 484 UIEventPageX = 513, |
| 485 UIEventPageY = 514, | 485 UIEventPageY = 514, |
| 486 BgPropertiesFixed = 515, | 486 BgPropertiesFixed = 515, |
| 487 HTMLImageElementComposite = 516, | 487 HTMLImageElementComposite = 516, |
| 488 DevToolsConsoleTimeline = 517, | 488 DevToolsConsoleTimeline = 517, |
| 489 DevToolsConsoleProfile = 518, | 489 DevToolsConsoleProfile = 518, |
| 490 SVGStyleElementTitle = 519, | 490 SVGStyleElementTitle = 519, |
| 491 PictureSourceSrc = 520, |
| 491 // Add new features immediately above this line. Don't change assigned | 492 // Add new features immediately above this line. Don't change assigned |
| 492 // numbers of any item, and don't reuse removed slots. | 493 // numbers of any item, and don't reuse removed slots. |
| 493 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ | 494 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ |
| 494 // to update the UMA mapping. | 495 // to update the UMA mapping. |
| 495 NumberOfFeatures, // This enum value must be last. | 496 NumberOfFeatures, // This enum value must be last. |
| 496 }; | 497 }; |
| 497 | 498 |
| 498 // "count" sets the bit for this feature to 1. Repeated calls are ignored. | 499 // "count" sets the bit for this feature to 1. Repeated calls are ignored. |
| 499 static void count(const Document&, Feature); | 500 static void count(const Document&, Feature); |
| 500 // This doesn't count for ExecutionContexts for shared workers and service | 501 // This doesn't count for ExecutionContexts for shared workers and service |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 551 | 552 |
| 552 void updateMeasurements(); | 553 void updateMeasurements(); |
| 553 | 554 |
| 554 OwnPtr<BitVector> m_countBits; | 555 OwnPtr<BitVector> m_countBits; |
| 555 BitVector m_CSSFeatureBits; | 556 BitVector m_CSSFeatureBits; |
| 556 }; | 557 }; |
| 557 | 558 |
| 558 } // namespace blink | 559 } // namespace blink |
| 559 | 560 |
| 560 #endif // UseCounter_h | 561 #endif // UseCounter_h |
| OLD | NEW |