-
Notifications
You must be signed in to change notification settings - Fork 921
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use chromium code for url crate #27880
Conversation
bb412fe
to
2ebf65a
Compare
|
||
impl Error for ParseError {} | ||
|
||
simple_enum_error! { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: you could use thiserror
instead if you want to get rid of the macro
Released in v1.78.15 |
include!("brave/third_party/rust/url/v2/crate/parse.h"); | ||
fn InitializeICUForTesting(); | ||
fn ParseURL(url: &str) -> ParseResult; | ||
fn Resolve(base: &ParseResult, relative: &str) -> ParseResult; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider returning UniquePtr<ParseResult>
and using the CxxString
type for all applicable struct fields to avoid unnecessary copying
Resolves brave/brave-browser#44352