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

Unified Diff: content/renderer/render_frame_impl.h

Issue 176883012: Set the original url correctly if the frame is loaded via loadData (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add // static comment Created 6 years, 9 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 bfcb092bf96f5b63cad8961c82116408a94788dd..e30cda7e9d1ca2433c2c29982eefc72931fa1783 100644
--- a/content/renderer/render_frame_impl.h
+++ b/content/renderer/render_frame_impl.h
@@ -371,6 +371,11 @@ class CONTENT_EXPORT RenderFrameImpl
const gfx::Range& selection_range,
const ContextMenuParams& params);
+ // Returns the original request url. If there is no redirect, the original
+ // url is the same as ds->request()->url(). If the WebDataSource belongs to a
+ // frame was loaded by loadData, the original url will be ds->unreachableURL()
+ static GURL GetOriginalRequestURL(blink::WebDataSource* ds);
+
// Stores the WebFrame we are associated with.
blink::WebFrame* frame_;

Powered by Google App Engine
This is Rietveld 408576698