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

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

Issue 1162943002: Replace more ObserverList with base::ObserverList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@observer
Patch Set: Created 5 years, 6 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
« no previous file with comments | « content/renderer/p2p/socket_dispatcher.cc ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « content/renderer/p2p/socket_dispatcher.cc ('k') | content/renderer/render_frame_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698