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

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

Issue 1219673003: Sync core/timing/ interfaces with their specs, or lack thereof (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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 | Annotate | Revision Log
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 753 matching lines...) Expand 10 before | Expand all | Expand 10 after
764 V8DeviceOrientationEvent_InitDeviceOrientationEvent_Method = 866, 764 V8DeviceOrientationEvent_InitDeviceOrientationEvent_Method = 866,
765 V8Event_InitEvent_Method = 867, 765 V8Event_InitEvent_Method = 867,
766 V8KeyboardEvent_InitKeyboardEvent_Method = 868, 766 V8KeyboardEvent_InitKeyboardEvent_Method = 868,
767 V8MouseEvent_InitMouseEvent_Method = 869, 767 V8MouseEvent_InitMouseEvent_Method = 869,
768 V8MutationEvent_InitMutationEvent_Method = 870, 768 V8MutationEvent_InitMutationEvent_Method = 870,
769 V8StorageEvent_InitStorageEvent_Method = 871, 769 V8StorageEvent_InitStorageEvent_Method = 871,
770 V8TouchEvent_InitTouchEvent_Method = 872, 770 V8TouchEvent_InitTouchEvent_Method = 872,
771 V8UIEvent_InitUIEvent_Method = 873, 771 V8UIEvent_InitUIEvent_Method = 873,
772 V8Document_CreateTouch_Method = 874, 772 V8Document_CreateTouch_Method = 874,
773 V8HTMLFrameElement_GetSVGDocument_Method = 875, 773 V8HTMLFrameElement_GetSVGDocument_Method = 875,
774 V8Console_Memory_AttributeGetter = 876,
775 V8Console_Memory_AttributeSetter = 877,
776 V8MemoryInfo_TotalJSHeapSize_AttributeGetter = 878,
777 V8MemoryInfo_UsedJSHeapSize_AttributeGetter = 879,
778 V8MemoryInfo_JSHeapSizeLimit_AttributeGetter = 880,
779 V8Performance_Timing_AttributeGetter = 881,
780 V8Performance_Navigation_AttributeGetter = 882,
781 V8Performance_Memory_AttributeGetter = 883,
782 V8SharedWorker_WorkerStart_AttributeGetter = 884,
774 783
775 // Add new features immediately above this line. Don't change assigned 784 // Add new features immediately above this line. Don't change assigned
776 // numbers of any item, and don't reuse removed slots. 785 // numbers of any item, and don't reuse removed slots.
777 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/ 786 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/
778 // to update the UMA mapping. 787 // to update the UMA mapping.
779 NumberOfFeatures, // This enum value must be last. 788 NumberOfFeatures, // This enum value must be last.
780 }; 789 };
781 790
782 // "count" sets the bit for this feature to 1. Repeated calls are ignored. 791 // "count" sets the bit for this feature to 1. Repeated calls are ignored.
783 static void count(const Frame*, Feature); 792 static void count(const Frame*, Feature);
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
867 876
868 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR ecordedMeasurement(feature); } 877 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR ecordedMeasurement(feature); }
869 878
870 CountBits m_countBits; 879 CountBits m_countBits;
871 BitVector m_CSSFeatureBits; 880 BitVector m_CSSFeatureBits;
872 }; 881 };
873 882
874 } // namespace blink 883 } // namespace blink
875 884
876 #endif // UseCounter_h 885 #endif // UseCounter_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698