| 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 #ifndef CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
| 6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 | 181 |
| 182 // Allows the embedder to override the WebSpeechSynthesizer used. | 182 // Allows the embedder to override the WebSpeechSynthesizer used. |
| 183 // If it returns NULL the content layer will provide an engine. | 183 // If it returns NULL the content layer will provide an engine. |
| 184 virtual std::unique_ptr<blink::WebSpeechSynthesizer> | 184 virtual std::unique_ptr<blink::WebSpeechSynthesizer> |
| 185 OverrideSpeechSynthesizer(blink::WebSpeechSynthesizerClient* client); | 185 OverrideSpeechSynthesizer(blink::WebSpeechSynthesizerClient* client); |
| 186 | 186 |
| 187 // Returns true if the renderer process should schedule the idle handler when | 187 // Returns true if the renderer process should schedule the idle handler when |
| 188 // all widgets are hidden. | 188 // all widgets are hidden. |
| 189 virtual bool RunIdleHandlerWhenWidgetsHidden(); | 189 virtual bool RunIdleHandlerWhenWidgetsHidden(); |
| 190 | 190 |
| 191 // Returns true if the renderer process should allow shared timer suspension | |
| 192 // after the process has been backgrounded. Defaults to false. | |
| 193 virtual bool AllowTimerSuspensionWhenProcessBackgrounded(); | |
| 194 | |
| 195 // Returns true if a popup window should be allowed. | 191 // Returns true if a popup window should be allowed. |
| 196 virtual bool AllowPopup(); | 192 virtual bool AllowPopup(); |
| 197 | 193 |
| 198 #if defined(OS_ANDROID) | 194 #if defined(OS_ANDROID) |
| 199 // TODO(sgurun) This callback is deprecated and will be removed as soon | 195 // TODO(sgurun) This callback is deprecated and will be removed as soon |
| 200 // as android webview completes implementation of a resource throttle based | 196 // as android webview completes implementation of a resource throttle based |
| 201 // shouldoverrideurl implementation. See crbug.com/325351 | 197 // shouldoverrideurl implementation. See crbug.com/325351 |
| 202 // | 198 // |
| 203 // Returns true if the navigation was handled by the embedder and should be | 199 // Returns true if the navigation was handled by the embedder and should be |
| 204 // ignored by WebKit. This method is used by CEF and android_webview. | 200 // ignored by WebKit. This method is used by CEF and android_webview. |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 virtual std::unique_ptr<base::TaskScheduler::InitParams> | 364 virtual std::unique_ptr<base::TaskScheduler::InitParams> |
| 369 GetTaskSchedulerInitParams(); | 365 GetTaskSchedulerInitParams(); |
| 370 | 366 |
| 371 // Returns true if the media pipeline can be suspended, or false otherwise. | 367 // Returns true if the media pipeline can be suspended, or false otherwise. |
| 372 virtual bool AllowMediaSuspend(); | 368 virtual bool AllowMediaSuspend(); |
| 373 }; | 369 }; |
| 374 | 370 |
| 375 } // namespace content | 371 } // namespace content |
| 376 | 372 |
| 377 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 373 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |