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

Side by Side Diff: content/renderer/idle_user_detector.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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/idle_user_detector.h" 5 #include "content/renderer/idle_user_detector.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "content/common/input_messages.h" 8 #include "content/common/input_messages.h"
9 #include "content/public/renderer/content_renderer_client.h" 9 #include "content/public/renderer/content_renderer_client.h"
10 #include "content/renderer/render_thread_impl.h" 10 #include "content/renderer/render_thread_impl.h"
(...skipping 19 matching lines...) Expand all
30 const ui::LatencyInfo& latency_info, 30 const ui::LatencyInfo& latency_info,
31 InputEventDispatchType dispatch_type) { 31 InputEventDispatchType dispatch_type) {
32 if (GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) { 32 if (GetContentClient()->renderer()->RunIdleHandlerWhenWidgetsHidden()) {
33 RenderThreadImpl* render_thread = RenderThreadImpl::current(); 33 RenderThreadImpl* render_thread = RenderThreadImpl::current();
34 if (render_thread != NULL) { 34 if (render_thread != NULL) {
35 render_thread->PostponeIdleNotification(); 35 render_thread->PostponeIdleNotification();
36 } 36 }
37 } 37 }
38 } 38 }
39 39
40 void IdleUserDetector::OnDestruct() {
41 delete this;
42 }
43
40 } // namespace content 44 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/idle_user_detector.h ('k') | content/renderer/image_downloader/image_downloader_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698