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

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

Issue 1140723003: Implement suspend() and resume() for OfflineAudioContext (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Removing ThreadSafeRefCounted from ScheduledSuspendContainer Created 5 years, 5 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 752 matching lines...) Expand 10 before | Expand all | Expand 10 after
763 V8CustomEvent_InitCustomEvent_Method = 864, 763 V8CustomEvent_InitCustomEvent_Method = 864,
764 V8DeviceMotionEvent_InitDeviceMotionEvent_Method = 865, 764 V8DeviceMotionEvent_InitDeviceMotionEvent_Method = 865,
765 V8DeviceOrientationEvent_InitDeviceOrientationEvent_Method = 866, 765 V8DeviceOrientationEvent_InitDeviceOrientationEvent_Method = 866,
766 V8Event_InitEvent_Method = 867, 766 V8Event_InitEvent_Method = 867,
767 V8KeyboardEvent_InitKeyboardEvent_Method = 868, 767 V8KeyboardEvent_InitKeyboardEvent_Method = 868,
768 V8MouseEvent_InitMouseEvent_Method = 869, 768 V8MouseEvent_InitMouseEvent_Method = 869,
769 V8MutationEvent_InitMutationEvent_Method = 870, 769 V8MutationEvent_InitMutationEvent_Method = 870,
770 V8StorageEvent_InitStorageEvent_Method = 871, 770 V8StorageEvent_InitStorageEvent_Method = 871,
771 V8TouchEvent_InitTouchEvent_Method = 872, 771 V8TouchEvent_InitTouchEvent_Method = 872,
772 V8UIEvent_InitUIEvent_Method = 873, 772 V8UIEvent_InitUIEvent_Method = 873,
773 OfflineAudioContextStartRendering = 874,
774 OfflineAudioContextSuspend = 875,
775 OfflineAudioContextResume = 876,
773 776
774 // Add new features immediately above this line. Don't change assigned 777 // Add new features immediately above this line. Don't change assigned
775 // numbers of any item, and don't reuse removed slots. 778 // numbers of any item, and don't reuse removed slots.
776 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/ 779 // Also, run update_use_counter_feature_enum.py in chromium/src/tools/me trics/histograms/
777 // to update the UMA mapping. 780 // to update the UMA mapping.
778 NumberOfFeatures, // This enum value must be last. 781 NumberOfFeatures, // This enum value must be last.
779 }; 782 };
780 783
781 // "count" sets the bit for this feature to 1. Repeated calls are ignored. 784 // "count" sets the bit for this feature to 1. Repeated calls are ignored.
782 static void count(const Frame*, Feature); 785 static void count(const Frame*, Feature);
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
866 869
867 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR ecordedMeasurement(feature); } 870 bool hasRecordedMeasurement(Feature feature) const { return m_countBits.hasR ecordedMeasurement(feature); }
868 871
869 CountBits m_countBits; 872 CountBits m_countBits;
870 BitVector m_CSSFeatureBits; 873 BitVector m_CSSFeatureBits;
871 }; 874 };
872 875
873 } // namespace blink 876 } // namespace blink
874 877
875 #endif // UseCounter_h 878 #endif // UseCounter_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698