| 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 <map> | 8 #include <map> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 | 179 |
| 180 // Allows the embedder to override the WebSpeechSynthesizer used. | 180 // Allows the embedder to override the WebSpeechSynthesizer used. |
| 181 // If it returns NULL the content layer will provide an engine. | 181 // If it returns NULL the content layer will provide an engine. |
| 182 virtual blink::WebSpeechSynthesizer* OverrideSpeechSynthesizer( | 182 virtual blink::WebSpeechSynthesizer* OverrideSpeechSynthesizer( |
| 183 blink::WebSpeechSynthesizerClient* client); | 183 blink::WebSpeechSynthesizerClient* client); |
| 184 | 184 |
| 185 // Returns true if the renderer process should schedule the idle handler when | 185 // Returns true if the renderer process should schedule the idle handler when |
| 186 // all widgets are hidden. | 186 // all widgets are hidden. |
| 187 virtual bool RunIdleHandlerWhenWidgetsHidden(); | 187 virtual bool RunIdleHandlerWhenWidgetsHidden(); |
| 188 | 188 |
| 189 // Returns true if the renderer process should allow shared timer suspension |
| 190 // after the process has been backgrounded. Defaults to false. |
| 191 virtual bool AllowTimerSuspensionWhenProcessBackgrounded(); |
| 192 |
| 189 // Returns true if a popup window should be allowed. | 193 // Returns true if a popup window should be allowed. |
| 190 virtual bool AllowPopup(); | 194 virtual bool AllowPopup(); |
| 191 | 195 |
| 192 // Returns true if we should fork a new process for the given navigation. | 196 // Returns true if we should fork a new process for the given navigation. |
| 193 // If |send_referrer| is set to false (which is the default), no referrer | 197 // If |send_referrer| is set to false (which is the default), no referrer |
| 194 // header will be send for the navigation. Otherwise, the referrer header is | 198 // header will be send for the navigation. Otherwise, the referrer header is |
| 195 // set according to the frame's referrer policy. | 199 // set according to the frame's referrer policy. |
| 196 virtual bool ShouldFork(blink::WebLocalFrame* frame, | 200 virtual bool ShouldFork(blink::WebLocalFrame* frame, |
| 197 const GURL& url, | 201 const GURL& url, |
| 198 const std::string& http_method, | 202 const std::string& http_method, |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 const GURL& url) {} | 302 const GURL& url) {} |
| 299 | 303 |
| 300 // Notifies that a service worker context will be destroyed. This function | 304 // Notifies that a service worker context will be destroyed. This function |
| 301 // is called from the worker thread. | 305 // is called from the worker thread. |
| 302 virtual void WillDestroyServiceWorkerContextOnWorkerThread(const GURL& url) {} | 306 virtual void WillDestroyServiceWorkerContextOnWorkerThread(const GURL& url) {} |
| 303 }; | 307 }; |
| 304 | 308 |
| 305 } // namespace content | 309 } // namespace content |
| 306 | 310 |
| 307 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 311 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |