| 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 1406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1417 PromptEngagementMinimal = 1744, | 1417 PromptEngagementMinimal = 1744, |
| 1418 PromptEngagementLow = 1745, | 1418 PromptEngagementLow = 1745, |
| 1419 PromptEngagementMedium = 1746, | 1419 PromptEngagementMedium = 1746, |
| 1420 PromptEngagementHigh = 1747, | 1420 PromptEngagementHigh = 1747, |
| 1421 PromptEngagementMax = 1748, | 1421 PromptEngagementMax = 1748, |
| 1422 TopNavInSandbox = 1749, | 1422 TopNavInSandbox = 1749, |
| 1423 TopNavInSandboxWithoutGesture = 1750, | 1423 TopNavInSandboxWithoutGesture = 1750, |
| 1424 TopNavInSandboxWithPerm = 1751, | 1424 TopNavInSandboxWithPerm = 1751, |
| 1425 TopNavInSandboxWithPermButNoGesture = 1752, | 1425 TopNavInSandboxWithPermButNoGesture = 1752, |
| 1426 ReferrerPolicyHeader = 1753, | 1426 ReferrerPolicyHeader = 1753, |
| 1427 HTMLAnchorElementReferrerPolicyAttribute = 1754, |
| 1428 HTMLIFrameElementReferrerPolicyAttribute = 1755, |
| 1429 HTMLImageElementReferrerPolicyAttribute = 1756, |
| 1430 HTMLLinkElementReferrerPolicyAttribute = 1757, |
| 1427 | 1431 |
| 1428 // Add new features immediately above this line. Don't change assigned | 1432 // Add new features immediately above this line. Don't change assigned |
| 1429 // numbers of any item, and don't reuse removed slots. | 1433 // numbers of any item, and don't reuse removed slots. |
| 1430 // Also, run update_use_counter_feature_enum.py in | 1434 // Also, run update_use_counter_feature_enum.py in |
| 1431 // chromium/src/tools/metrics/histograms/ to update the UMA mapping. | 1435 // chromium/src/tools/metrics/histograms/ to update the UMA mapping. |
| 1432 NumberOfFeatures, // This enum value must be last. | 1436 NumberOfFeatures, // This enum value must be last. |
| 1433 }; | 1437 }; |
| 1434 | 1438 |
| 1435 // "count" sets the bit for this feature to 1. Repeated calls are ignored. | 1439 // "count" sets the bit for this feature to 1. Repeated calls are ignored. |
| 1436 static void count(const Frame*, Feature); | 1440 static void count(const Frame*, Feature); |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1505 // Tracks what features/properties need to be reported to the legacy | 1509 // Tracks what features/properties need to be reported to the legacy |
| 1506 // histograms. | 1510 // histograms. |
| 1507 BitVector m_featureBits; | 1511 BitVector m_featureBits; |
| 1508 BitVector m_CSSBits; | 1512 BitVector m_CSSBits; |
| 1509 } m_legacyCounter; | 1513 } m_legacyCounter; |
| 1510 }; | 1514 }; |
| 1511 | 1515 |
| 1512 } // namespace blink | 1516 } // namespace blink |
| 1513 | 1517 |
| 1514 #endif // UseCounter_h | 1518 #endif // UseCounter_h |
| OLD | NEW |