url: Add a url.Origin(url.internal.mojom.Origin) constructor
The org.chromium.url.Origin class is a user-friendly wrapper around an org.chromium.url.internal.mojom.Origin, which also happens to be the type one obtains from Mojo-generated interfaces in Java that take url.mojom.Origin in their .mojom definitions. In order to make it possible (or, at least, explicitly "supported", without the stigma of accessing fields of a class in an "internal" namespace) to manipulate the origins obtained via these code-generated interfaces, this CL adds a new url.Origin(url.internal.mojom.Origin) constructor. In the long run, it would be best if Mojo could just give us the user-friendly type instead of the "internal" type: that's also tracked in the associated bug. Bug: 1156866 Change-Id: I2e52feaca9bbd6c5514a15b07c27e7300c8e34e6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2586327Reviewed-by:Charlie Harrison <csharrison@chromium.org> Commit-Queue: David Van Cleve <davidvc@chromium.org> Cr-Commit-Position: refs/heads/master@{#836708}
Showing
Please register or sign in to comment