| 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 #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 Loading... |
| 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 |
| 102 bool ContentRendererClient::HandleNavigation( |
| 103 RenderFrame* render_frame, |
| 104 bool is_content_initiated, |
| 105 int opener_id, |
| 106 blink::WebFrame* frame, |
| 107 const blink::WebURLRequest& request, |
| 108 blink::WebNavigationType type, |
| 109 blink::WebNavigationPolicy default_policy, |
| 110 bool is_redirect) { |
| 111 return false; |
| 112 } |
| 113 #endif |
| 114 |
| 101 bool ContentRendererClient::ShouldFork(blink::WebLocalFrame* frame, | 115 bool ContentRendererClient::ShouldFork(blink::WebLocalFrame* frame, |
| 102 const GURL& url, | 116 const GURL& url, |
| 103 const std::string& http_method, | 117 const std::string& http_method, |
| 104 bool is_initial_navigation, | 118 bool is_initial_navigation, |
| 105 bool is_server_redirect, | 119 bool is_server_redirect, |
| 106 bool* send_referrer) { | 120 bool* send_referrer) { |
| 107 return false; | 121 return false; |
| 108 } | 122 } |
| 109 | 123 |
| 110 bool ContentRendererClient::WillSendRequest( | 124 bool ContentRendererClient::WillSendRequest( |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 scoped_ptr<blink::WebAppBannerClient> | 219 scoped_ptr<blink::WebAppBannerClient> |
| 206 ContentRendererClient::CreateAppBannerClient(RenderFrame* render_frame) { | 220 ContentRendererClient::CreateAppBannerClient(RenderFrame* render_frame) { |
| 207 return nullptr; | 221 return nullptr; |
| 208 } | 222 } |
| 209 | 223 |
| 210 bool ContentRendererClient::ShouldEnforceWebRTCRoutingPreferences() { | 224 bool ContentRendererClient::ShouldEnforceWebRTCRoutingPreferences() { |
| 211 return true; | 225 return true; |
| 212 } | 226 } |
| 213 | 227 |
| 214 } // namespace content | 228 } // namespace content |
| OLD | NEW |