feat: HTTP preconnect feature minimal for electronjs (#18671)
This commit is contained in:
parent
c57db7f163
commit
cddbddc543
17 changed files with 377 additions and 1 deletions
|
@ -13,6 +13,7 @@
|
|||
#include "base/memory/ref_counted_delete_on_sequence.h"
|
||||
#include "base/memory/weak_ptr.h"
|
||||
#include "chrome/browser/net/proxy_config_monitor.h"
|
||||
#include "chrome/browser/predictors/preconnect_manager.h"
|
||||
#include "content/public/browser/browser_context.h"
|
||||
#include "content/public/browser/resource_context.h"
|
||||
#include "electron/buildflags/buildflags.h"
|
||||
|
@ -87,6 +88,8 @@ class AtomBrowserContext
|
|||
AtomBlobReader* GetBlobReader();
|
||||
ResolveProxyHelper* GetResolveProxyHelper();
|
||||
|
||||
predictors::PreconnectManager* GetPreconnectManager();
|
||||
|
||||
// content::BrowserContext:
|
||||
base::FilePath GetPath() override;
|
||||
bool IsOffTheRecord() override;
|
||||
|
@ -164,6 +167,8 @@ class AtomBrowserContext
|
|||
// ProxyConfigClient.
|
||||
std::unique_ptr<ProxyConfigMonitor> proxy_config_monitor_;
|
||||
|
||||
std::unique_ptr<predictors::PreconnectManager> preconnect_manager_;
|
||||
|
||||
std::string user_agent_;
|
||||
base::FilePath path_;
|
||||
bool in_memory_ = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue