| 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 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 485 BgPropertiesFixed = 515, | 485 BgPropertiesFixed = 515, |
| 486 HTMLImageElementComposite = 516, | 486 HTMLImageElementComposite = 516, |
| 487 DevToolsConsoleTimeline = 517, | 487 DevToolsConsoleTimeline = 517, |
| 488 DevToolsConsoleProfile = 518, | 488 DevToolsConsoleProfile = 518, |
| 489 SVGStyleElementTitle = 519, | 489 SVGStyleElementTitle = 519, |
| 490 PictureSourceSrc = 520, | 490 PictureSourceSrc = 520, |
| 491 Picture = 521, | 491 Picture = 521, |
| 492 Sizes = 522, | 492 Sizes = 522, |
| 493 SrcsetXDescriptor = 523, | 493 SrcsetXDescriptor = 523, |
| 494 SrcsetWDescriptor = 524, | 494 SrcsetWDescriptor = 524, |
| 495 SelectionContainsNode = 525, |
| 495 // Add new features immediately above this line. Don't change assigned | 496 // Add new features immediately above this line. Don't change assigned |
| 496 // numbers of any item, and don't reuse removed slots. | 497 // numbers of any item, and don't reuse removed slots. |
| 497 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ | 498 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ |
| 498 // to update the UMA mapping. | 499 // to update the UMA mapping. |
| 499 NumberOfFeatures, // This enum value must be last. | 500 NumberOfFeatures, // This enum value must be last. |
| 500 }; | 501 }; |
| 501 | 502 |
| 502 // "count" sets the bit for this feature to 1. Repeated calls are ignored. | 503 // "count" sets the bit for this feature to 1. Repeated calls are ignored. |
| 503 static void count(const Document&, Feature); | 504 static void count(const Document&, Feature); |
| 504 // This doesn't count for ExecutionContexts for shared workers and service | 505 // This doesn't count for ExecutionContexts for shared workers and service |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 555 | 556 |
| 556 void updateMeasurements(); | 557 void updateMeasurements(); |
| 557 | 558 |
| 558 OwnPtr<BitVector> m_countBits; | 559 OwnPtr<BitVector> m_countBits; |
| 559 BitVector m_CSSFeatureBits; | 560 BitVector m_CSSFeatureBits; |
| 560 }; | 561 }; |
| 561 | 562 |
| 562 } // namespace blink | 563 } // namespace blink |
| 563 | 564 |
| 564 #endif // UseCounter_h | 565 #endif // UseCounter_h |
| OLD | NEW |