chore: bump chromium to f30828899e4cd7161f6dc6507023f (master) (#20824)
* chore: bump chromium in DEPS to 0476932294da8809a19189b9f54cee11d50cc512 * update chromium patches (#20838) * chore: bump chromium in DEPS to 838863f5ec9e8a12132a10bb47be8382ad9756a7 * IsRendererTransferNeededForNavigation went away1867031
* [arraybuffer] Move the ArrayBuffer implementation from wtf to core1875731
* URLLoaderRequest new mojo types * context menu enums moved around1872004
1876088
1866520
* chore: bump chromium in DEPS to dc9525d251bf30828899e4cd7161f6dc6507023f * update chromium patches * [WIP] Convert network hints IPC to Mojo1881967
* jumbo build is no longer supported1881967
* fix disable-color-correct-rendering * [FIXME] fix printing patch compiles but prob doesn't work * explicitly include ax_enums1759821
* fixup! [WIP] Convert network hints IPC to Mojo * fix base::span * fix AsarURLLoader to not double-std::move * fix debug build * fix msstl patch * lint * more fix msstl * mooooore fix msstl * fix compile * update backport_fix_msstl_compat_in_ui_events.patch * update msstl compat patch * don't try to build chrome's prefetch predictor * build: fix compilation on windows * Fixup patches for MAS build * Free up disk space for mac debug builds * fix: apply custom site instance only for main frame * Fixup from rebase * Try not generating symbols for mac debug builds * Remove double entry of patch * FIx compile errors * Trigger CI * Set symbol_level to 1 for mac debug builds
This commit is contained in:
parent
f18fca0729
commit
9a198e8ef4
60 changed files with 759 additions and 686 deletions
|
@ -12,6 +12,7 @@
|
|||
#include "base/strings/stringprintf.h"
|
||||
#include "base/task/post_task.h"
|
||||
#include "content/public/browser/file_url_loader.h"
|
||||
#include "mojo/public/cpp/bindings/receiver.h"
|
||||
#include "mojo/public/cpp/bindings/strong_binding.h"
|
||||
#include "mojo/public/cpp/system/data_pipe_producer.h"
|
||||
#include "mojo/public/cpp/system/file_data_source.h"
|
||||
|
@ -79,20 +80,17 @@ class AsarURLLoader : public network::mojom::URLLoader {
|
|||
void ResumeReadingBodyFromNet() override {}
|
||||
|
||||
private:
|
||||
AsarURLLoader() : binding_(this) {}
|
||||
AsarURLLoader() {}
|
||||
~AsarURLLoader() override = default;
|
||||
|
||||
void Start(const network::ResourceRequest& request,
|
||||
network::mojom::URLLoaderRequest loader,
|
||||
mojo::PendingReceiver<network::mojom::URLLoader> loader,
|
||||
network::mojom::URLLoaderClientPtrInfo client_info,
|
||||
scoped_refptr<net::HttpResponseHeaders> extra_response_headers) {
|
||||
network::ResourceResponseHead head;
|
||||
head.request_start = base::TimeTicks::Now();
|
||||
head.response_start = base::TimeTicks::Now();
|
||||
head.headers = extra_response_headers;
|
||||
binding_.Bind(std::move(loader));
|
||||
binding_.set_connection_error_handler(base::BindOnce(
|
||||
&AsarURLLoader::OnConnectionError, base::Unretained(this)));
|
||||
|
||||
client_.Bind(std::move(client_info));
|
||||
|
||||
|
@ -112,6 +110,10 @@ class AsarURLLoader : public network::mojom::URLLoader {
|
|||
return;
|
||||
}
|
||||
|
||||
receiver_.Bind(std::move(loader));
|
||||
receiver_.set_disconnect_handler(base::BindOnce(
|
||||
&AsarURLLoader::OnConnectionError, base::Unretained(this)));
|
||||
|
||||
// Parse asar archive.
|
||||
std::shared_ptr<Archive> archive = GetOrCreateAsarArchive(asar_path);
|
||||
Archive::FileInfo info;
|
||||
|
@ -245,7 +247,7 @@ class AsarURLLoader : public network::mojom::URLLoader {
|
|||
}
|
||||
|
||||
void OnConnectionError() {
|
||||
binding_.Close();
|
||||
receiver_.reset();
|
||||
MaybeDeleteSelf();
|
||||
}
|
||||
|
||||
|
@ -256,7 +258,7 @@ class AsarURLLoader : public network::mojom::URLLoader {
|
|||
}
|
||||
|
||||
void MaybeDeleteSelf() {
|
||||
if (!binding_.is_bound() && !client_.is_bound())
|
||||
if (!receiver_.is_bound() && !client_.is_bound())
|
||||
delete this;
|
||||
}
|
||||
|
||||
|
@ -279,7 +281,7 @@ class AsarURLLoader : public network::mojom::URLLoader {
|
|||
}
|
||||
|
||||
std::unique_ptr<mojo::DataPipeProducer> data_producer_;
|
||||
mojo::Binding<network::mojom::URLLoader> binding_;
|
||||
mojo::Receiver<network::mojom::URLLoader> receiver_{this};
|
||||
network::mojom::URLLoaderClientPtr client_;
|
||||
|
||||
// In case of successful loads, this holds the total number of bytes written
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue