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

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

Issue 825603005: AudioBufferSourceNode.buffer can only be set once. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use deprecation message instead of DOM error Created 5 years, 11 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
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 596 matching lines...) Expand 10 before | Expand all | Expand 10 after
607 GetUserMediaSecureOrigin = 667, 607 GetUserMediaSecureOrigin = 667,
608 DeviceMotionInsecureOrigin = 668, 608 DeviceMotionInsecureOrigin = 668,
609 DeviceMotionSecureOrigin = 669, 609 DeviceMotionSecureOrigin = 669,
610 DeviceOrientationInsecureOrigin = 670, 610 DeviceOrientationInsecureOrigin = 670,
611 DeviceOrientationSecureOrigin = 671, 611 DeviceOrientationSecureOrigin = 671,
612 SandboxViaIFrame = 672, 612 SandboxViaIFrame = 672,
613 SandboxViaCSP = 673, 613 SandboxViaCSP = 673,
614 BlockedSniffingImageToScript = 674, 614 BlockedSniffingImageToScript = 674,
615 Fetch = 675, 615 Fetch = 675,
616 FetchBodyStream = 676, 616 FetchBodyStream = 676,
617 AudioBufferSourceBufferOnce = 677,
617 618
618 // Add new features immediately above this line. Don't change assigned 619 // Add new features immediately above this line. Don't change assigned
619 // numbers of any item, and don't reuse removed slots. 620 // numbers of any item, and don't reuse removed slots.
620 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/ 621 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/
621 // to update the UMA mapping. 622 // to update the UMA mapping.
Ken Russell (switch to Gerrit) 2015/01/21 22:58:46 Don't forget to do this after committing.
622 NumberOfFeatures, // This enum value must be last. 623 NumberOfFeatures, // This enum value must be last.
623 }; 624 };
624 625
625 // "count" sets the bit for this feature to 1. Repeated calls are ignored. 626 // "count" sets the bit for this feature to 1. Repeated calls are ignored.
626 static void count(const Frame*, Feature); 627 static void count(const Frame*, Feature);
627 static void count(const Document&, Feature); 628 static void count(const Document&, Feature);
628 // This doesn't count for ExecutionContexts for shared workers and service 629 // This doesn't count for ExecutionContexts for shared workers and service
629 // workers. 630 // workers.
630 static void count(const ExecutionContext*, Feature); 631 static void count(const ExecutionContext*, Feature);
631 // Use countIfNotPrivateScript() instead of count() if you don't want 632 // Use countIfNotPrivateScript() instead of count() if you don't want
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
690 691
691 void updateMeasurements(); 692 void updateMeasurements();
692 693
693 OwnPtr<BitVector> m_countBits; 694 OwnPtr<BitVector> m_countBits;
694 BitVector m_CSSFeatureBits; 695 BitVector m_CSSFeatureBits;
695 }; 696 };
696 697
697 } // namespace blink 698 } // namespace blink
698 699
699 #endif // UseCounter_h 700 #endif // UseCounter_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698