Skip to content
This repository has been archived by the owner on Jan 4, 2019. It is now read-only.

Commit

Permalink
Resolve C65 merge conflicts.
Browse files Browse the repository at this point in the history
  • Loading branch information
riastradh-brave committed Mar 21, 2018
1 parent 25e3a6a commit 5f97ec7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 6 deletions.
4 changes: 3 additions & 1 deletion chromium_src/net/socket/socks5_client_socket_auth.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ namespace net {
SOCKS5ClientSocketAuth::SOCKS5ClientSocketAuth(
std::unique_ptr<ClientSocketHandle> transport_socket,
const HostResolver::RequestInfo& req_info,
const NetworkTrafficAnnotationTag& traffic_annotation,
const HostPortPair& proxy_host_port)
: SOCKS5ClientSocket(std::move(transport_socket), req_info),
: SOCKS5ClientSocket(std::move(transport_socket), req_info,
traffic_annotation),
proxy_host_port_(proxy_host_port),
next_state_(STATE_INIT_WRITE) {
}
Expand Down
1 change: 1 addition & 0 deletions chromium_src/net/socket/socks5_client_socket_auth.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ class NET_EXPORT_PRIVATE SOCKS5ClientSocketAuth : public SOCKS5ClientSocket {
public:
SOCKS5ClientSocketAuth(std::unique_ptr<ClientSocketHandle> transport_socket,
const HostResolver::RequestInfo& req_info,
const NetworkTrafficAnnotationTag& traffic_annotation,
const HostPortPair& proxy_host_port);
~SOCKS5ClientSocketAuth() override;
private:
Expand Down
13 changes: 8 additions & 5 deletions patches/master_patch.patch
Original file line number Diff line number Diff line change
Expand Up @@ -2342,12 +2342,13 @@ diff --git a/net/socket/socks5_client_socket.h b/net/socket/socks5_client_socket
index afef312d001297ac1178b93fea92586102a54ac8..6f04733219580abd2477bfb0deaafd2e00cd5251 100644
--- a/net/socket/socks5_client_socket.h
+++ b/net/socket/socks5_client_socket.h
@@ -19,6 +19,7 @@
@@ -19,7 +19,8 @@
#include "net/base/net_export.h"
#include "net/dns/host_resolver.h"
#include "net/log/net_log_with_source.h"
+#include "net/socket/socks_client_socket_pool.h"
#include "net/socket/stream_socket.h"
#include "net/traffic_annotation/network_traffic_annotation.h"
#include "url/gurl.h"

@@ -81,6 +82,8 @@ class NET_EXPORT_PRIVATE SOCKS5ClientSocket : public StreamSocket {
Expand Down Expand Up @@ -2387,19 +2388,21 @@ index 86b4ac0d109fca5da44501b6fdb08d97b05fc28d..3294267b3e97cbc5c28a95473245fbc6
#include "net/socket/socks_client_socket.h"
#include "net/socket/transport_client_socket_pool.h"

@@ -146,8 +146,10 @@ int SOCKSConnectJob::DoSOCKSConnect() {
@@ -146,9 +146,11 @@ int SOCKSConnectJob::DoSOCKSConnect() {

// Add a SOCKS connection on top of the tcp socket.
if (socks_params_->is_socks_v5()) {
- socket_.reset(new SOCKS5ClientSocket(std::move(transport_socket_handle_),
- socks_params_->destination()));
- socks_params_->destination(),
- socks_params_->traffic_annotation()));
+ socket_.reset(new SOCKS5ClientSocketAuth(
+ std::move(transport_socket_handle_),
+ socks_params_->destination(),
+ socks_params_->traffic_annotation(),
+ socks_params_->transport_params()->destination().host_port_pair()));
} else {
socket_.reset(new SOCKSClientSocket(std::move(transport_socket_handle_),
socks_params_->destination(),
socket_.reset(new SOCKSClientSocket(
std::move(transport_socket_handle_), socks_params_->destination(),
diff --git a/net/url_request/url_request_job.h b/net/url_request/url_request_job.h
index 389315a25d7da30d71b59e3803ab795bc4c18e1c..79797fe7e674f9f6d2a65de542f262a945454f16 100644
--- a/net/url_request/url_request_job.h
Expand Down

0 comments on commit 5f97ec7

Please sign in to comment.