OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_RENDERER_PEPPER_PLUGIN_INSTANCE_THROTTLER_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PLUGIN_INSTANCE_THROTTLER_IMPL_H_ |
6 #define CONTENT_RENDERER_PEPPER_PLUGIN_INSTANCE_THROTTLER_IMPL_H_ | 6 #define CONTENT_RENDERER_PEPPER_PLUGIN_INSTANCE_THROTTLER_IMPL_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "base/observer_list.h" | 10 #include "base/observer_list.h" |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 | 102 |
103 // Number of frames we've examined to find a keyframe. | 103 // Number of frames we've examined to find a keyframe. |
104 int frames_examined_; | 104 int frames_examined_; |
105 | 105 |
106 // Plugin's unobscured dimensions as of initialization. | 106 // Plugin's unobscured dimensions as of initialization. |
107 gfx::Size unobscured_size_; | 107 gfx::Size unobscured_size_; |
108 | 108 |
109 // Video plugins with throttled audio often stop generating frames. | 109 // Video plugins with throttled audio often stop generating frames. |
110 // This timer is so we don't wait forever for candidate poster frames. | 110 // This timer is so we don't wait forever for candidate poster frames. |
111 bool audio_throttled_; | 111 bool audio_throttled_; |
112 base::DelayTimer<PluginInstanceThrottlerImpl> audio_throttled_frame_timeout_; | 112 base::DelayTimer audio_throttled_frame_timeout_; |
113 | 113 |
114 base::ObserverList<Observer> observer_list_; | 114 base::ObserverList<Observer> observer_list_; |
115 | 115 |
116 base::WeakPtrFactory<PluginInstanceThrottlerImpl> weak_factory_; | 116 base::WeakPtrFactory<PluginInstanceThrottlerImpl> weak_factory_; |
117 | 117 |
118 DISALLOW_COPY_AND_ASSIGN(PluginInstanceThrottlerImpl); | 118 DISALLOW_COPY_AND_ASSIGN(PluginInstanceThrottlerImpl); |
119 }; | 119 }; |
120 } | 120 } |
121 | 121 |
122 #endif // CONTENT_RENDERER_PEPPER_PLUGIN_INSTANCE_THROTTLER_IMPL_H_ | 122 #endif // CONTENT_RENDERER_PEPPER_PLUGIN_INSTANCE_THROTTLER_IMPL_H_ |
OLD | NEW |