OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |