Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(53)

Side by Side Diff: third_party/WebKit/Source/core/frame/UseCounter.h

Issue 2330353007: Add usage counters to XSSAuditor. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 1278 matching lines...) Expand 10 before | Expand all | Expand 10 after
1289 MetaRefresh = 1548, 1289 MetaRefresh = 1548,
1290 MetaSetCookieWhenCSPBlocksInlineScript = 1549, 1290 MetaSetCookieWhenCSPBlocksInlineScript = 1549,
1291 MetaRefreshWhenCSPBlocksInlineScript = 1550, 1291 MetaRefreshWhenCSPBlocksInlineScript = 1550,
1292 MiddleClickAutoscrollStart = 1551, 1292 MiddleClickAutoscrollStart = 1551,
1293 ClipCssOfFixedPositionElement = 1552, 1293 ClipCssOfFixedPositionElement = 1552,
1294 RTCPeerConnectionCreateOfferOptionsOfferToReceive = 1553, 1294 RTCPeerConnectionCreateOfferOptionsOfferToReceive = 1553,
1295 DragAndDropScrollStart = 1554, 1295 DragAndDropScrollStart = 1554,
1296 PresentationConnectionListConnectionAvailableEventListener = 1555, 1296 PresentationConnectionListConnectionAvailableEventListener = 1555,
1297 WebAudioAutoplayCrossOriginIframe = 1556, 1297 WebAudioAutoplayCrossOriginIframe = 1556,
1298 ScriptInvalidTypeOrLanguage = 1557, 1298 ScriptInvalidTypeOrLanguage = 1557,
1299 XSSAuditorBlockedScript = 1558,
1300 XSSAuditorBlockedScriptAndEntirePage = 1559,
Tom Sepez 2016/09/15 16:39:08 nit: maybe just call this XSSAuditorBlockedEntireP
1301 XSSAuditorDisabled = 1560,
1302 XSSAuditorEnabledFilter = 1561,
1303 XSSAuditorEnabledBlock = 1562,
1304
1299 // Add new features immediately above this line. Don't change assigned 1305 // Add new features immediately above this line. Don't change assigned
1300 // numbers of any item, and don't reuse removed slots. 1306 // numbers of any item, and don't reuse removed slots.
1301 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/ 1307 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/
1302 // to update the UMA mapping. 1308 // to update the UMA mapping.
1303 NumberOfFeatures, // This enum value must be last. 1309 NumberOfFeatures, // This enum value must be last.
1304 }; 1310 };
1305 1311
1306 // "count" sets the bit for this feature to 1. Repeated calls are ignored. 1312 // "count" sets the bit for this feature to 1. Repeated calls are ignored.
1307 static void count(const Frame*, Feature); 1313 static void count(const Frame*, Feature);
1308 static void count(const Document&, Feature); 1314 static void count(const Document&, Feature);
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
1370 private: 1376 private:
1371 // Tracks what features/properties need to be reported to the legacy his tograms. 1377 // Tracks what features/properties need to be reported to the legacy his tograms.
1372 BitVector m_featureBits; 1378 BitVector m_featureBits;
1373 BitVector m_CSSBits; 1379 BitVector m_CSSBits;
1374 } m_legacyCounter; 1380 } m_legacyCounter;
1375 }; 1381 };
1376 1382
1377 } // namespace blink 1383 } // namespace blink
1378 1384
1379 #endif // UseCounter_h 1385 #endif // UseCounter_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698