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 #include "content/renderer/media/renderer_webmediaplayer_delegate.h" | 5 #include "content/renderer/media/renderer_webmediaplayer_delegate.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include "base/auto_reset.h" | 9 #include "base/auto_reset.h" |
10 #include "content/common/media/media_player_delegate_messages.h" | 10 #include "content/common/media/media_player_delegate_messages.h" |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 it = idle_delegate_map_.erase(it); | 167 it = idle_delegate_map_.erase(it); |
168 else | 168 else |
169 ++it; | 169 ++it; |
170 } | 170 } |
171 | 171 |
172 // Shutdown the timer if no delegates are left. | 172 // Shutdown the timer if no delegates are left. |
173 if (idle_delegate_map_.empty()) | 173 if (idle_delegate_map_.empty()) |
174 idle_cleanup_timer_.Stop(); | 174 idle_cleanup_timer_.Stop(); |
175 } | 175 } |
176 | 176 |
| 177 void RendererWebMediaPlayerDelegate::OnDestruct() { |
| 178 delete this; |
| 179 } |
| 180 |
177 } // namespace media | 181 } // namespace media |
OLD | NEW |