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

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

Issue 670893003: Add window.postMessage() use counters. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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 526 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 NotificationShowEvent = 565, 537 NotificationShowEvent = 565,
538 CSSXGetComputedStyleQueries = 566, 538 CSSXGetComputedStyleQueries = 566,
539 SVG1DOM = 567, 539 SVG1DOM = 567,
540 SVGPathSegDOM = 568, 540 SVGPathSegDOM = 568,
541 SVGTransformListConsolidate = 569, 541 SVGTransformListConsolidate = 569,
542 SVGAnimatedTransformListBaseVal = 570, 542 SVGAnimatedTransformListBaseVal = 570,
543 QuotedAnimationName = 571, 543 QuotedAnimationName = 571,
544 QuotedKeyframesRule = 572, 544 QuotedKeyframesRule = 572,
545 SrcsetDroppedCandidate = 573, 545 SrcsetDroppedCandidate = 573,
546 546
547 WindowPostMessage = 574,
548 WindowPostMessageWithLegacyTargetOriginArgument = 575,
549
547 // Add new features immediately above this line. Don't change assigned 550 // Add new features immediately above this line. Don't change assigned
548 // numbers of any item, and don't reuse removed slots. 551 // numbers of any item, and don't reuse removed slots.
549 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/ 552 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/
550 // to update the UMA mapping. 553 // to update the UMA mapping.
551 NumberOfFeatures, // This enum value must be last. 554 NumberOfFeatures, // This enum value must be last.
552 }; 555 };
553 556
554 // "count" sets the bit for this feature to 1. Repeated calls are ignored. 557 // "count" sets the bit for this feature to 1. Repeated calls are ignored.
555 static void count(const Document&, Feature); 558 static void count(const Document&, Feature);
556 // This doesn't count for ExecutionContexts for shared workers and service 559 // This doesn't count for ExecutionContexts for shared workers and service
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
617 620
618 void updateMeasurements(); 621 void updateMeasurements();
619 622
620 OwnPtr<BitVector> m_countBits; 623 OwnPtr<BitVector> m_countBits;
621 BitVector m_CSSFeatureBits; 624 BitVector m_CSSFeatureBits;
622 }; 625 };
623 626
624 } // namespace blink 627 } // namespace blink
625 628
626 #endif // UseCounter_h 629 #endif // UseCounter_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698