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

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

Issue 2260103003: CSP: Experimentally harden against nonce-stealing injections. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: yoav@ 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 1289 matching lines...) Expand 10 before | Expand all | Expand 10 after
1300 UsbDeviceTransferIn = 1530, 1300 UsbDeviceTransferIn = 1530,
1301 UsbDeviceTransferOut = 1531, 1301 UsbDeviceTransferOut = 1531,
1302 UsbDeviceIsochronousTransferIn = 1532, 1302 UsbDeviceIsochronousTransferIn = 1532,
1303 UsbDeviceIsochronousTransferOut = 1533, 1303 UsbDeviceIsochronousTransferOut = 1533,
1304 UsbDeviceReset = 1534, 1304 UsbDeviceReset = 1534,
1305 PointerEnterLeaveFired = 1535, 1305 PointerEnterLeaveFired = 1535,
1306 PointerOverOutFired = 1536, 1306 PointerOverOutFired = 1536,
1307 PointerEnterLeaveFiredWhileCaptured = 1537, 1307 PointerEnterLeaveFiredWhileCaptured = 1537,
1308 PointerOverOutFiredWhileCaptured = 1538, 1308 PointerOverOutFiredWhileCaptured = 1538,
1309 DraggableAttribute = 1539, 1309 DraggableAttribute = 1539,
1310 CleanScriptElementWithNonce = 1540,
1311 PotentiallyInjectedScriptElementWithNonce = 1541,
1310 1312
1311 // Add new features immediately above this line. Don't change assigned 1313 // Add new features immediately above this line. Don't change assigned
1312 // numbers of any item, and don't reuse removed slots. 1314 // numbers of any item, and don't reuse removed slots.
1313 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/ 1315 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/
1314 // to update the UMA mapping. 1316 // to update the UMA mapping.
1315 NumberOfFeatures, // This enum value must be last. 1317 NumberOfFeatures, // This enum value must be last.
1316 }; 1318 };
1317 1319
1318 // "count" sets the bit for this feature to 1. Repeated calls are ignored. 1320 // "count" sets the bit for this feature to 1. Repeated calls are ignored.
1319 static void count(const Frame*, Feature); 1321 static void count(const Frame*, Feature);
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
1363 friend class UseCounterTest; 1365 friend class UseCounterTest;
1364 unsigned m_muteCount; 1366 unsigned m_muteCount;
1365 1367
1366 BitVector m_featureBits; 1368 BitVector m_featureBits;
1367 BitVector m_CSSFeatureBits; 1369 BitVector m_CSSFeatureBits;
1368 }; 1370 };
1369 1371
1370 } // namespace blink 1372 } // namespace blink
1371 1373
1372 #endif // UseCounter_h 1374 #endif // UseCounter_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/ScriptLoader.cpp ('k') | third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698