support https, ws, wss builtin schemes to be intercepted
This commit is contained in:
parent
7fee639edf
commit
707503ac40
4 changed files with 37 additions and 4 deletions
|
@ -8,7 +8,8 @@
|
|||
|
||||
namespace atom {
|
||||
|
||||
HttpProtocolHandler::HttpProtocolHandler() {
|
||||
HttpProtocolHandler::HttpProtocolHandler(const std::string& scheme)
|
||||
: scheme_(scheme) {
|
||||
}
|
||||
|
||||
HttpProtocolHandler::~HttpProtocolHandler() {
|
||||
|
@ -19,7 +20,7 @@ net::URLRequestJob* HttpProtocolHandler::MaybeCreateJob(
|
|||
net::NetworkDelegate* network_delegate) const {
|
||||
return net::URLRequestHttpJob::Factory(request,
|
||||
network_delegate,
|
||||
"http");
|
||||
scheme_);
|
||||
}
|
||||
|
||||
} // namespace atom
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue