Remove URLRequestJobFactory::IsHandledURL.
https://codereview.chromium.org/2783343002
This commit is contained in:
parent
90574160db
commit
e16e1e2854
2 changed files with 4 additions and 9 deletions
|
@ -117,17 +117,13 @@ bool AtomURLRequestJobFactory::IsHandledProtocol(
|
||||||
net::URLRequest::IsHandledProtocol(scheme);
|
net::URLRequest::IsHandledProtocol(scheme);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool AtomURLRequestJobFactory::IsHandledURL(const GURL& url) const {
|
bool AtomURLRequestJobFactory::IsSafeRedirectTarget(
|
||||||
if (!url.is_valid()) {
|
const GURL& location) const {
|
||||||
|
if (!location.is_valid()) {
|
||||||
// We handle error cases.
|
// We handle error cases.
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return IsHandledProtocol(url.scheme());
|
return IsHandledProtocol(location.scheme());
|
||||||
}
|
|
||||||
|
|
||||||
bool AtomURLRequestJobFactory::IsSafeRedirectTarget(
|
|
||||||
const GURL& location) const {
|
|
||||||
return IsHandledURL(location);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace atom
|
} // namespace atom
|
||||||
|
|
|
@ -55,7 +55,6 @@ class AtomURLRequestJobFactory : public net::URLRequestJobFactory {
|
||||||
net::URLRequest* request,
|
net::URLRequest* request,
|
||||||
net::NetworkDelegate* network_delegate) const override;
|
net::NetworkDelegate* network_delegate) const override;
|
||||||
bool IsHandledProtocol(const std::string& scheme) const override;
|
bool IsHandledProtocol(const std::string& scheme) const override;
|
||||||
bool IsHandledURL(const GURL& url) const override;
|
|
||||||
bool IsSafeRedirectTarget(const GURL& location) const override;
|
bool IsSafeRedirectTarget(const GURL& location) const override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue