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

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

Issue 2459143002: Avoid GURL allocations/copies/frees in RenderFrameImpl::willSendRequest (Closed)
Patch Set: compile fix Created 4 years, 1 month 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 "cc/blimp/remote_compositor_bridge.h" 7 #include "cc/blimp/remote_compositor_bridge.h"
8 #include "content/public/renderer/media_stream_renderer_factory.h" 8 #include "content/public/renderer/media_stream_renderer_factory.h"
9 #include "media/base/renderer_factory.h" 9 #include "media/base/renderer_factory.h"
10 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerClie nt.h" 10 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerClie nt.h"
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 const std::string& http_method, 124 const std::string& http_method,
125 bool is_initial_navigation, 125 bool is_initial_navigation,
126 bool is_server_redirect, 126 bool is_server_redirect,
127 bool* send_referrer) { 127 bool* send_referrer) {
128 return false; 128 return false;
129 } 129 }
130 130
131 bool ContentRendererClient::WillSendRequest( 131 bool ContentRendererClient::WillSendRequest(
132 blink::WebFrame* frame, 132 blink::WebFrame* frame,
133 ui::PageTransition transition_type, 133 ui::PageTransition transition_type,
134 const GURL& url, 134 const blink::WebURL& url,
135 const GURL& first_party_for_cookies,
136 GURL* new_url) { 135 GURL* new_url) {
137 return false; 136 return false;
138 } 137 }
139 138
140 bool ContentRendererClient::IsPrefetchOnly( 139 bool ContentRendererClient::IsPrefetchOnly(
141 RenderFrame* render_frame, 140 RenderFrame* render_frame,
142 const blink::WebURLRequest& request) { 141 const blink::WebURLRequest& request) {
143 return false; 142 return false;
144 } 143 }
145 144
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 238
240 bool ContentRendererClient::ShouldEnforceWebRTCRoutingPreferences() { 239 bool ContentRendererClient::ShouldEnforceWebRTCRoutingPreferences() {
241 return true; 240 return true;
242 } 241 }
243 242
244 GURL ContentRendererClient::OverrideFlashEmbedWithHTML(const GURL& url) { 243 GURL ContentRendererClient::OverrideFlashEmbedWithHTML(const GURL& url) {
245 return GURL(); 244 return GURL();
246 } 245 }
247 246
248 } // namespace content 247 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698