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 "chrome/renderer/plugins/plugin_preroller.h" | 5 #include "chrome/renderer/plugins/plugin_preroller.h" |
6 | 6 |
7 #include "base/base64.h" | 7 #include "base/base64.h" |
8 #include "chrome/grit/renderer_resources.h" | 8 #include "chrome/grit/renderer_resources.h" |
9 #include "chrome/renderer/plugins/chrome_plugin_placeholder.h" | 9 #include "chrome/renderer/plugins/chrome_plugin_placeholder.h" |
10 #include "chrome/renderer/plugins/power_saver_info.h" | 10 #include "chrome/renderer/plugins/power_saver_info.h" |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 container->invalidate(); | 81 container->invalidate(); |
82 container->reportGeometry(); | 82 container->reportGeometry(); |
83 | 83 |
84 delete this; | 84 delete this; |
85 } | 85 } |
86 | 86 |
87 void PluginPreroller::OnThrottlerDestroyed() { | 87 void PluginPreroller::OnThrottlerDestroyed() { |
88 throttler_ = nullptr; | 88 throttler_ = nullptr; |
89 delete this; | 89 delete this; |
90 } | 90 } |
| 91 |
| 92 void PluginPreroller::OnDestruct() { |
| 93 delete this; |
| 94 } |
OLD | NEW |