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

Unified Diff: content/renderer/pepper/plugin_instance_throttler_impl.h

Issue 2211753002: Plugin Power Saver Tiny: Fix Plugin.PowerSaver.PeripheralHeuristic UMA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge. and change to enum Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/pepper/plugin_instance_throttler_impl.h
diff --git a/content/renderer/pepper/plugin_instance_throttler_impl.h b/content/renderer/pepper/plugin_instance_throttler_impl.h
index 8d6568b89738b635074101a12b63f8c77c3edb90..991591c7d55781e113a715a68fd5e1cb83cd9424 100644
--- a/content/renderer/pepper/plugin_instance_throttler_impl.h
+++ b/content/renderer/pepper/plugin_instance_throttler_impl.h
@@ -33,7 +33,8 @@ class RenderFrameImpl;
class CONTENT_EXPORT PluginInstanceThrottlerImpl
: public PluginInstanceThrottler {
public:
- PluginInstanceThrottlerImpl();
+ explicit PluginInstanceThrottlerImpl(
+ RenderFrame::RecordPeripheralDecision record_decision);
~PluginInstanceThrottlerImpl() override;
@@ -90,6 +91,8 @@ class CONTENT_EXPORT PluginInstanceThrottlerImpl
void AudioThrottledFrameTimeout();
void EngageThrottle();
+ RenderFrame::RecordPeripheralDecision record_decision_;
+
ThrottlerState state_;
bool is_hidden_for_placeholder_;

Powered by Google App Engine
This is Rietveld 408576698