| 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 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 609 | 609 |
| 610 DeviceMotionInsecureOrigin = 668, | 610 DeviceMotionInsecureOrigin = 668, |
| 611 DeviceMotionSecureOrigin = 669, | 611 DeviceMotionSecureOrigin = 669, |
| 612 DeviceOrientationInsecureOrigin = 670, | 612 DeviceOrientationInsecureOrigin = 670, |
| 613 DeviceOrientationSecureOrigin = 671, | 613 DeviceOrientationSecureOrigin = 671, |
| 614 SandboxViaIFrame = 672, | 614 SandboxViaIFrame = 672, |
| 615 SandboxViaCSP = 673, | 615 SandboxViaCSP = 673, |
| 616 BlockedSniffingImageToScript = 674, | 616 BlockedSniffingImageToScript = 674, |
| 617 Fetch = 675, | 617 Fetch = 675, |
| 618 FetchBodyStream = 676, | 618 FetchBodyStream = 676, |
| 619 XMLHttpRequestAsynchronous = 677, |
| 619 | 620 |
| 620 // Add new features immediately above this line. Don't change assigned | 621 // Add new features immediately above this line. Don't change assigned |
| 621 // numbers of any item, and don't reuse removed slots. | 622 // numbers of any item, and don't reuse removed slots. |
| 622 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ | 623 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ |
| 623 // to update the UMA mapping. | 624 // to update the UMA mapping. |
| 624 NumberOfFeatures, // This enum value must be last. | 625 NumberOfFeatures, // This enum value must be last. |
| 625 }; | 626 }; |
| 626 | 627 |
| 627 // "count" sets the bit for this feature to 1. Repeated calls are ignored. | 628 // "count" sets the bit for this feature to 1. Repeated calls are ignored. |
| 628 static void count(const Frame*, Feature); | 629 static void count(const Frame*, Feature); |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 692 | 693 |
| 693 void updateMeasurements(); | 694 void updateMeasurements(); |
| 694 | 695 |
| 695 OwnPtr<BitVector> m_countBits; | 696 OwnPtr<BitVector> m_countBits; |
| 696 BitVector m_CSSFeatureBits; | 697 BitVector m_CSSFeatureBits; |
| 697 }; | 698 }; |
| 698 | 699 |
| 699 } // namespace blink | 700 } // namespace blink |
| 700 | 701 |
| 701 #endif // UseCounter_h | 702 #endif // UseCounter_h |
| OLD | NEW |