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

Unified Diff: content/renderer/render_frame_impl.h

Issue 906283003: PlzNavigate: Support data urls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/render_frame_impl.h
diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h
index 938c9e41e1c94dfe3f37a6130ece7a4de28f5387..eae81b225056b5a270e235cc313fb3ab90387ef2 100644
--- a/content/renderer/render_frame_impl.h
+++ b/content/renderer/render_frame_impl.h
@@ -706,8 +706,13 @@ class CONTENT_EXPORT RenderFrameImpl
// PlzNavigate
// Sends a FrameHostMsg_BeginNavigation to the browser based on the contents
- // of the WebURLRequest.
- void BeginNavigation(blink::WebURLRequest* request);
+ // of the WebURLRequest. Returns whether a network request should be made for
+ // the navigation.
+ bool BeginNavigation(blink::WebURLRequest* request);
+
+ // Loads a data url.
+ void LoadDataURL(const CommonNavigationParams& params,
+ blink::WebFrame* frame);
// Returns the URL being loaded by the |frame_|'s request.
GURL GetLoadingUrl() const;

Powered by Google App Engine
This is Rietveld 408576698