| 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 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 483 MapElement = 482, | 483 MapElement = 482, |
| 484 MeterElement = 483, | 484 MeterElement = 483, |
| 485 ProgressElement = 484, | 485 ProgressElement = 484, |
| 486 VideoFullscreenAllowedExemption = 485, | 486 VideoFullscreenAllowedExemption = 485, |
| 487 WebKitPoint = 488, | 487 WebKitPoint = 488, |
| 488 HTMLPreElementWidth = 489, | 488 HTMLPreElementWidth = 489, |
| 489 PrefixedHTMLElementDropzone = 490, | 489 PrefixedHTMLElementDropzone = 490, |
| 490 WheelEventWheelDeltaX = 491, | 490 WheelEventWheelDeltaX = 491, |
| 491 WheelEventWheelDeltaY = 492, | 491 WheelEventWheelDeltaY = 492, |
| 492 WheelEventWheelDelta = 493, | 492 WheelEventWheelDelta = 493, |
| 493 SendBeacon = 494, |
| 494 SendBeaconQuotaExceeded = 495, |
| 493 // Add new features immediately above this line. Don't change assigned | 495 // Add new features immediately above this line. Don't change assigned |
| 494 // numbers of any item, and don't reuse removed slots. | 496 // numbers of any item, and don't reuse removed slots. |
| 495 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ | 497 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ |
| 496 // to update the UMA mapping. | 498 // to update the UMA mapping. |
| 497 NumberOfFeatures, // This enum value must be last. | 499 NumberOfFeatures, // This enum value must be last. |
| 498 }; | 500 }; |
| 499 | 501 |
| 500 // "count" sets the bit for this feature to 1. Repeated calls are ignored. | 502 // "count" sets the bit for this feature to 1. Repeated calls are ignored. |
| 501 static void count(const Document&, Feature); | 503 static void count(const Document&, Feature); |
| 502 // This doesn't count for ExecutionContexts for shared workers and service | 504 // This doesn't count for ExecutionContexts for shared workers and service |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 553 | 555 |
| 554 void updateMeasurements(); | 556 void updateMeasurements(); |
| 555 | 557 |
| 556 OwnPtr<BitVector> m_countBits; | 558 OwnPtr<BitVector> m_countBits; |
| 557 BitVector m_CSSFeatureBits; | 559 BitVector m_CSSFeatureBits; |
| 558 }; | 560 }; |
| 559 | 561 |
| 560 } // namespace blink | 562 } // namespace blink |
| 561 | 563 |
| 562 #endif // UseCounter_h | 564 #endif // UseCounter_h |
| OLD | NEW |