mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-11-24 06:16:30 +03:00
socket: Add RawConnect method
This commit is contained in:
parent
98169eab0c
commit
bf57093e5e
@ -407,6 +407,31 @@ int InitSocketHandleForRawConnect(
|
|||||||
OnHostResolutionCallback(), std::move(callback), proxy_auth_callback);
|
OnHostResolutionCallback(), std::move(callback), proxy_auth_callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int InitSocketHandleForRawConnect2(
|
||||||
|
const HostPortPair& host_port_pair,
|
||||||
|
HttpNetworkSession* session,
|
||||||
|
int request_load_flags,
|
||||||
|
RequestPriority request_priority,
|
||||||
|
const ProxyInfo& proxy_info,
|
||||||
|
quic::QuicTransportVersion quic_version,
|
||||||
|
const SSLConfig& ssl_config_for_origin,
|
||||||
|
const SSLConfig& ssl_config_for_proxy,
|
||||||
|
PrivacyMode privacy_mode,
|
||||||
|
const NetLogWithSource& net_log,
|
||||||
|
ClientSocketHandle* socket_handle,
|
||||||
|
CompletionOnceCallback callback,
|
||||||
|
const ClientSocketPool::ProxyAuthCallback& proxy_auth_callback) {
|
||||||
|
DCHECK(socket_handle);
|
||||||
|
HttpRequestHeaders request_extra_headers;
|
||||||
|
return InitSocketPoolHelper(
|
||||||
|
ClientSocketPoolManager::NORMAL_GROUP, host_port_pair,
|
||||||
|
request_extra_headers, request_load_flags, request_priority, session,
|
||||||
|
proxy_info, quic_version, ssl_config_for_origin, ssl_config_for_proxy,
|
||||||
|
/*force_tunnel=*/true, privacy_mode, SocketTag(), net_log, 0,
|
||||||
|
socket_handle, HttpNetworkSession::NORMAL_SOCKET_POOL,
|
||||||
|
OnHostResolutionCallback(), std::move(callback), proxy_auth_callback);
|
||||||
|
}
|
||||||
|
|
||||||
int InitSocketHandleForTlsConnect(
|
int InitSocketHandleForTlsConnect(
|
||||||
const HostPortPair& endpoint,
|
const HostPortPair& endpoint,
|
||||||
HttpNetworkSession* session,
|
HttpNetworkSession* session,
|
||||||
|
@ -167,6 +167,21 @@ NET_EXPORT int InitSocketHandleForRawConnect(
|
|||||||
CompletionOnceCallback callback,
|
CompletionOnceCallback callback,
|
||||||
const ClientSocketPool::ProxyAuthCallback& proxy_auth_callback);
|
const ClientSocketPool::ProxyAuthCallback& proxy_auth_callback);
|
||||||
|
|
||||||
|
NET_EXPORT int InitSocketHandleForRawConnect2(
|
||||||
|
const HostPortPair& host_port_pair,
|
||||||
|
HttpNetworkSession* session,
|
||||||
|
int request_load_flags,
|
||||||
|
RequestPriority request_priority,
|
||||||
|
const ProxyInfo& proxy_info,
|
||||||
|
quic::QuicTransportVersion quic_version,
|
||||||
|
const SSLConfig& ssl_config_for_origin,
|
||||||
|
const SSLConfig& ssl_config_for_proxy,
|
||||||
|
PrivacyMode privacy_mode,
|
||||||
|
const NetLogWithSource& net_log,
|
||||||
|
ClientSocketHandle* socket_handle,
|
||||||
|
CompletionOnceCallback callback,
|
||||||
|
const ClientSocketPool::ProxyAuthCallback& proxy_auth_callback);
|
||||||
|
|
||||||
// Deprecated: Please do not use this outside of //net and //services/network.
|
// Deprecated: Please do not use this outside of //net and //services/network.
|
||||||
// A helper method that uses the passed in proxy information to initialize a
|
// A helper method that uses the passed in proxy information to initialize a
|
||||||
// ClientSocketHandle with the relevant socket pool. Use this method for
|
// ClientSocketHandle with the relevant socket pool. Use this method for
|
||||||
|
Loading…
Reference in New Issue
Block a user