Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(185)

Side by Side Diff: content/public/renderer/content_renderer_client.cc

Issue 1824143004: Allow WebView to force MediaPlayer for unsupported containers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't concat strings. Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #include "content/public/renderer/content_renderer_client.h" 5 #include "content/public/renderer/content_renderer_client.h"
6 6
7 #include "content/public/renderer/media_stream_renderer_factory.h" 7 #include "content/public/renderer/media_stream_renderer_factory.h"
8 #include "media/base/renderer_factory.h" 8 #include "media/base/renderer_factory.h"
9 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerClie nt.h" 9 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerClie nt.h"
10 10
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 } 91 }
92 92
93 bool ContentRendererClient::AllowTimerSuspensionWhenProcessBackgrounded() { 93 bool ContentRendererClient::AllowTimerSuspensionWhenProcessBackgrounded() {
94 return false; 94 return false;
95 } 95 }
96 96
97 bool ContentRendererClient::AllowPopup() { 97 bool ContentRendererClient::AllowPopup() {
98 return false; 98 return false;
99 } 99 }
100 100
101 #ifdef OS_ANDROID 101 #if defined(OS_ANDROID)
102 bool ContentRendererClient::HandleNavigation( 102 bool ContentRendererClient::HandleNavigation(
103 RenderFrame* render_frame, 103 RenderFrame* render_frame,
104 bool is_content_initiated, 104 bool is_content_initiated,
105 int opener_id, 105 int opener_id,
106 blink::WebFrame* frame, 106 blink::WebFrame* frame,
107 const blink::WebURLRequest& request, 107 const blink::WebURLRequest& request,
108 blink::WebNavigationType type, 108 blink::WebNavigationType type,
109 blink::WebNavigationPolicy default_policy, 109 blink::WebNavigationPolicy default_policy,
110 bool is_redirect) { 110 bool is_redirect) {
111 return false; 111 return false;
112 } 112 }
113
114 bool ContentRendererClient::ShouldUseMediaPlayerForURL(const GURL& url) {
115 return false;
116 }
113 #endif 117 #endif
114 118
115 bool ContentRendererClient::ShouldFork(blink::WebLocalFrame* frame, 119 bool ContentRendererClient::ShouldFork(blink::WebLocalFrame* frame,
116 const GURL& url, 120 const GURL& url,
117 const std::string& http_method, 121 const std::string& http_method,
118 bool is_initial_navigation, 122 bool is_initial_navigation,
119 bool is_server_redirect, 123 bool is_server_redirect,
120 bool* send_referrer) { 124 bool* send_referrer) {
121 return false; 125 return false;
122 } 126 }
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 scoped_ptr<blink::WebAppBannerClient> 223 scoped_ptr<blink::WebAppBannerClient>
220 ContentRendererClient::CreateAppBannerClient(RenderFrame* render_frame) { 224 ContentRendererClient::CreateAppBannerClient(RenderFrame* render_frame) {
221 return nullptr; 225 return nullptr;
222 } 226 }
223 227
224 bool ContentRendererClient::ShouldEnforceWebRTCRoutingPreferences() { 228 bool ContentRendererClient::ShouldEnforceWebRTCRoutingPreferences() {
225 return true; 229 return true;
226 } 230 }
227 231
228 } // namespace content 232 } // namespace content
OLDNEW
« no previous file with comments | « content/public/renderer/content_renderer_client.h ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698