mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-24 14:26:09 +03:00
socket: Support NetworkIsolationKey in RawConnect
This commit is contained in:
parent
6a791df12e
commit
d9bf3636ed
@ -289,23 +289,25 @@ int InitSocketHandleForWebSocketRequest(
|
|||||||
proxy_auth_callback);
|
proxy_auth_callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
int InitSocketHandleForRawConnect2(const HostPortPair& endpoint,
|
int InitSocketHandleForRawConnect2(
|
||||||
HttpNetworkSession* session,
|
const HostPortPair& endpoint,
|
||||||
int request_load_flags,
|
HttpNetworkSession* session,
|
||||||
RequestPriority request_priority,
|
int request_load_flags,
|
||||||
const ProxyInfo& proxy_info,
|
RequestPriority request_priority,
|
||||||
const SSLConfig& ssl_config_for_origin,
|
const ProxyInfo& proxy_info,
|
||||||
const SSLConfig& ssl_config_for_proxy,
|
const SSLConfig& ssl_config_for_origin,
|
||||||
PrivacyMode privacy_mode,
|
const SSLConfig& ssl_config_for_proxy,
|
||||||
const NetLogWithSource& net_log,
|
PrivacyMode privacy_mode,
|
||||||
ClientSocketHandle* socket_handle,
|
const NetworkIsolationKey& network_isolation_key,
|
||||||
CompletionOnceCallback callback) {
|
const NetLogWithSource& net_log,
|
||||||
|
ClientSocketHandle* socket_handle,
|
||||||
|
CompletionOnceCallback callback) {
|
||||||
DCHECK(socket_handle);
|
DCHECK(socket_handle);
|
||||||
return InitSocketPoolHelper(
|
return InitSocketPoolHelper(
|
||||||
ClientSocketPoolManager::NORMAL_GROUP, endpoint, request_load_flags,
|
ClientSocketPoolManager::NORMAL_GROUP, endpoint, request_load_flags,
|
||||||
request_priority, session, proxy_info, ssl_config_for_origin,
|
request_priority, session, proxy_info, ssl_config_for_origin,
|
||||||
ssl_config_for_proxy, /*is_for_websockets=*/true, privacy_mode,
|
ssl_config_for_proxy, /*is_for_websockets=*/true, privacy_mode,
|
||||||
NetworkIsolationKey(), /*disable_secure_dns=*/true, SocketTag(), net_log,
|
network_isolation_key, /*disable_secure_dns=*/true, SocketTag(), net_log,
|
||||||
0, socket_handle, HttpNetworkSession::NORMAL_SOCKET_POOL,
|
0, socket_handle, HttpNetworkSession::NORMAL_SOCKET_POOL,
|
||||||
std::move(callback), ClientSocketPool::ProxyAuthCallback());
|
std::move(callback), ClientSocketPool::ProxyAuthCallback());
|
||||||
}
|
}
|
||||||
|
@ -151,6 +151,7 @@ NET_EXPORT int InitSocketHandleForRawConnect2(
|
|||||||
const SSLConfig& ssl_config_for_origin,
|
const SSLConfig& ssl_config_for_origin,
|
||||||
const SSLConfig& ssl_config_for_proxy,
|
const SSLConfig& ssl_config_for_proxy,
|
||||||
PrivacyMode privacy_mode,
|
PrivacyMode privacy_mode,
|
||||||
|
const NetworkIsolationKey& network_isolation_key,
|
||||||
const NetLogWithSource& net_log,
|
const NetLogWithSource& net_log,
|
||||||
ClientSocketHandle* socket_handle,
|
ClientSocketHandle* socket_handle,
|
||||||
CompletionOnceCallback callback);
|
CompletionOnceCallback callback);
|
||||||
|
Loading…
Reference in New Issue
Block a user