LoadURLParams vs OpenURLParams

32 views
Skip to first unread message

Jonathan Dixon

unread,
Aug 2, 2013, 2:08:34 PM8/2/13
to conten...@chromium.org, cr...@chromium.org, j...@chromium.org
We seem to have two very similar classes for describing the parameters to a navigations

LoadURLParams
http://src.chromium.org/viewvc/chrome/trunk/src/content/public/browser/navigation_controller.h?revision=213324

OpenURLParams


Is it intentional that both exist, or should they ultimately be combined?


(Came up as a side question in reviewing https://codereview.chromium.org/21378002/)

Thanks!

Jochen Eisinger

unread,
Aug 5, 2013, 12:40:53 AM8/5/13
to Jonathan Dixon, content-team, Charlie Reis, j...@chromium.org
IIRC OpenURLParams was introduced because the parameter list of OpenURL became unwieldy. Assuming there is enough overlap, I'd say way can join the two.

Technically, OpenURLParams is used to communicate from content to the embedder, and LoadURLParams is used the other way round (and inside content). However, the embedder ends up converting the OpenURLParams to LoadURLParams anyway when calling back to content to make the navigation.

best
-jochen
Reply all
Reply to author
Forward
0 new messages