feat: migrate protocol module to NetworkService (Part 7) (#18290)
* fix: make IsProtocolHandled return true for builtin schemes * fix: return ERR_NOT_IMPLEMENTED for wrong arg * Initial work of AsarURLLoader * Put normal file logics in AsarURLLoader * Implement asar file reading * Don't change URL for unpacked file * Fix cpplint warning
This commit is contained in:
parent
fde3137b90
commit
2ad62cedc3
5 changed files with 340 additions and 5 deletions
20
atom/browser/net/asar/asar_url_loader.h
Normal file
20
atom/browser/net/asar/asar_url_loader.h
Normal file
|
@ -0,0 +1,20 @@
|
|||
// Copyright (c) 2019 GitHub, Inc.
|
||||
// Use of this source code is governed by the MIT license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef ATOM_BROWSER_NET_ASAR_ASAR_URL_LOADER_H_
|
||||
#define ATOM_BROWSER_NET_ASAR_ASAR_URL_LOADER_H_
|
||||
|
||||
#include "services/network/public/mojom/url_loader.mojom.h"
|
||||
|
||||
namespace asar {
|
||||
|
||||
void CreateAsarURLLoader(
|
||||
const network::ResourceRequest& request,
|
||||
network::mojom::URLLoaderRequest loader,
|
||||
network::mojom::URLLoaderClientPtr client,
|
||||
scoped_refptr<net::HttpResponseHeaders> extra_response_headers);
|
||||
|
||||
} // namespace asar
|
||||
|
||||
#endif // ATOM_BROWSER_NET_ASAR_ASAR_URL_LOADER_H_
|
Loading…
Add table
Add a link
Reference in a new issue