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

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

Issue 1866343002: Measure usage of image/media/plugin/text documents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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 1108 matching lines...) Expand 10 before | Expand all | Expand 10 after
1119 V8Document_Links_AttributeGetter = 1300, 1119 V8Document_Links_AttributeGetter = 1300,
1120 V8Document_Forms_AttributeGetter = 1301, 1120 V8Document_Forms_AttributeGetter = 1301,
1121 V8Document_Scripts_AttributeGetter = 1302, 1121 V8Document_Scripts_AttributeGetter = 1302,
1122 V8Document_Anchors_AttributeGetter = 1303, 1122 V8Document_Anchors_AttributeGetter = 1303,
1123 V8Document_Applets_AttributeGetter = 1304, 1123 V8Document_Applets_AttributeGetter = 1304,
1124 XMLHttpRequestCrossOriginWithCredentials = 1305, 1124 XMLHttpRequestCrossOriginWithCredentials = 1305,
1125 MediaStreamTrackRemote = 1306, 1125 MediaStreamTrackRemote = 1306,
1126 V8Node_IsConnected_AttributeGetter = 1307, 1126 V8Node_IsConnected_AttributeGetter = 1307,
1127 ShadowRootDelegatesFocus = 1308, 1127 ShadowRootDelegatesFocus = 1308,
1128 MixedShadowRootV0AndV1 = 1309, 1128 MixedShadowRootV0AndV1 = 1309,
1129 ImageDocumentInFrame = 1310,
1130 MediaDocument = 1311,
1131 MediaDocumentInFrame = 1312,
1132 PluginDocument = 1313,
1133 PluginDocumentInFrame = 1314,
1134 SinkDocument = 1315,
1135 SinkDocumentInFrame = 1316,
1136 TextDocument = 1317,
1137 TextDocumentInFrame = 1318,
1138 ViewSourceDocument = 1319,
1129 1139
1130 // Add new features immediately above this line. Don't change assigned 1140 // Add new features immediately above this line. Don't change assigned
1131 // numbers of any item, and don't reuse removed slots. 1141 // numbers of any item, and don't reuse removed slots.
1132 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/ 1142 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/
1133 // to update the UMA mapping. 1143 // to update the UMA mapping.
1134 NumberOfFeatures, // This enum value must be last. 1144 NumberOfFeatures, // This enum value must be last.
1135 }; 1145 };
1136 1146
1137 // "count" sets the bit for this feature to 1. Repeated calls are ignored. 1147 // "count" sets the bit for this feature to 1. Repeated calls are ignored.
1138 static void count(const Frame*, Feature); 1148 static void count(const Frame*, Feature);
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
1213 friend class UseCounterTest; 1223 friend class UseCounterTest;
1214 static int m_muteCount; 1224 static int m_muteCount;
1215 1225
1216 CountBits m_countBits; 1226 CountBits m_countBits;
1217 BitVector m_CSSFeatureBits; 1227 BitVector m_CSSFeatureBits;
1218 }; 1228 };
1219 1229
1220 } // namespace blink 1230 } // namespace blink
1221 1231
1222 #endif // UseCounter_h 1232 #endif // UseCounter_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698