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

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

Issue 1155713005: Use a resource throttle to implement shouldOverrideUrlLoading. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Change XHR test and remove HandleNavigation path. Created 5 years, 6 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 "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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698