| 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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 class WebSpeechSynthesizer; | 42 class WebSpeechSynthesizer; |
| 43 class WebSpeechSynthesizerClient; | 43 class WebSpeechSynthesizerClient; |
| 44 class WebThemeEngine; | 44 class WebThemeEngine; |
| 45 class WebURLRequest; | 45 class WebURLRequest; |
| 46 class WebWorkerPermissionClientProxy; | 46 class WebWorkerPermissionClientProxy; |
| 47 struct WebPluginParams; | 47 struct WebPluginParams; |
| 48 struct WebURLError; | 48 struct WebURLError; |
| 49 } | 49 } |
| 50 | 50 |
| 51 namespace content { | 51 namespace content { |
| 52 class DocumentState; |
| 52 class RenderFrame; | 53 class RenderFrame; |
| 53 class RenderView; | 54 class RenderView; |
| 54 class SynchronousCompositor; | 55 class SynchronousCompositor; |
| 55 struct KeySystemInfo; | 56 struct KeySystemInfo; |
| 56 struct WebPluginInfo; | 57 struct WebPluginInfo; |
| 57 | 58 |
| 58 // Embedder API for participating in renderer logic. | 59 // Embedder API for participating in renderer logic. |
| 59 class CONTENT_EXPORT ContentRendererClient { | 60 class CONTENT_EXPORT ContentRendererClient { |
| 60 public: | 61 public: |
| 61 virtual ~ContentRendererClient() {} | 62 virtual ~ContentRendererClient() {} |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 virtual blink::WebSpeechSynthesizer* OverrideSpeechSynthesizer( | 167 virtual blink::WebSpeechSynthesizer* OverrideSpeechSynthesizer( |
| 167 blink::WebSpeechSynthesizerClient* client); | 168 blink::WebSpeechSynthesizerClient* client); |
| 168 | 169 |
| 169 // Returns true if the renderer process should schedule the idle handler when | 170 // Returns true if the renderer process should schedule the idle handler when |
| 170 // all widgets are hidden. | 171 // all widgets are hidden. |
| 171 virtual bool RunIdleHandlerWhenWidgetsHidden(); | 172 virtual bool RunIdleHandlerWhenWidgetsHidden(); |
| 172 | 173 |
| 173 // Returns true if a popup window should be allowed. | 174 // Returns true if a popup window should be allowed. |
| 174 virtual bool AllowPopup(); | 175 virtual bool AllowPopup(); |
| 175 | 176 |
| 177 #ifdef OS_ANDROID |
| 178 // TODO(sgurun) This callback is deprecated and will be removed as soon |
| 179 // as android webview completes implementation of a resource throttle based |
| 180 // shouldoverrideurl implementation. See crbug.com/325351 |
| 181 // |
| 176 // Returns true if the navigation was handled by the embedder and should be | 182 // Returns true if the navigation was handled by the embedder and should be |
| 177 // ignored by WebKit. This method is used by CEF. | 183 // ignored by WebKit. This method is used by CEF and android_webview. |
| 178 virtual bool HandleNavigation(blink::WebFrame* frame, | 184 virtual bool HandleNavigation(RenderView* view, |
| 185 DocumentState* document_state, |
| 186 int opener_id, |
| 187 blink::WebFrame* frame, |
| 179 const blink::WebURLRequest& request, | 188 const blink::WebURLRequest& request, |
| 180 blink::WebNavigationType type, | 189 blink::WebNavigationType type, |
| 181 blink::WebNavigationPolicy default_policy, | 190 blink::WebNavigationPolicy default_policy, |
| 182 bool is_redirect); | 191 bool is_redirect); |
| 192 #endif |
| 183 | 193 |
| 184 // Returns true if we should fork a new process for the given navigation. | 194 // Returns true if we should fork a new process for the given navigation. |
| 185 // If |send_referrer| is set to false (which is the default), no referrer | 195 // If |send_referrer| is set to false (which is the default), no referrer |
| 186 // header will be send for the navigation. Otherwise, the referrer header is | 196 // header will be send for the navigation. Otherwise, the referrer header is |
| 187 // set according to the frame's referrer policy. | 197 // set according to the frame's referrer policy. |
| 188 virtual bool ShouldFork(blink::WebFrame* frame, | 198 virtual bool ShouldFork(blink::WebFrame* frame, |
| 189 const GURL& url, | 199 const GURL& url, |
| 190 const std::string& http_method, | 200 const std::string& http_method, |
| 191 bool is_initial_navigation, | 201 bool is_initial_navigation, |
| 192 bool is_server_redirect, | 202 bool is_server_redirect, |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 | 278 |
| 269 // Creates a permission client proxy for in-renderer worker. | 279 // Creates a permission client proxy for in-renderer worker. |
| 270 virtual blink::WebWorkerPermissionClientProxy* | 280 virtual blink::WebWorkerPermissionClientProxy* |
| 271 CreateWorkerPermissionClientProxy(RenderView* render_view, | 281 CreateWorkerPermissionClientProxy(RenderView* render_view, |
| 272 blink::WebFrame* frame); | 282 blink::WebFrame* frame); |
| 273 }; | 283 }; |
| 274 | 284 |
| 275 } // namespace content | 285 } // namespace content |
| 276 | 286 |
| 277 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 287 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |