Chromium Code Reviews| 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 struct WebPluginParams; | 46 struct WebPluginParams; |
| 47 struct WebURLError; | 47 struct WebURLError; |
| 48 } | 48 } |
| 49 | 49 |
| 50 namespace content { | 50 namespace content { |
| 51 | 51 |
| 52 class DocumentState; | |
| 52 class RenderView; | 53 class RenderView; |
| 53 class SynchronousCompositor; | 54 class SynchronousCompositor; |
| 54 struct KeySystemInfo; | 55 struct KeySystemInfo; |
| 55 struct WebPluginInfo; | 56 struct WebPluginInfo; |
| 56 | 57 |
| 57 // Embedder API for participating in renderer logic. | 58 // Embedder API for participating in renderer logic. |
| 58 class CONTENT_EXPORT ContentRendererClient { | 59 class CONTENT_EXPORT ContentRendererClient { |
| 59 public: | 60 public: |
| 60 virtual ~ContentRendererClient() {} | 61 virtual ~ContentRendererClient() {} |
| 61 | 62 |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 161 WebKit::WebSpeechSynthesizerClient* client); | 162 WebKit::WebSpeechSynthesizerClient* client); |
| 162 | 163 |
| 163 // Returns true if the renderer process should schedule the idle handler when | 164 // Returns true if the renderer process should schedule the idle handler when |
| 164 // all widgets are hidden. | 165 // all widgets are hidden. |
| 165 virtual bool RunIdleHandlerWhenWidgetsHidden(); | 166 virtual bool RunIdleHandlerWhenWidgetsHidden(); |
| 166 | 167 |
| 167 // Returns true if a popup window should be allowed. | 168 // Returns true if a popup window should be allowed. |
| 168 virtual bool AllowPopup(); | 169 virtual bool AllowPopup(); |
| 169 | 170 |
| 170 // Returns true if the navigation was handled by the embedder and should be | 171 // Returns true if the navigation was handled by the embedder and should be |
| 171 // ignored by WebKit. This method is used by CEF. | 172 // ignored by WebKit. This method is used by CEF and android_webview. |
| 172 virtual bool HandleNavigation(WebKit::WebFrame* frame, | 173 virtual bool HandleNavigation(RenderView* view, |
|
darin (slow to review)
2013/10/24 03:59:34
Our intent is to delete this method. It is better
joth
2013/11/22 07:03:20
As a compromise to get this moving forward, how ab
| |
| 174 DocumentState* document_state, | |
| 175 int opener_id, | |
| 176 WebKit::WebFrame* frame, | |
| 173 const WebKit::WebURLRequest& request, | 177 const WebKit::WebURLRequest& request, |
| 174 WebKit::WebNavigationType type, | 178 WebKit::WebNavigationType type, |
| 175 WebKit::WebNavigationPolicy default_policy, | 179 WebKit::WebNavigationPolicy default_policy, |
| 176 bool is_redirect); | 180 bool is_redirect); |
| 177 | 181 |
| 178 // Returns true if we should fork a new process for the given navigation. | 182 // Returns true if we should fork a new process for the given navigation. |
| 179 // If |send_referrer| is set to false (which is the default), no referrer | 183 // If |send_referrer| is set to false (which is the default), no referrer |
| 180 // header will be send for the navigation. Otherwise, the referrer header is | 184 // header will be send for the navigation. Otherwise, the referrer header is |
| 181 // set according to the frame's referrer policy. | 185 // set according to the frame's referrer policy. |
| 182 virtual bool ShouldFork(WebKit::WebFrame* frame, | 186 virtual bool ShouldFork(WebKit::WebFrame* frame, |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 263 | 267 |
| 264 // Returns true if we should apply the cross-site document blocking policy to | 268 // Returns true if we should apply the cross-site document blocking policy to |
| 265 // this renderer process. Currently, we apply the policy only to a renderer | 269 // this renderer process. Currently, we apply the policy only to a renderer |
| 266 // process running on a normal page from the web. | 270 // process running on a normal page from the web. |
| 267 virtual bool ShouldEnableSiteIsolationPolicy() const; | 271 virtual bool ShouldEnableSiteIsolationPolicy() const; |
| 268 }; | 272 }; |
| 269 | 273 |
| 270 } // namespace content | 274 } // namespace content |
| 271 | 275 |
| 272 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 276 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
| OLD | NEW |