OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "jingle/notifier/base/proxy_resolving_client_socket.h" | 5 #include "jingle/glue/proxy_resolving_client_socket.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/bind_helpers.h" | 9 #include "base/bind_helpers.h" |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "googleurl/src/gurl.h" | 12 #include "googleurl/src/gurl.h" |
13 #include "net/base/io_buffer.h" | 13 #include "net/base/io_buffer.h" |
14 #include "net/base/net_errors.h" | 14 #include "net/base/net_errors.h" |
15 #include "net/http/http_network_session.h" | 15 #include "net/http/http_network_session.h" |
16 #include "net/socket/client_socket_handle.h" | 16 #include "net/socket/client_socket_handle.h" |
17 #include "net/socket/client_socket_pool_manager.h" | 17 #include "net/socket/client_socket_pool_manager.h" |
18 #include "net/url_request/url_request_context.h" | 18 #include "net/url_request/url_request_context.h" |
19 #include "net/url_request/url_request_context_getter.h" | 19 #include "net/url_request/url_request_context_getter.h" |
20 | 20 |
21 namespace notifier { | 21 namespace jingle_glue { |
22 | 22 |
23 ProxyResolvingClientSocket::ProxyResolvingClientSocket( | 23 ProxyResolvingClientSocket::ProxyResolvingClientSocket( |
24 net::ClientSocketFactory* socket_factory, | 24 net::ClientSocketFactory* socket_factory, |
25 const scoped_refptr<net::URLRequestContextGetter>& request_context_getter, | 25 const scoped_refptr<net::URLRequestContextGetter>& request_context_getter, |
26 const net::SSLConfig& ssl_config, | 26 const net::SSLConfig& ssl_config, |
27 const net::HostPortPair& dest_host_port_pair) | 27 const net::HostPortPair& dest_host_port_pair) |
28 : ALLOW_THIS_IN_INITIALIZER_LIST(proxy_resolve_callback_( | 28 : ALLOW_THIS_IN_INITIALIZER_LIST(proxy_resolve_callback_( |
29 base::Bind(&ProxyResolvingClientSocket::ProcessProxyResolveDone, | 29 base::Bind(&ProxyResolvingClientSocket::ProcessProxyResolveDone, |
30 base::Unretained(this)))), | 30 base::Unretained(this)))), |
31 ALLOW_THIS_IN_INITIALIZER_LIST(connect_callback_( | 31 ALLOW_THIS_IN_INITIALIZER_LIST(connect_callback_( |
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 bool ProxyResolvingClientSocket::GetSSLInfo(net::SSLInfo* ssl_info) { | 382 bool ProxyResolvingClientSocket::GetSSLInfo(net::SSLInfo* ssl_info) { |
383 return false; | 383 return false; |
384 } | 384 } |
385 | 385 |
386 void ProxyResolvingClientSocket::CloseTransportSocket() { | 386 void ProxyResolvingClientSocket::CloseTransportSocket() { |
387 if (transport_.get() && transport_->socket()) | 387 if (transport_.get() && transport_->socket()) |
388 transport_->socket()->Disconnect(); | 388 transport_->socket()->Disconnect(); |
389 transport_.reset(); | 389 transport_.reset(); |
390 } | 390 } |
391 | 391 |
392 } // namespace notifier | 392 } // namespace jingle_glue |
OLD | NEW |