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

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

Issue 2682223006: Add a use counter and histogram to FileReaderSync. (Closed)
Patch Set: add new histogram to histograms.xml Created 3 years, 10 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 1440 matching lines...) Expand 10 before | Expand all | Expand 10 after
1451 CSSValueUserModifyReadOnly = 1798, 1451 CSSValueUserModifyReadOnly = 1798,
1452 CSSValueUserModifyReadWrite = 1799, 1452 CSSValueUserModifyReadWrite = 1799,
1453 CSSValueUserModifyReadWritePlaintextOnly = 1800, 1453 CSSValueUserModifyReadWritePlaintextOnly = 1800,
1454 V8TextDetector_Detect_Method = 1801, 1454 V8TextDetector_Detect_Method = 1801,
1455 CSSValueOnDemand = 1802, 1455 CSSValueOnDemand = 1802,
1456 ServiceWorkerNavigationPreload = 1803, 1456 ServiceWorkerNavigationPreload = 1803,
1457 FullscreenRequestWithPendingElement = 1804, 1457 FullscreenRequestWithPendingElement = 1804,
1458 HTMLIFrameElementAllowfullscreenAttributeSetAfterContentLoad = 1805, 1458 HTMLIFrameElementAllowfullscreenAttributeSetAfterContentLoad = 1805,
1459 PointerEventSetCaptureOutsideDispatch = 1806, 1459 PointerEventSetCaptureOutsideDispatch = 1806,
1460 NotificationPermissionRequestedInsecureOrigin = 1807, 1460 NotificationPermissionRequestedInsecureOrigin = 1807,
1461 V8FileReaderSync_Constructor = 1808,
kinuko 2017/02/10 00:41:38 nit: I think just using the class name as its pref
Marijn Kruisselbrink 2017/02/10 17:42:53 V8FileReaderSync is what the "Measure" idl extende
1461 1462
1462 // Add new features immediately above this line. Don't change assigned 1463 // Add new features immediately above this line. Don't change assigned
1463 // numbers of any item, and don't reuse removed slots. 1464 // numbers of any item, and don't reuse removed slots.
1464 // Also, run update_use_counter_feature_enum.py in 1465 // Also, run update_use_counter_feature_enum.py in
1465 // chromium/src/tools/metrics/histograms/ to update the UMA mapping. 1466 // chromium/src/tools/metrics/histograms/ to update the UMA mapping.
1466 NumberOfFeatures, // This enum value must be last. 1467 NumberOfFeatures, // This enum value must be last.
1467 }; 1468 };
1468 1469
1469 // "count" sets the bit for this feature to 1. Repeated calls are ignored. 1470 // "count" sets the bit for this feature to 1. Repeated calls are ignored.
1470 static void count(const Frame*, Feature); 1471 static void count(const Frame*, Feature);
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
1539 // Tracks what features/properties need to be reported to the legacy 1540 // Tracks what features/properties need to be reported to the legacy
1540 // histograms. 1541 // histograms.
1541 BitVector m_featureBits; 1542 BitVector m_featureBits;
1542 BitVector m_CSSBits; 1543 BitVector m_CSSBits;
1543 } m_legacyCounter; 1544 } m_legacyCounter;
1544 }; 1545 };
1545 1546
1546 } // namespace blink 1547 } // namespace blink
1547 1548
1548 #endif // UseCounter_h 1549 #endif // UseCounter_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698