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

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

Issue 2079183002: Measure the usage of cross-origin modal dialogs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove { } around a single-line conditional body. Created 4 years, 6 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 1199 matching lines...) Expand 10 before | Expand all | Expand 10 after
1210 GetUserMediaPromise = 1402, 1210 GetUserMediaPromise = 1402,
1211 CSSFilterFunctionNoArguments = 1403, 1211 CSSFilterFunctionNoArguments = 1403,
1212 V8LegacyDateParser = 1404, 1212 V8LegacyDateParser = 1404,
1213 OpenSearchInsecureOriginInsecureTarget = 1405, 1213 OpenSearchInsecureOriginInsecureTarget = 1405,
1214 OpenSearchInsecureOriginSecureTarget = 1406, 1214 OpenSearchInsecureOriginSecureTarget = 1406,
1215 OpenSearchSecureOriginInsecureTarget = 1407, 1215 OpenSearchSecureOriginInsecureTarget = 1407,
1216 OpenSearchSecureOriginSecureTarget = 1408, 1216 OpenSearchSecureOriginSecureTarget = 1408,
1217 RegisterProtocolHandlerSecureOrigin = 1409, 1217 RegisterProtocolHandlerSecureOrigin = 1409,
1218 RegisterProtocolHandlerInsecureOrigin = 1410, 1218 RegisterProtocolHandlerInsecureOrigin = 1410,
1219 1219
1220 CrossOriginWindowAlert = 1411,
1221 CrossOriginWindowConfirm = 1412,
1222 CrossOriginWindowPrompt = 1413,
1223 CrossOriginWindowPrint = 1414,
1224
1220 // Add new features immediately above this line. Don't change assigned 1225 // Add new features immediately above this line. Don't change assigned
1221 // numbers of any item, and don't reuse removed slots. 1226 // numbers of any item, and don't reuse removed slots.
1222 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/ 1227 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/
1223 // to update the UMA mapping. 1228 // to update the UMA mapping.
1224 NumberOfFeatures, // This enum value must be last. 1229 NumberOfFeatures, // This enum value must be last.
1225 }; 1230 };
1226 1231
1227 // "count" sets the bit for this feature to 1. Repeated calls are ignored. 1232 // "count" sets the bit for this feature to 1. Repeated calls are ignored.
1228 static void count(const Frame*, Feature); 1233 static void count(const Frame*, Feature);
1229 static void count(const Document&, Feature); 1234 static void count(const Document&, Feature);
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
1303 friend class UseCounterTest; 1308 friend class UseCounterTest;
1304 static int m_muteCount; 1309 static int m_muteCount;
1305 1310
1306 CountBits m_countBits; 1311 CountBits m_countBits;
1307 BitVector m_CSSFeatureBits; 1312 BitVector m_CSSFeatureBits;
1308 }; 1313 };
1309 1314
1310 } // namespace blink 1315 } // namespace blink
1311 1316
1312 #endif // UseCounter_h 1317 #endif // UseCounter_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/LocalDOMWindow.cpp ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698