Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(586)

Side by Side Diff: content/renderer/pepper/plugin_instance_throttler_impl.h

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « content/renderer/fetchers/resource_fetcher_impl.h ('k') | content/renderer/render_thread_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698