summaryrefslogtreecommitdiffstats
path: root/jingle/notifier/base
diff options
context:
space:
mode:
Diffstat (limited to 'jingle/notifier/base')
-rw-r--r--jingle/notifier/base/proxy_resolving_client_socket.cc6
-rw-r--r--jingle/notifier/base/proxy_resolving_client_socket.h1
2 files changed, 7 insertions, 0 deletions
diff --git a/jingle/notifier/base/proxy_resolving_client_socket.cc b/jingle/notifier/base/proxy_resolving_client_socket.cc
index 45d0c11..a4083b0 100644
--- a/jingle/notifier/base/proxy_resolving_client_socket.cc
+++ b/jingle/notifier/base/proxy_resolving_client_socket.cc
@@ -190,6 +190,8 @@ void ProxyResolvingClientSocket::ProcessConnectDone(int status) {
// Proxy reconsideration pending. Return.
return;
CloseTransportSocket();
+ } else {
+ ReportSuccessfulProxyConnection();
}
RunUserConnectCallback(status);
}
@@ -274,6 +276,10 @@ int ProxyResolvingClientSocket::ReconsiderProxyAfterError(int error) {
return rv;
}
+void ProxyResolvingClientSocket::ReportSuccessfulProxyConnection() {
+ network_session_->proxy_service()->ReportSuccess(proxy_info_);
+}
+
void ProxyResolvingClientSocket::Disconnect() {
CloseTransportSocket();
if (pac_request_)
diff --git a/jingle/notifier/base/proxy_resolving_client_socket.h b/jingle/notifier/base/proxy_resolving_client_socket.h
index b97315b..a651403f 100644
--- a/jingle/notifier/base/proxy_resolving_client_socket.h
+++ b/jingle/notifier/base/proxy_resolving_client_socket.h
@@ -67,6 +67,7 @@ class ProxyResolvingClientSocket : public net::StreamSocket {
void CloseTransportSocket();
void RunUserConnectCallback(int status);
int ReconsiderProxyAfterError(int error);
+ void ReportSuccessfulProxyConnection();
// Callbacks passed to net APIs.
net::CompletionCallbackImpl<ProxyResolvingClientSocket>