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

Side by Side Diff: content/public/renderer/plugin_instance_throttler.h

Issue 1341563002: Plugin Power Saver: Improve origin handling esp. with OOPIF. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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
« no previous file with comments | « content/common/frame_messages.h ('k') | content/public/renderer/render_frame.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_RENDERER_PLUGIN_INSTANCE_THROTTLER_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_PLUGIN_INSTANCE_THROTTLER_H_
6 #define CONTENT_PUBLIC_RENDERER_PLUGIN_INSTANCE_THROTTLER_H_ 6 #define CONTENT_PUBLIC_RENDERER_PLUGIN_INSTANCE_THROTTLER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
11 11
12 namespace blink { 12 namespace blink {
13 class WebPlugin; 13 class WebPlugin;
14 struct WebPluginParams; 14 struct WebPluginParams;
15 } 15 }
16 16
17 namespace gfx { 17 namespace gfx {
18 class Size; 18 class Size;
19 } 19 }
20 20
21 class GURL;
22 class SkBitmap; 21 class SkBitmap;
23 22
24 namespace content { 23 namespace content {
25 24
26 // This class manages the metric collection, throttling, and unthrottling of a 25 // This class manages the metric collection, throttling, and unthrottling of a
27 // single peripheral plugin instance. If the Power Saver feature is disabled, 26 // single peripheral plugin instance. If the Power Saver feature is disabled,
28 // the plugin instance will never actually be throttled, but still collects 27 // the plugin instance will never actually be throttled, but still collects
29 // user interaction metrics. 28 // user interaction metrics.
30 // 29 //
31 // The process for throttling a plugin is as follows: 30 // The process for throttling a plugin is as follows:
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 103
105 protected: 104 protected:
106 PluginInstanceThrottler() {} 105 PluginInstanceThrottler() {}
107 106
108 private: 107 private:
109 DISALLOW_COPY_AND_ASSIGN(PluginInstanceThrottler); 108 DISALLOW_COPY_AND_ASSIGN(PluginInstanceThrottler);
110 }; 109 };
111 } 110 }
112 111
113 #endif // CONTENT_PUBLIC_RENDERER_PLUGIN_INSTANCE_THROTTLER_H_ 112 #endif // CONTENT_PUBLIC_RENDERER_PLUGIN_INSTANCE_THROTTLER_H_
OLDNEW
« no previous file with comments | « content/common/frame_messages.h ('k') | content/public/renderer/render_frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698