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