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