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

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

Issue 166173002: Count Promise constructor callings. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 10 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 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 SVGSVGElementInDocument, 315 SVGSVGElementInDocument,
316 SVGDocumentRootElement, 316 SVGDocumentRootElement,
317 DocumentCreateEventOptionalArgument, 317 DocumentCreateEventOptionalArgument,
318 MediaErrorEncrypted, 318 MediaErrorEncrypted,
319 EventSourceURL, 319 EventSourceURL,
320 WebSocketURL, 320 WebSocketURL,
321 UnsafeEvalBlocksCSSOM, 321 UnsafeEvalBlocksCSSOM,
322 WorkerSubjectToCSP, 322 WorkerSubjectToCSP,
323 WorkerAllowedByChildBlockedByScript, 323 WorkerAllowedByChildBlockedByScript,
324 HTMLMediaElementControllerNotNull, 324 HTMLMediaElementControllerNotNull,
325 PromiseConstructor,
326 PromiseCast,
327 PromiseReject,
328 PromiseResolve,
325 // Add new features immediately above this line. Don't change assigned 329 // Add new features immediately above this line. Don't change assigned
326 // numbers of any item, and don't reuse removed slots. 330 // numbers of any item, and don't reuse removed slots.
327 NumberOfFeatures, // This enum value must be last. 331 NumberOfFeatures, // This enum value must be last.
328 }; 332 };
329 333
330 // "count" sets the bit for this feature to 1. Repeated calls are ignored. 334 // "count" sets the bit for this feature to 1. Repeated calls are ignored.
331 static void count(const Document&, Feature); 335 static void count(const Document&, Feature);
332 static void count(const ExecutionContext*, Feature); 336 static void count(const ExecutionContext*, Feature);
333 void count(CSSParserContext, CSSPropertyID); 337 void count(CSSParserContext, CSSPropertyID);
334 void count(Feature); 338 void count(Feature);
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 374
371 void updateMeasurements(); 375 void updateMeasurements();
372 376
373 OwnPtr<BitVector> m_countBits; 377 OwnPtr<BitVector> m_countBits;
374 BitVector m_CSSFeatureBits; 378 BitVector m_CSSFeatureBits;
375 }; 379 };
376 380
377 } // namespace WebCore 381 } // namespace WebCore
378 382
379 #endif // UseCounter_h 383 #endif // UseCounter_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698