| 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 "media/base/renderer_factory.h" | 7 #include "media/base/renderer_factory.h" |
| 8 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerClie
nt.h" | 8 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerClie
nt.h" |
| 9 #include "third_party/WebKit/public/web/WebPluginPlaceholder.h" | 9 #include "third_party/WebKit/public/web/WebPluginPlaceholder.h" |
| 10 | 10 |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 } | 93 } |
| 94 | 94 |
| 95 bool ContentRendererClient::RunIdleHandlerWhenWidgetsHidden() { | 95 bool ContentRendererClient::RunIdleHandlerWhenWidgetsHidden() { |
| 96 return true; | 96 return true; |
| 97 } | 97 } |
| 98 | 98 |
| 99 bool ContentRendererClient::AllowPopup() { | 99 bool ContentRendererClient::AllowPopup() { |
| 100 return false; | 100 return false; |
| 101 } | 101 } |
| 102 | 102 |
| 103 #ifdef OS_ANDROID | |
| 104 bool ContentRendererClient::HandleNavigation( | |
| 105 RenderFrame* render_frame, | |
| 106 DocumentState* document_state, | |
| 107 int opener_id, | |
| 108 blink::WebFrame* frame, | |
| 109 const blink::WebURLRequest& request, | |
| 110 blink::WebNavigationType type, | |
| 111 blink::WebNavigationPolicy default_policy, | |
| 112 bool is_redirect) { | |
| 113 return false; | |
| 114 } | |
| 115 #endif | |
| 116 | |
| 117 bool ContentRendererClient::ShouldFork(blink::WebFrame* frame, | 103 bool ContentRendererClient::ShouldFork(blink::WebFrame* frame, |
| 118 const GURL& url, | 104 const GURL& url, |
| 119 const std::string& http_method, | 105 const std::string& http_method, |
| 120 bool is_initial_navigation, | 106 bool is_initial_navigation, |
| 121 bool is_server_redirect, | 107 bool is_server_redirect, |
| 122 bool* send_referrer) { | 108 bool* send_referrer) { |
| 123 return false; | 109 return false; |
| 124 } | 110 } |
| 125 | 111 |
| 126 bool ContentRendererClient::ShouldForwardToGuestContainer( | 112 bool ContentRendererClient::ShouldForwardToGuestContainer( |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 220 std::string ContentRendererClient::GetUserAgentOverrideForURL(const GURL& url) { | 206 std::string ContentRendererClient::GetUserAgentOverrideForURL(const GURL& url) { |
| 221 return std::string(); | 207 return std::string(); |
| 222 } | 208 } |
| 223 | 209 |
| 224 scoped_ptr<blink::WebAppBannerClient> | 210 scoped_ptr<blink::WebAppBannerClient> |
| 225 ContentRendererClient::CreateAppBannerClient(RenderFrame* render_frame) { | 211 ContentRendererClient::CreateAppBannerClient(RenderFrame* render_frame) { |
| 226 return nullptr; | 212 return nullptr; |
| 227 } | 213 } |
| 228 | 214 |
| 229 } // namespace content | 215 } // namespace content |
| OLD | NEW |