| 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 1260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1271 | 1271 |
| 1272 PointerEnterLeaveFired = 1535, | 1272 PointerEnterLeaveFired = 1535, |
| 1273 PointerOverOutFired = 1536, | 1273 PointerOverOutFired = 1536, |
| 1274 PointerEnterLeaveFiredWhileCaptured = 1537, | 1274 PointerEnterLeaveFiredWhileCaptured = 1537, |
| 1275 PointerOverOutFiredWhileCaptured = 1538, | 1275 PointerOverOutFiredWhileCaptured = 1538, |
| 1276 DraggableAttribute = 1539, | 1276 DraggableAttribute = 1539, |
| 1277 CleanScriptElementWithNonce = 1540, | 1277 CleanScriptElementWithNonce = 1540, |
| 1278 PotentiallyInjectedScriptElementWithNonce = 1541, | 1278 PotentiallyInjectedScriptElementWithNonce = 1541, |
| 1279 PendingStylesheetAddedAfterBodyStarted = 1542, | 1279 PendingStylesheetAddedAfterBodyStarted = 1542, |
| 1280 UntrustedMouseDownEventDispatchedToSelect = 1543, | 1280 UntrustedMouseDownEventDispatchedToSelect = 1543, |
| 1281 BlockedSniffingAudioToScript = 1544, |
| 1282 BlockedSniffingVideoToScript = 1545, |
| 1283 BlockedSniffingCSVToScript = 1546, |
| 1281 | 1284 |
| 1282 // Add new features immediately above this line. Don't change assigned | 1285 // Add new features immediately above this line. Don't change assigned |
| 1283 // numbers of any item, and don't reuse removed slots. | 1286 // numbers of any item, and don't reuse removed slots. |
| 1284 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ | 1287 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me
trics/histograms/ |
| 1285 // to update the UMA mapping. | 1288 // to update the UMA mapping. |
| 1286 NumberOfFeatures, // This enum value must be last. | 1289 NumberOfFeatures, // This enum value must be last. |
| 1287 }; | 1290 }; |
| 1288 | 1291 |
| 1289 // "count" sets the bit for this feature to 1. Repeated calls are ignored. | 1292 // "count" sets the bit for this feature to 1. Repeated calls are ignored. |
| 1290 static void count(const Frame*, Feature); | 1293 static void count(const Frame*, Feature); |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1334 friend class UseCounterTest; | 1337 friend class UseCounterTest; |
| 1335 unsigned m_muteCount; | 1338 unsigned m_muteCount; |
| 1336 | 1339 |
| 1337 BitVector m_featureBits; | 1340 BitVector m_featureBits; |
| 1338 BitVector m_CSSFeatureBits; | 1341 BitVector m_CSSFeatureBits; |
| 1339 }; | 1342 }; |
| 1340 | 1343 |
| 1341 } // namespace blink | 1344 } // namespace blink |
| 1342 | 1345 |
| 1343 #endif // UseCounter_h | 1346 #endif // UseCounter_h |
| OLD | NEW |