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

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

Issue 2860263002: NOT FOR COMMIT: Move background pausing to the WebView level
Patch Set: Created 3 years, 7 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/WebAudioDevice.h" 9 #include "third_party/WebKit/public/platform/WebAudioDevice.h"
10 #include "third_party/WebKit/public/platform/WebMediaStreamCenter.h" 10 #include "third_party/WebKit/public/platform/WebMediaStreamCenter.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 std::unique_ptr<blink::WebSpeechSynthesizer> 90 std::unique_ptr<blink::WebSpeechSynthesizer>
91 ContentRendererClient::OverrideSpeechSynthesizer( 91 ContentRendererClient::OverrideSpeechSynthesizer(
92 blink::WebSpeechSynthesizerClient* client) { 92 blink::WebSpeechSynthesizerClient* client) {
93 return nullptr; 93 return nullptr;
94 } 94 }
95 95
96 bool ContentRendererClient::RunIdleHandlerWhenWidgetsHidden() { 96 bool ContentRendererClient::RunIdleHandlerWhenWidgetsHidden() {
97 return true; 97 return true;
98 } 98 }
99 99
100 bool ContentRendererClient::AllowTimerSuspensionWhenProcessBackgrounded() {
101 return false;
102 }
103
104 bool ContentRendererClient::AllowPopup() { 100 bool ContentRendererClient::AllowPopup() {
105 return false; 101 return false;
106 } 102 }
107 103
108 #if defined(OS_ANDROID) 104 #if defined(OS_ANDROID)
109 bool ContentRendererClient::HandleNavigation( 105 bool ContentRendererClient::HandleNavigation(
110 RenderFrame* render_frame, 106 RenderFrame* render_frame,
111 bool is_content_initiated, 107 bool is_content_initiated,
112 bool render_view_was_created_by_renderer, 108 bool render_view_was_created_by_renderer,
113 blink::WebFrame* frame, 109 blink::WebFrame* frame,
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 std::unique_ptr<base::TaskScheduler::InitParams> 245 std::unique_ptr<base::TaskScheduler::InitParams>
250 ContentRendererClient::GetTaskSchedulerInitParams() { 246 ContentRendererClient::GetTaskSchedulerInitParams() {
251 return nullptr; 247 return nullptr;
252 } 248 }
253 249
254 bool ContentRendererClient::AllowMediaSuspend() { 250 bool ContentRendererClient::AllowMediaSuspend() {
255 return true; 251 return true;
256 } 252 }
257 253
258 } // namespace content 254 } // namespace content
OLDNEW
« no previous file with comments | « content/public/renderer/content_renderer_client.h ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698