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 <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 | 206 |
207 #if defined(OS_ANDROID) | 207 #if defined(OS_ANDROID) |
208 // TODO(sgurun) This callback is deprecated and will be removed as soon | 208 // TODO(sgurun) This callback is deprecated and will be removed as soon |
209 // as android webview completes implementation of a resource throttle based | 209 // as android webview completes implementation of a resource throttle based |
210 // shouldoverrideurl implementation. See crbug.com/325351 | 210 // shouldoverrideurl implementation. See crbug.com/325351 |
211 // | 211 // |
212 // Returns true if the navigation was handled by the embedder and should be | 212 // Returns true if the navigation was handled by the embedder and should be |
213 // ignored by WebKit. This method is used by CEF and android_webview. | 213 // ignored by WebKit. This method is used by CEF and android_webview. |
214 virtual bool HandleNavigation(RenderFrame* render_frame, | 214 virtual bool HandleNavigation(RenderFrame* render_frame, |
215 bool is_content_initiated, | 215 bool is_content_initiated, |
216 int opener_id, | 216 bool render_view_was_created_by_renderer, |
217 blink::WebFrame* frame, | 217 blink::WebFrame* frame, |
218 const blink::WebURLRequest& request, | 218 const blink::WebURLRequest& request, |
219 blink::WebNavigationType type, | 219 blink::WebNavigationType type, |
220 blink::WebNavigationPolicy default_policy, | 220 blink::WebNavigationPolicy default_policy, |
221 bool is_redirect); | 221 bool is_redirect); |
222 | 222 |
223 // Indicates if the Android MediaPlayer should be used instead of Chrome's | 223 // Indicates if the Android MediaPlayer should be used instead of Chrome's |
224 // built in media player for the given |url|. Defaults to false. | 224 // built in media player for the given |url|. Defaults to false. |
225 virtual bool ShouldUseMediaPlayerForURL(const GURL& url); | 225 virtual bool ShouldUseMediaPlayerForURL(const GURL& url); |
226 #endif | 226 #endif |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 service_manager::InterfaceRegistry* interface_registry) {} | 370 service_manager::InterfaceRegistry* interface_registry) {} |
371 | 371 |
372 // Overwrites the given URL to use an HTML5 embed if possible. | 372 // Overwrites the given URL to use an HTML5 embed if possible. |
373 // An empty URL is returned if the URL is not overriden. | 373 // An empty URL is returned if the URL is not overriden. |
374 virtual GURL OverrideFlashEmbedWithHTML(const GURL& url); | 374 virtual GURL OverrideFlashEmbedWithHTML(const GURL& url); |
375 }; | 375 }; |
376 | 376 |
377 } // namespace content | 377 } // namespace content |
378 | 378 |
379 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ | 379 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ |
OLD | NEW |