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