OLD | NEW |
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 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 PrefixedAudioDecodedByteCount, | 226 PrefixedAudioDecodedByteCount, |
227 PrefixedVideoDecodedByteCount, | 227 PrefixedVideoDecodedByteCount, |
228 PrefixedVideoSupportsFullscreen, | 228 PrefixedVideoSupportsFullscreen, |
229 PrefixedVideoDisplayingFullscreen, | 229 PrefixedVideoDisplayingFullscreen, |
230 PrefixedVideoEnterFullscreen, | 230 PrefixedVideoEnterFullscreen, |
231 PrefixedVideoExitFullscreen, | 231 PrefixedVideoExitFullscreen, |
232 PrefixedVideoEnterFullScreen, | 232 PrefixedVideoEnterFullScreen, |
233 PrefixedVideoExitFullScreen, | 233 PrefixedVideoExitFullScreen, |
234 PrefixedVideoDecodedFrameCount, | 234 PrefixedVideoDecodedFrameCount, |
235 PrefixedVideoDroppedFrameCount, | 235 PrefixedVideoDroppedFrameCount, |
| 236 SourceElementCandidate, |
| 237 SourceElementNonMatchingMedia, |
236 // Add new features immediately above this line. Don't change assigned | 238 // Add new features immediately above this line. Don't change assigned |
237 // numbers of each items, and don't reuse unused slots. | 239 // numbers of each items, and don't reuse unused slots. |
238 NumberOfFeatures, // This enum value must be last. | 240 NumberOfFeatures, // This enum value must be last. |
239 }; | 241 }; |
240 | 242 |
241 // "count" sets the bit for this feature to 1. Repeated calls are ignored. | 243 // "count" sets the bit for this feature to 1. Repeated calls are ignored. |
242 static void count(const Document&, Feature); | 244 static void count(const Document&, Feature); |
243 static void count(const DOMWindow*, Feature); | 245 static void count(const DOMWindow*, Feature); |
244 void count(CSSParserContext, CSSPropertyID); | 246 void count(CSSParserContext, CSSPropertyID); |
245 void count(Feature); | 247 void count(Feature); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 | 283 |
282 void updateMeasurements(); | 284 void updateMeasurements(); |
283 | 285 |
284 OwnPtr<BitVector> m_countBits; | 286 OwnPtr<BitVector> m_countBits; |
285 BitVector m_CSSFeatureBits; | 287 BitVector m_CSSFeatureBits; |
286 }; | 288 }; |
287 | 289 |
288 } // namespace WebCore | 290 } // namespace WebCore |
289 | 291 |
290 #endif // UseCounter_h | 292 #endif // UseCounter_h |
OLD | NEW |