feat: allow setting SSL config (#25461)
* feat: allow setting SSL config * lint * configure system network context with min TLS1.2 * fix * note defaults
This commit is contained in:
parent
515e85079f
commit
27ea3fc069
7 changed files with 108 additions and 0 deletions
|
@ -147,6 +147,10 @@ class ElectronBrowserContext
|
|||
return protocol_registry_.get();
|
||||
}
|
||||
|
||||
void SetSSLConfig(network::mojom::SSLConfigPtr config);
|
||||
network::mojom::SSLConfigPtr GetSSLConfig();
|
||||
void SetSSLConfigClient(mojo::Remote<network::mojom::SSLConfigClient> client);
|
||||
|
||||
~ElectronBrowserContext() override;
|
||||
|
||||
private:
|
||||
|
@ -190,6 +194,9 @@ class ElectronBrowserContext
|
|||
scoped_refptr<network::SharedURLLoaderFactory> url_loader_factory_;
|
||||
mojo::Receiver<network::mojom::TrustedURLLoaderAuthClient> auth_client_{this};
|
||||
|
||||
network::mojom::SSLConfigPtr ssl_config_;
|
||||
mojo::Remote<network::mojom::SSLConfigClient> ssl_config_client_;
|
||||
|
||||
base::WeakPtrFactory<ElectronBrowserContext> weak_factory_;
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(ElectronBrowserContext);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue