| 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 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 490 // The above items are available in M38 branch. | 490 // The above items are available in M38 branch. |
| 491 | 491 |
| 492 Picture = 521, | 492 Picture = 521, |
| 493 Sizes = 522, | 493 Sizes = 522, |
| 494 SrcsetXDescriptor = 523, | 494 SrcsetXDescriptor = 523, |
| 495 SrcsetWDescriptor = 524, | 495 SrcsetWDescriptor = 524, |
| 496 SelectionContainsNode = 525, | 496 SelectionContainsNode = 525, |
| 497 MediaStreamEnded = 526, | 497 MediaStreamEnded = 526, |
| 498 MixedContentPrivateIPInPublicWebsitePassive = 527, | 498 MixedContentPrivateIPInPublicWebsitePassive = 527, |
| 499 MixedContentPrivateIPInPublicWebsiteActive = 528, | 499 MixedContentPrivateIPInPublicWebsiteActive = 528, |
| 500 XMLExternalResourceLoad = 529, |
| 501 |
| 500 // Add new features immediately above this line. Don't change assigned | 502 // Add new features immediately above this line. Don't change assigned |
| 501 // numbers of any item, and don't reuse removed slots. | 503 // numbers of any item, and don't reuse removed slots. |
| 502 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ | 504 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ |
| 503 // to update the UMA mapping. | 505 // to update the UMA mapping. |
| 504 NumberOfFeatures, // This enum value must be last. | 506 NumberOfFeatures, // This enum value must be last. |
| 505 }; | 507 }; |
| 506 | 508 |
| 507 // "count" sets the bit for this feature to 1. Repeated calls are ignored. | 509 // "count" sets the bit for this feature to 1. Repeated calls are ignored. |
| 508 static void count(const Document&, Feature); | 510 static void count(const Document&, Feature); |
| 509 // This doesn't count for ExecutionContexts for shared workers and service | 511 // This doesn't count for ExecutionContexts for shared workers and service |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 560 | 562 |
| 561 void updateMeasurements(); | 563 void updateMeasurements(); |
| 562 | 564 |
| 563 OwnPtr<BitVector> m_countBits; | 565 OwnPtr<BitVector> m_countBits; |
| 564 BitVector m_CSSFeatureBits; | 566 BitVector m_CSSFeatureBits; |
| 565 }; | 567 }; |
| 566 | 568 |
| 567 } // namespace blink | 569 } // namespace blink |
| 568 | 570 |
| 569 #endif // UseCounter_h | 571 #endif // UseCounter_h |
| OLD | NEW |