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

Side by Side Diff: content/public/renderer/content_renderer_client.cc

Issue 1133143003: [Android] Suspend shared timers for hidden renderers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@input_remove_suspend
Patch Set: Use ContentRendererClient Created 5 years, 3 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/public/renderer/content_renderer_client.h" 5 #include "content/public/renderer/content_renderer_client.h"
6 6
7 #include "content/public/renderer/media_stream_renderer_factory.h" 7 #include "content/public/renderer/media_stream_renderer_factory.h"
8 #include "media/base/renderer_factory.h" 8 #include "media/base/renderer_factory.h"
9 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerClie nt.h" 9 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerClie nt.h"
10 10
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 83
84 blink::WebSpeechSynthesizer* ContentRendererClient::OverrideSpeechSynthesizer( 84 blink::WebSpeechSynthesizer* ContentRendererClient::OverrideSpeechSynthesizer(
85 blink::WebSpeechSynthesizerClient* client) { 85 blink::WebSpeechSynthesizerClient* client) {
86 return nullptr; 86 return nullptr;
87 } 87 }
88 88
89 bool ContentRendererClient::RunIdleHandlerWhenWidgetsHidden() { 89 bool ContentRendererClient::RunIdleHandlerWhenWidgetsHidden() {
90 return true; 90 return true;
91 } 91 }
92 92
93 bool ContentRendererClient::AllowTimerSuspensionWhenProcessBackgrounded() {
94 return false;
95 }
96
93 bool ContentRendererClient::AllowPopup() { 97 bool ContentRendererClient::AllowPopup() {
94 return false; 98 return false;
95 } 99 }
96 100
97 bool ContentRendererClient::ShouldFork(blink::WebLocalFrame* frame, 101 bool ContentRendererClient::ShouldFork(blink::WebLocalFrame* frame,
98 const GURL& url, 102 const GURL& url,
99 const std::string& http_method, 103 const std::string& http_method,
100 bool is_initial_navigation, 104 bool is_initial_navigation,
101 bool is_server_redirect, 105 bool is_server_redirect,
102 bool* send_referrer) { 106 bool* send_referrer) {
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 std::string ContentRendererClient::GetUserAgentOverrideForURL(const GURL& url) { 205 std::string ContentRendererClient::GetUserAgentOverrideForURL(const GURL& url) {
202 return std::string(); 206 return std::string();
203 } 207 }
204 208
205 scoped_ptr<blink::WebAppBannerClient> 209 scoped_ptr<blink::WebAppBannerClient>
206 ContentRendererClient::CreateAppBannerClient(RenderFrame* render_frame) { 210 ContentRendererClient::CreateAppBannerClient(RenderFrame* render_frame) {
207 return nullptr; 211 return nullptr;
208 } 212 }
209 213
210 } // namespace content 214 } // namespace content
OLDNEW
« no previous file with comments | « content/public/renderer/content_renderer_client.h ('k') | content/renderer/render_thread_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698