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

Side by Side Diff: chrome/renderer/plugins/plugin_preroller.cc

Issue 2034153002: Makes RenderFrameObserver/RenderViewObserver::OnDestruct pure virtual. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments. Created 4 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
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/renderer/plugins/plugin_preroller.h ('k') | chrome/renderer/prerender/prerender_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698