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

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

Issue 1088763002: Plugin Power Saver: Add comprehensive browser tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@0260-plugins-overhaul-prerender-tests
Patch Set: Created 5 years, 8 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 // 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; 21 class GURL;
22 class PluginPowerSaverBrowserTest;
22 class SkBitmap; 23 class SkBitmap;
23 24
24 namespace content { 25 namespace content {
25 26
26 // This class manages the metric collection, throttling, and unthrottling of a 27 // This class manages the metric collection, throttling, and unthrottling of a
27 // single peripheral plugin instance. If the Power Saver feature is disabled, 28 // single peripheral plugin instance. If the Power Saver feature is disabled,
28 // the plugin instance will never actually be throttled, but still collects 29 // the plugin instance will never actually be throttled, but still collects
29 // user interaction metrics. 30 // user interaction metrics.
30 // 31 //
31 // The process for throttling a plugin is as follows: 32 // The process for throttling a plugin is as follows:
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 98
98 protected: 99 protected:
99 PluginInstanceThrottler() {} 100 PluginInstanceThrottler() {}
100 101
101 private: 102 private:
102 DISALLOW_COPY_AND_ASSIGN(PluginInstanceThrottler); 103 DISALLOW_COPY_AND_ASSIGN(PluginInstanceThrottler);
103 }; 104 };
104 } 105 }
105 106
106 #endif // CONTENT_PUBLIC_RENDERER_PLUGIN_INSTANCE_THROTTLER_H_ 107 #endif // CONTENT_PUBLIC_RENDERER_PLUGIN_INSTANCE_THROTTLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698