2014-09-04 19:53:40 +02:00
|
|
|
diff --git public/renderer/content_renderer_client.cc public/renderer/content_renderer_client.cc
|
2016-11-23 21:54:29 +01:00
|
|
|
index 642521f..8fb647f 100644
|
2014-09-04 19:53:40 +02:00
|
|
|
--- public/renderer/content_renderer_client.cc
|
|
|
|
+++ public/renderer/content_renderer_client.cc
|
2016-10-17 20:14:44 +02:00
|
|
|
@@ -100,7 +100,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-10-17 20:14:44 +02:00
|
|
|
@@ -113,6 +112,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-11-23 21:54:29 +01:00
|
|
|
index f2a854f..913e30c 100644
|
2014-09-04 19:53:40 +02:00
|
|
|
--- public/renderer/content_renderer_client.h
|
|
|
|
+++ public/renderer/content_renderer_client.h
|
2016-11-23 21:54:29 +01:00
|
|
|
@@ -204,7 +204,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-11-23 21:54:29 +01:00
|
|
|
@@ -220,6 +219,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-11-23 21:54:29 +01:00
|
|
|
index 2f79ac0..7e0c73b 100644
|
2014-09-04 19:53:40 +02:00
|
|
|
--- renderer/render_frame_impl.cc
|
|
|
|
+++ renderer/render_frame_impl.cc
|
2016-11-23 21:54:29 +01:00
|
|
|
@@ -5112,7 +5112,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-11-23 21:54:29 +01:00
|
|
|
@@ -5121,7 +5120,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));
|