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

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

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 #ifndef CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 5 #ifndef CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 6 #define CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 30 matching lines...) Expand all
41 class WebMediaStreamCenter; 41 class WebMediaStreamCenter;
42 class WebMediaStreamCenterClient; 42 class WebMediaStreamCenterClient;
43 class WebPlugin; 43 class WebPlugin;
44 class WebPluginContainer; 44 class WebPluginContainer;
45 class WebPrescientNetworking; 45 class WebPrescientNetworking;
46 class WebRTCPeerConnectionHandler; 46 class WebRTCPeerConnectionHandler;
47 class WebRTCPeerConnectionHandlerClient; 47 class WebRTCPeerConnectionHandlerClient;
48 class WebSpeechSynthesizer; 48 class WebSpeechSynthesizer;
49 class WebSpeechSynthesizerClient; 49 class WebSpeechSynthesizerClient;
50 class WebThemeEngine; 50 class WebThemeEngine;
51 class WebURL;
51 class WebURLResponse; 52 class WebURLResponse;
52 class WebURLRequest; 53 class WebURLRequest;
53 class WebWorkerContentSettingsClientProxy; 54 class WebWorkerContentSettingsClientProxy;
54 struct WebPluginParams; 55 struct WebPluginParams;
55 struct WebURLError; 56 struct WebURLError;
56 } 57 }
57 58
58 namespace cc { 59 namespace cc {
59 class ImageSerializationProcessor; 60 class ImageSerializationProcessor;
60 class RemoteCompositorBridge; 61 class RemoteCompositorBridge;
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 const GURL& url, 239 const GURL& url,
239 const std::string& http_method, 240 const std::string& http_method,
240 bool is_initial_navigation, 241 bool is_initial_navigation,
241 bool is_server_redirect, 242 bool is_server_redirect,
242 bool* send_referrer); 243 bool* send_referrer);
243 244
244 // Notifies the embedder that the given frame is requesting the resource at 245 // Notifies the embedder that the given frame is requesting the resource at
245 // |url|. If the function returns true, the url is changed to |new_url|. 246 // |url|. If the function returns true, the url is changed to |new_url|.
246 virtual bool WillSendRequest(blink::WebFrame* frame, 247 virtual bool WillSendRequest(blink::WebFrame* frame,
247 ui::PageTransition transition_type, 248 ui::PageTransition transition_type,
248 const GURL& url, 249 const blink::WebURL& url,
249 const GURL& first_party_for_cookies,
250 GURL* new_url); 250 GURL* new_url);
251 251
252 // Returns true if the request is associated with a document that is in 252 // Returns true if the request is associated with a document that is in
253 // ""prefetch only" mode, and will not be rendered. 253 // ""prefetch only" mode, and will not be rendered.
254 virtual bool IsPrefetchOnly(RenderFrame* render_frame, 254 virtual bool IsPrefetchOnly(RenderFrame* render_frame,
255 const blink::WebURLRequest& request); 255 const blink::WebURLRequest& request);
256 256
257 // See blink::Platform. 257 // See blink::Platform.
258 virtual unsigned long long VisitedLinkHash(const char* canonical_url, 258 virtual unsigned long long VisitedLinkHash(const char* canonical_url,
259 size_t length); 259 size_t length);
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 service_manager::InterfaceRegistry* interface_registry) {} 376 service_manager::InterfaceRegistry* interface_registry) {}
377 377
378 // Overwrites the given URL to use an HTML5 embed if possible. 378 // Overwrites the given URL to use an HTML5 embed if possible.
379 // An empty URL is returned if the URL is not overriden. 379 // An empty URL is returned if the URL is not overriden.
380 virtual GURL OverrideFlashEmbedWithHTML(const GURL& url); 380 virtual GURL OverrideFlashEmbedWithHTML(const GURL& url);
381 }; 381 };
382 382
383 } // namespace content 383 } // namespace content
384 384
385 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 385 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
OLDNEW
« no previous file with comments | « chrome/renderer/extensions/resource_request_policy.cc ('k') | content/public/renderer/content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698