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