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 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
499 MixedContentPrivateHostnameInPublicHostname = 530, | 499 MixedContentPrivateHostnameInPublicHostname = 530, |
500 LegacyProtocolEmbeddedAsSubresource = 531, | 500 LegacyProtocolEmbeddedAsSubresource = 531, |
501 RequestedSubresourceWithEmbeddedCredentials = 532, | 501 RequestedSubresourceWithEmbeddedCredentials = 532, |
502 NotificationCreated = 533, | 502 NotificationCreated = 533, |
503 NotificationClosed = 534, | 503 NotificationClosed = 534, |
504 NotificationPermissionRequested = 535, | 504 NotificationPermissionRequested = 535, |
505 MediaStreamLabel = 536, | 505 MediaStreamLabel = 536, |
506 MediaStreamStop = 537, | 506 MediaStreamStop = 537, |
507 ConsoleTimeline = 538, | 507 ConsoleTimeline = 538, |
508 ConsoleTimelineEnd = 539, | 508 ConsoleTimelineEnd = 539, |
509 | 509 SRIElementWithMatchingIntegrityAttribute = 540, |
| 510 SRIElementWithNonMatchingIntegrityAttribute = 541, |
| 511 SRIElementWithUnparsableIntegrityAttribute = 542, |
| 512 SRIElementWithIntegrityAttributeAndInsecureOrigin = 543, |
| 513 SRIElementWithIntegrityAttributeAndInsecureResource = 544, |
510 // Add new features immediately above this line. Don't change assigned | 514 // Add new features immediately above this line. Don't change assigned |
511 // numbers of any item, and don't reuse removed slots. | 515 // numbers of any item, and don't reuse removed slots. |
512 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ | 516 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ |
513 // to update the UMA mapping. | 517 // to update the UMA mapping. |
514 NumberOfFeatures, // This enum value must be last. | 518 NumberOfFeatures, // This enum value must be last. |
515 }; | 519 }; |
516 | 520 |
517 // "count" sets the bit for this feature to 1. Repeated calls are ignored. | 521 // "count" sets the bit for this feature to 1. Repeated calls are ignored. |
518 static void count(const Document&, Feature); | 522 static void count(const Document&, Feature); |
519 // This doesn't count for ExecutionContexts for shared workers and service | 523 // This doesn't count for ExecutionContexts for shared workers and service |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
570 | 574 |
571 void updateMeasurements(); | 575 void updateMeasurements(); |
572 | 576 |
573 OwnPtr<BitVector> m_countBits; | 577 OwnPtr<BitVector> m_countBits; |
574 BitVector m_CSSFeatureBits; | 578 BitVector m_CSSFeatureBits; |
575 }; | 579 }; |
576 | 580 |
577 } // namespace blink | 581 } // namespace blink |
578 | 582 |
579 #endif // UseCounter_h | 583 #endif // UseCounter_h |
OLD | NEW |