| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |