2014-09-04 19:53:40 +02:00
|
|
|
diff --git public/renderer/content_renderer_client.cc public/renderer/content_renderer_client.cc
|
2016-05-25 01:35:43 +02:00
|
|
|
index 4ad49c8..f1fa7ab 100644
|
2014-09-04 19:53:40 +02:00
|
|
|
--- public/renderer/content_renderer_client.cc
|
|
|
|
+++ public/renderer/content_renderer_client.cc
|
2016-02-02 22:32:44 +01:00
|
|
|
@@ -98,7 +98,6 @@ bool ContentRendererClient::AllowPopup() {
|
2013-12-17 23:04:35 +01:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-04-27 22:38:52 +02:00
|
|
|
-#if defined(OS_ANDROID)
|
2016-02-02 22:32:44 +01:00
|
|
|
bool ContentRendererClient::HandleNavigation(
|
|
|
|
RenderFrame* render_frame,
|
|
|
|
bool is_content_initiated,
|
2016-04-27 22:38:52 +02:00
|
|
|
@@ -111,6 +110,7 @@ bool ContentRendererClient::HandleNavigation(
|
2016-02-02 22:32:44 +01:00
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
2016-04-27 22:38:52 +02:00
|
|
|
+#if defined(OS_ANDROID)
|
|
|
|
bool ContentRendererClient::ShouldUseMediaPlayerForURL(const GURL& url) {
|
|
|
|
return false;
|
|
|
|
}
|
2014-09-04 19:53:40 +02:00
|
|
|
diff --git public/renderer/content_renderer_client.h public/renderer/content_renderer_client.h
|
2016-05-25 01:35:43 +02:00
|
|
|
index d96adc9..348ae16 100644
|
2014-09-04 19:53:40 +02:00
|
|
|
--- public/renderer/content_renderer_client.h
|
|
|
|
+++ public/renderer/content_renderer_client.h
|
2016-04-27 22:38:52 +02:00
|
|
|
@@ -200,7 +200,6 @@ class CONTENT_EXPORT ContentRendererClient {
|
2013-12-17 23:04:35 +01:00
|
|
|
// Returns true if a popup window should be allowed.
|
|
|
|
virtual bool AllowPopup();
|
2016-02-02 22:32:44 +01:00
|
|
|
|
2016-04-27 22:38:52 +02:00
|
|
|
-#if defined(OS_ANDROID)
|
2016-02-02 22:32:44 +01:00
|
|
|
// TODO(sgurun) This callback is deprecated and will be removed as soon
|
|
|
|
// as android webview completes implementation of a resource throttle based
|
|
|
|
// shouldoverrideurl implementation. See crbug.com/325351
|
2016-04-27 22:38:52 +02:00
|
|
|
@@ -216,6 +215,7 @@ class CONTENT_EXPORT ContentRendererClient {
|
2016-02-02 22:32:44 +01:00
|
|
|
blink::WebNavigationPolicy default_policy,
|
|
|
|
bool is_redirect);
|
2015-11-10 21:18:16 +01:00
|
|
|
|
2016-04-27 22:38:52 +02:00
|
|
|
+#if defined(OS_ANDROID)
|
|
|
|
// Indicates if the Android MediaPlayer should be used instead of Chrome's
|
|
|
|
// built in media player for the given |url|. Defaults to false.
|
|
|
|
virtual bool ShouldUseMediaPlayerForURL(const GURL& url);
|
2014-09-04 19:53:40 +02:00
|
|
|
diff --git renderer/render_frame_impl.cc renderer/render_frame_impl.cc
|
2016-05-25 01:35:43 +02:00
|
|
|
index 4ff6aaa..4309775 100644
|
2014-09-04 19:53:40 +02:00
|
|
|
--- renderer/render_frame_impl.cc
|
|
|
|
+++ renderer/render_frame_impl.cc
|
2016-05-25 01:35:43 +02:00
|
|
|
@@ -4771,7 +4771,6 @@ WebNavigationPolicy RenderFrameImpl::decidePolicyForNavigation(
|
2015-11-10 21:18:16 +01:00
|
|
|
(pending_navigation_params_ &&
|
|
|
|
!pending_navigation_params_->request_params.redirects.empty());
|
|
|
|
|
2016-02-02 22:32:44 +01:00
|
|
|
-#ifdef OS_ANDROID
|
|
|
|
// The handlenavigation API is deprecated and will be removed once
|
|
|
|
// crbug.com/325351 is resolved.
|
2016-04-27 22:38:52 +02:00
|
|
|
if (GetContentClient()->renderer()->HandleNavigation(
|
2016-05-25 01:35:43 +02:00
|
|
|
@@ -4780,7 +4779,6 @@ WebNavigationPolicy RenderFrameImpl::decidePolicyForNavigation(
|
2016-02-02 22:32:44 +01:00
|
|
|
is_redirect)) {
|
|
|
|
return blink::WebNavigationPolicyIgnore;
|
|
|
|
}
|
|
|
|
-#endif
|
|
|
|
|
2015-11-10 21:18:16 +01:00
|
|
|
Referrer referrer(
|
|
|
|
RenderViewImpl::GetReferrerFromRequest(frame_, info.urlRequest));
|