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

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

Issue 2262183002: [NoStatePrefetch] Do not send responses to renderer in prefetch mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prefetchProto
Patch Set: remove WebDocument api Created 4 years, 3 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
« no previous file with comments | « content/common/resource_request.h ('k') | content/public/renderer/content_renderer_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 bool* send_referrer); 241 bool* send_referrer);
242 242
243 // Notifies the embedder that the given frame is requesting the resource at 243 // Notifies the embedder that the given frame is requesting the resource at
244 // |url|. If the function returns true, the url is changed to |new_url|. 244 // |url|. If the function returns true, the url is changed to |new_url|.
245 virtual bool WillSendRequest(blink::WebFrame* frame, 245 virtual bool WillSendRequest(blink::WebFrame* frame,
246 ui::PageTransition transition_type, 246 ui::PageTransition transition_type,
247 const GURL& url, 247 const GURL& url,
248 const GURL& first_party_for_cookies, 248 const GURL& first_party_for_cookies,
249 GURL* new_url); 249 GURL* new_url);
250 250
251 // Returns true if the request is associated with a document that is in
252 // ""prefetch only" mode, and will not be rendered.
253 virtual bool IsPrefetchOnly(RenderFrame* render_frame,
254 const blink::WebURLRequest& request);
255
251 // See blink::Platform. 256 // See blink::Platform.
252 virtual unsigned long long VisitedLinkHash(const char* canonical_url, 257 virtual unsigned long long VisitedLinkHash(const char* canonical_url,
253 size_t length); 258 size_t length);
254 virtual bool IsLinkVisited(unsigned long long link_hash); 259 virtual bool IsLinkVisited(unsigned long long link_hash);
255 virtual blink::WebPrescientNetworking* GetPrescientNetworking(); 260 virtual blink::WebPrescientNetworking* GetPrescientNetworking();
256 virtual bool ShouldOverridePageVisibilityState( 261 virtual bool ShouldOverridePageVisibilityState(
257 const RenderFrame* render_frame, 262 const RenderFrame* render_frame,
258 blink::WebPageVisibilityState* override_state); 263 blink::WebPageVisibilityState* override_state);
259 264
260 // Returns true if the given Pepper plugin is external (requiring special 265 // Returns true if the given Pepper plugin is external (requiring special
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 shell::InterfaceRegistry* interface_registry) {} 373 shell::InterfaceRegistry* interface_registry) {}
369 374
370 // Overwrites the given URL to use an HTML5 embed if possible. 375 // Overwrites the given URL to use an HTML5 embed if possible.
371 // An empty URL is returned if the URL is not overriden. 376 // An empty URL is returned if the URL is not overriden.
372 virtual GURL OverrideFlashEmbedWithHTML(const GURL& url); 377 virtual GURL OverrideFlashEmbedWithHTML(const GURL& url);
373 }; 378 };
374 379
375 } // namespace content 380 } // namespace content
376 381
377 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_ 382 #endif // CONTENT_PUBLIC_RENDERER_CONTENT_RENDERER_CLIENT_H_
OLDNEW
« no previous file with comments | « content/common/resource_request.h ('k') | content/public/renderer/content_renderer_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698