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

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: Fix trybot failure (use static inner class in instrumentation test) Created 5 years, 5 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 #include "third_party/WebKit/public/web/WebPluginPlaceholder.h" 10 #include "third_party/WebKit/public/web/WebPluginPlaceholder.h"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 } 94 }
95 95
96 bool ContentRendererClient::RunIdleHandlerWhenWidgetsHidden() { 96 bool ContentRendererClient::RunIdleHandlerWhenWidgetsHidden() {
97 return true; 97 return true;
98 } 98 }
99 99
100 bool ContentRendererClient::AllowPopup() { 100 bool ContentRendererClient::AllowPopup() {
101 return false; 101 return false;
102 } 102 }
103 103
104 #ifdef OS_ANDROID
105 bool ContentRendererClient::HandleNavigation(
106 RenderFrame* render_frame,
107 DocumentState* document_state,
108 int opener_id,
109 blink::WebFrame* frame,
110 const blink::WebURLRequest& request,
111 blink::WebNavigationType type,
112 blink::WebNavigationPolicy default_policy,
113 bool is_redirect) {
114 return false;
115 }
116 #endif
117
118 bool ContentRendererClient::ShouldFork(blink::WebLocalFrame* frame, 104 bool ContentRendererClient::ShouldFork(blink::WebLocalFrame* frame,
119 const GURL& url, 105 const GURL& url,
120 const std::string& http_method, 106 const std::string& http_method,
121 bool is_initial_navigation, 107 bool is_initial_navigation,
122 bool is_server_redirect, 108 bool is_server_redirect,
123 bool* send_referrer) { 109 bool* send_referrer) {
124 return false; 110 return false;
125 } 111 }
126 112
127 bool ContentRendererClient::WillSendRequest( 113 bool ContentRendererClient::WillSendRequest(
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 std::string ContentRendererClient::GetUserAgentOverrideForURL(const GURL& url) { 208 std::string ContentRendererClient::GetUserAgentOverrideForURL(const GURL& url) {
223 return std::string(); 209 return std::string();
224 } 210 }
225 211
226 scoped_ptr<blink::WebAppBannerClient> 212 scoped_ptr<blink::WebAppBannerClient>
227 ContentRendererClient::CreateAppBannerClient(RenderFrame* render_frame) { 213 ContentRendererClient::CreateAppBannerClient(RenderFrame* render_frame) {
228 return nullptr; 214 return nullptr;
229 } 215 }
230 216
231 } // namespace content 217 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698