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

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

Issue 2621043002: Add UserCounter for Top Navigation in sandbox (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « third_party/WebKit/Source/core/frame/Frame.cpp ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1376 matching lines...) Expand 10 before | Expand all | Expand 10 after
1387 TouchEventPreventedForcedDocumentPassiveNoTouchAction = 1683, 1387 TouchEventPreventedForcedDocumentPassiveNoTouchAction = 1683,
1388 V8Event_StopPropagation_Method = 1684, 1388 V8Event_StopPropagation_Method = 1684,
1389 V8Event_StopImmediatePropagation_Method = 1685, 1389 V8Event_StopImmediatePropagation_Method = 1685,
1390 ImageCaptureConstructor = 1686, 1390 ImageCaptureConstructor = 1686,
1391 V8Document_RootScroller_AttributeGetter = 1687, 1391 V8Document_RootScroller_AttributeGetter = 1687,
1392 V8Document_RootScroller_AttributeSetter = 1688, 1392 V8Document_RootScroller_AttributeSetter = 1688,
1393 CustomElementRegistryDefine = 1689, 1393 CustomElementRegistryDefine = 1689,
1394 LinkHeaderServiceWorker = 1690, 1394 LinkHeaderServiceWorker = 1690,
1395 CSSShadowPiercingDescendantCombinator = 1691, 1395 CSSShadowPiercingDescendantCombinator = 1691,
1396 FullscreenAllowedByOrientationChange = 1696, 1396 FullscreenAllowedByOrientationChange = 1696,
1397 1397 TopNavInSandbox = 1749,
1398 TopNavInSandboxWithoutGesture = 1750,
1399 TopNavInSandboxWithPerm = 1751,
1400 TopNavInSandboxWithPermButNoGesture = 1752,
1401
1398 // Add new features immediately above this line. Don't change assigned 1402 // Add new features immediately above this line. Don't change assigned
1399 // numbers of any item, and don't reuse removed slots. 1403 // numbers of any item, and don't reuse removed slots.
1400 // Also, run update_use_counter_feature_enum.py in 1404 // Also, run update_use_counter_feature_enum.py in
1401 // chromium/src/tools/metrics/histograms/ to update the UMA mapping. 1405 // chromium/src/tools/metrics/histograms/ to update the UMA mapping.
1402 NumberOfFeatures, // This enum value must be last. 1406 NumberOfFeatures, // This enum value must be last.
1403 }; 1407 };
1404 1408
1405 // "count" sets the bit for this feature to 1. Repeated calls are ignored. 1409 // "count" sets the bit for this feature to 1. Repeated calls are ignored.
1406 static void count(const Frame*, Feature); 1410 static void count(const Frame*, Feature);
1407 static void count(const Document&, Feature); 1411 static void count(const Document&, Feature);
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
1475 // Tracks what features/properties need to be reported to the legacy 1479 // Tracks what features/properties need to be reported to the legacy
1476 // histograms. 1480 // histograms.
1477 BitVector m_featureBits; 1481 BitVector m_featureBits;
1478 BitVector m_CSSBits; 1482 BitVector m_CSSBits;
1479 } m_legacyCounter; 1483 } m_legacyCounter;
1480 }; 1484 };
1481 1485
1482 } // namespace blink 1486 } // namespace blink
1483 1487
1484 #endif // UseCounter_h 1488 #endif // UseCounter_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/Frame.cpp ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698