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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 int frames_examined_; | 100 int frames_examined_; |
101 | 101 |
102 // Plugin's unobscured dimensions as of initialization. | 102 // Plugin's unobscured dimensions as of initialization. |
103 gfx::Size unobscured_size_; | 103 gfx::Size unobscured_size_; |
104 | 104 |
105 // Video plugins with throttled audio often stop generating frames. | 105 // Video plugins with throttled audio often stop generating frames. |
106 // This timer is so we don't wait forever for candidate poster frames. | 106 // This timer is so we don't wait forever for candidate poster frames. |
107 bool audio_throttled_; | 107 bool audio_throttled_; |
108 base::DelayTimer<PluginInstanceThrottlerImpl> audio_throttled_frame_timeout_; | 108 base::DelayTimer<PluginInstanceThrottlerImpl> audio_throttled_frame_timeout_; |
109 | 109 |
110 ObserverList<Observer> observer_list_; | 110 base::ObserverList<Observer> observer_list_; |
111 | 111 |
112 base::WeakPtrFactory<PluginInstanceThrottlerImpl> weak_factory_; | 112 base::WeakPtrFactory<PluginInstanceThrottlerImpl> weak_factory_; |
113 | 113 |
114 DISALLOW_COPY_AND_ASSIGN(PluginInstanceThrottlerImpl); | 114 DISALLOW_COPY_AND_ASSIGN(PluginInstanceThrottlerImpl); |
115 }; | 115 }; |
116 } | 116 } |
117 | 117 |
118 #endif // CONTENT_RENDERER_PEPPER_PLUGIN_INSTANCE_THROTTLER_IMPL_H_ | 118 #endif // CONTENT_RENDERER_PEPPER_PLUGIN_INSTANCE_THROTTLER_IMPL_H_ |
OLD | NEW |