feat: migrate protocol module to NetworkService (Part 12) (#18726)
* Support "uploadData" in "request" argument * Support "uploadData" option in http handler * Fix building on win32
This commit is contained in:
parent
e5d1e7b4da
commit
0e3ab7c128
4 changed files with 51 additions and 7 deletions
|
@ -35,14 +35,16 @@ class URLPipeLoader : public network::mojom::URLLoader,
|
|||
std::unique_ptr<network::ResourceRequest> request,
|
||||
network::mojom::URLLoaderRequest loader,
|
||||
network::mojom::URLLoaderClientPtr client,
|
||||
const net::NetworkTrafficAnnotationTag& annotation);
|
||||
const net::NetworkTrafficAnnotationTag& annotation,
|
||||
base::DictionaryValue upload_data);
|
||||
|
||||
private:
|
||||
~URLPipeLoader() override;
|
||||
|
||||
void Start(scoped_refptr<network::SharedURLLoaderFactory> factory,
|
||||
std::unique_ptr<network::ResourceRequest> request,
|
||||
const net::NetworkTrafficAnnotationTag& annotation);
|
||||
const net::NetworkTrafficAnnotationTag& annotation,
|
||||
base::DictionaryValue upload_data);
|
||||
void NotifyComplete(int result);
|
||||
void OnResponseStarted(const GURL& final_url,
|
||||
const network::ResourceResponseHead& response_head);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue