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

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

Issue 2459143002: Avoid GURL allocations/copies/frees in RenderFrameImpl::willSendRequest (Closed)
Patch Set: s/host/host_piece 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 "ui/gfx/icc_profile.h" 10 #include "ui/gfx/icc_profile.h"
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 const std::string& http_method, 123 const std::string& http_method,
124 bool is_initial_navigation, 124 bool is_initial_navigation,
125 bool is_server_redirect, 125 bool is_server_redirect,
126 bool* send_referrer) { 126 bool* send_referrer) {
127 return false; 127 return false;
128 } 128 }
129 129
130 bool ContentRendererClient::WillSendRequest( 130 bool ContentRendererClient::WillSendRequest(
131 blink::WebFrame* frame, 131 blink::WebFrame* frame,
132 ui::PageTransition transition_type, 132 ui::PageTransition transition_type,
133 const GURL& url, 133 const blink::WebURL& url,
134 const GURL& first_party_for_cookies,
135 GURL* new_url) { 134 GURL* new_url) {
136 return false; 135 return false;
137 } 136 }
138 137
139 bool ContentRendererClient::IsPrefetchOnly( 138 bool ContentRendererClient::IsPrefetchOnly(
140 RenderFrame* render_frame, 139 RenderFrame* render_frame,
141 const blink::WebURLRequest& request) { 140 const blink::WebURLRequest& request) {
142 return false; 141 return false;
143 } 142 }
144 143
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 232
234 bool ContentRendererClient::ShouldEnforceWebRTCRoutingPreferences() { 233 bool ContentRendererClient::ShouldEnforceWebRTCRoutingPreferences() {
235 return true; 234 return true;
236 } 235 }
237 236
238 GURL ContentRendererClient::OverrideFlashEmbedWithHTML(const GURL& url) { 237 GURL ContentRendererClient::OverrideFlashEmbedWithHTML(const GURL& url) {
239 return GURL(); 238 return GURL();
240 } 239 }
241 240
242 } // namespace content 241 } // namespace content
OLDNEW
« no previous file with comments | « content/public/renderer/content_renderer_client.h ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698