| 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" |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 virtual bool IsHiddenForPlaceholder() const = 0; | 77 virtual bool IsHiddenForPlaceholder() const = 0; |
| 78 | 78 |
| 79 // Marks the plugin as essential. Unthrottles the plugin if already throttled. | 79 // Marks the plugin as essential. Unthrottles the plugin if already throttled. |
| 80 virtual void MarkPluginEssential(PowerSaverUnthrottleMethod method) = 0; | 80 virtual void MarkPluginEssential(PowerSaverUnthrottleMethod method) = 0; |
| 81 | 81 |
| 82 // Called by the placeholder when the plugin should temporarily be hidden. | 82 // Called by the placeholder when the plugin should temporarily be hidden. |
| 83 virtual void SetHiddenForPlaceholder(bool hidden) = 0; | 83 virtual void SetHiddenForPlaceholder(bool hidden) = 0; |
| 84 | 84 |
| 85 virtual blink::WebPlugin* GetWebPlugin() const = 0; | 85 virtual blink::WebPlugin* GetWebPlugin() const = 0; |
| 86 | 86 |
| 87 virtual int GetWidth() const = 0; |
| 88 virtual int GetHeight() const = 0; |
| 89 |
| 87 protected: | 90 protected: |
| 88 PluginInstanceThrottler() {} | 91 PluginInstanceThrottler() {} |
| 89 | 92 |
| 90 private: | 93 private: |
| 91 DISALLOW_COPY_AND_ASSIGN(PluginInstanceThrottler); | 94 DISALLOW_COPY_AND_ASSIGN(PluginInstanceThrottler); |
| 92 }; | 95 }; |
| 93 } | 96 } |
| 94 | 97 |
| 95 #endif // CONTENT_PUBLIC_RENDERER_PLUGIN_INSTANCE_THROTTLER_H_ | 98 #endif // CONTENT_PUBLIC_RENDERER_PLUGIN_INSTANCE_THROTTLER_H_ |
| OLD | NEW |