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

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

Issue 1219463004: Add a use counter for HTMLFrameElement.getSVGDocument() (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
« no previous file with comments | « no previous file | Source/core/html/HTMLFrameElement.idl » ('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 752 matching lines...) Expand 10 before | Expand all | Expand 10 after
763 V8DeviceMotionEvent_InitDeviceMotionEvent_Method = 865, 763 V8DeviceMotionEvent_InitDeviceMotionEvent_Method = 865,
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 774
774 // Add new features immediately above this line. Don't change assigned 775 // Add new features immediately above this line. Don't change assigned
775 // numbers of any item, and don't reuse removed slots. 776 // numbers of any item, and don't reuse removed slots.
776 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/ 777 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/
777 // to update the UMA mapping. 778 // to update the UMA mapping.
778 NumberOfFeatures, // This enum value must be last. 779 NumberOfFeatures, // This enum value must be last.
779 }; 780 };
780 781
781 // "count" sets the bit for this feature to 1. Repeated calls are ignored. 782 // "count" sets the bit for this feature to 1. Repeated calls are ignored.
782 static void count(const Frame*, Feature); 783 static void count(const Frame*, Feature);
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
866 867
867 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR ecordedMeasurement(feature); } 868 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR ecordedMeasurement(feature); }
868 869
869 CountBits m_countBits; 870 CountBits m_countBits;
870 BitVector m_CSSFeatureBits; 871 BitVector m_CSSFeatureBits;
871 }; 872 };
872 873
873 } // namespace blink 874 } // namespace blink
874 875
875 #endif // UseCounter_h 876 #endif // UseCounter_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/html/HTMLFrameElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698