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

Unified Diff: content/public/renderer/render_frame.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/public/renderer/render_frame.h
diff --git a/content/public/renderer/render_frame.h b/content/public/renderer/render_frame.h
index 47b958db2ac001c1d0ebfa38c9b6f72ae9002c88..59bec7d2ecdd9842e8b7b1b02984d196666fbd23 100644
--- a/content/public/renderer/render_frame.h
+++ b/content/public/renderer/render_frame.h
@@ -82,6 +82,11 @@ class CONTENT_EXPORT RenderFrame : public IPC::Listener,
CONTENT_STATUS_NUM_ITEMS
};
+ enum RecordPeripheralDecision {
+ DONT_RECORD_DECISION = 0,
+ RECORD_DECISION = 1
+ };
+
// Returns the RenderFrame given a WebFrame.
static RenderFrame* FromWebFrame(blink::WebFrame* web_frame);
@@ -177,7 +182,8 @@ class CONTENT_EXPORT RenderFrame : public IPC::Listener,
virtual PeripheralContentStatus GetPeripheralContentStatus(
const url::Origin& main_frame_origin,
const url::Origin& content_origin,
- const gfx::Size& unobscured_size) const = 0;
+ const gfx::Size& unobscured_size,
+ RecordPeripheralDecision record_decision) const = 0;
// Whitelists a |content_origin| so its content will never be throttled in
// this RenderFrame. Whitelist is cleared by top level navigation.
« no previous file with comments | « content/public/renderer/plugin_instance_throttler.h ('k') | content/renderer/pepper/pepper_webplugin_impl_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698