fix: implement ses.getBlobData() for NetworkService (#20041)
* pass data pipe to JS * implement reading buffer * re-enable ses.getBlobData test * remove AtomBlobReader
This commit is contained in:
parent
cc9436f288
commit
96b42bddb8
11 changed files with 259 additions and 229 deletions
|
@ -29,7 +29,6 @@
|
|||
#include "net/base/escape.h"
|
||||
#include "services/network/public/cpp/features.h"
|
||||
#include "services/network/public/cpp/wrapper_shared_url_loader_factory.h"
|
||||
#include "shell/browser/atom_blob_reader.h"
|
||||
#include "shell/browser/atom_browser_client.h"
|
||||
#include "shell/browser/atom_browser_main_parts.h"
|
||||
#include "shell/browser/atom_download_manager_delegate.h"
|
||||
|
@ -256,15 +255,6 @@ std::string AtomBrowserContext::GetUserAgent() const {
|
|||
return user_agent_;
|
||||
}
|
||||
|
||||
AtomBlobReader* AtomBrowserContext::GetBlobReader() {
|
||||
if (!blob_reader_.get()) {
|
||||
content::ChromeBlobStorageContext* blob_context =
|
||||
content::ChromeBlobStorageContext::GetFor(this);
|
||||
blob_reader_.reset(new AtomBlobReader(blob_context));
|
||||
}
|
||||
return blob_reader_.get();
|
||||
}
|
||||
|
||||
predictors::PreconnectManager* AtomBrowserContext::GetPreconnectManager() {
|
||||
if (!preconnect_manager_.get()) {
|
||||
preconnect_manager_.reset(new predictors::PreconnectManager(nullptr, this));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue