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

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

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 #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
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
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_
OLDNEW
« no previous file with comments | « chrome/renderer/chrome_content_renderer_client.cc ('k') | content/public/renderer/content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698