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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 virtual blink::WebSpeechSynthesizer* OverrideSpeechSynthesizer( | 189 virtual blink::WebSpeechSynthesizer* OverrideSpeechSynthesizer( |
190 blink::WebSpeechSynthesizerClient* client); | 190 blink::WebSpeechSynthesizerClient* client); |
191 | 191 |
192 // Returns true if the renderer process should schedule the idle handler when | 192 // Returns true if the renderer process should schedule the idle handler when |
193 // all widgets are hidden. | 193 // all widgets are hidden. |
194 virtual bool RunIdleHandlerWhenWidgetsHidden(); | 194 virtual bool RunIdleHandlerWhenWidgetsHidden(); |
195 | 195 |
196 // Returns true if a popup window should be allowed. | 196 // Returns true if a popup window should be allowed. |
197 virtual bool AllowPopup(); | 197 virtual bool AllowPopup(); |
198 | 198 |
199 #ifdef OS_ANDROID | |
200 // TODO(sgurun) This callback is deprecated and will be removed as soon | |
201 // as android webview completes implementation of a resource throttle based | |
202 // shouldoverrideurl implementation. See crbug.com/325351 | |
203 // | |
204 // Returns true if the navigation was handled by the embedder and should be | |
205 // ignored by WebKit. This method is used by CEF and android_webview. | |
206 virtual bool HandleNavigation(RenderFrame* render_frame, | |
207 DocumentState* document_state, | |
208 int opener_id, | |
209 blink::WebFrame* frame, | |
210 const blink::WebURLRequest& request, | |
211 blink::WebNavigationType type, | |
212 blink::WebNavigationPolicy default_policy, | |
213 bool is_redirect); | |
214 #endif | |
215 | |
216 // Returns true if we should fork a new process for the given navigation. | 199 // Returns true if we should fork a new process for the given navigation. |
217 // If |send_referrer| is set to false (which is the default), no referrer | 200 // If |send_referrer| is set to false (which is the default), no referrer |
218 // header will be send for the navigation. Otherwise, the referrer header is | 201 // header will be send for the navigation. Otherwise, the referrer header is |
219 // set according to the frame's referrer policy. | 202 // set according to the frame's referrer policy. |
220 virtual bool ShouldFork(blink::WebFrame* frame, | 203 virtual bool ShouldFork(blink::WebFrame* frame, |
221 const GURL& url, | 204 const GURL& url, |
222 const std::string& http_method, | 205 const std::string& http_method, |
223 bool is_initial_navigation, | 206 bool is_initial_navigation, |
224 bool is_server_redirect, | 207 bool is_server_redirect, |
225 bool* send_referrer); | 208 bool* send_referrer); |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 // Gives the embedder a chance to add properties to the context menu. | 294 // Gives the embedder a chance to add properties to the context menu. |
312 // Currently only called when the context menu is for an image. | 295 // Currently only called when the context menu is for an image. |
313 virtual void AddImageContextMenuProperties( | 296 virtual void AddImageContextMenuProperties( |
314 const blink::WebURLResponse& response, | 297 const blink::WebURLResponse& response, |
315 std::map<std::string, std::string>* properties) {} | 298 std::map<std::string, std::string>* properties) {} |
316 }; | 299 }; |
317 | 300 |
318 } // namespace content | 301 } // namespace content |
319 | 302 |
320 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 303 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |