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 // This StreamSocket implementation wraps a ClientSocketHandle that is created | 5 // This StreamSocket implementation wraps a ClientSocketHandle that is created |
6 // from the client socket pool after resolving proxies. | 6 // from the client socket pool after resolving proxies. |
7 | 7 |
8 #ifndef JINGLE_GLUE_PROXY_RESOLVING_CLIENT_SOCKET_H_ | 8 #ifndef JINGLE_GLUE_PROXY_RESOLVING_CLIENT_SOCKET_H_ |
9 #define JINGLE_GLUE_PROXY_RESOLVING_CLIENT_SOCKET_H_ | 9 #define JINGLE_GLUE_PROXY_RESOLVING_CLIENT_SOCKET_H_ |
10 | 10 |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 | 82 |
83 void CloseTransportSocket(); | 83 void CloseTransportSocket(); |
84 void RunUserConnectCallback(int status); | 84 void RunUserConnectCallback(int status); |
85 int ReconsiderProxyAfterError(int error); | 85 int ReconsiderProxyAfterError(int error); |
86 void ReportSuccessfulProxyConnection(); | 86 void ReportSuccessfulProxyConnection(); |
87 | 87 |
88 // Callbacks passed to net APIs. | 88 // Callbacks passed to net APIs. |
89 net::CompletionCallback proxy_resolve_callback_; | 89 net::CompletionCallback proxy_resolve_callback_; |
90 net::CompletionCallback connect_callback_; | 90 net::CompletionCallback connect_callback_; |
91 | 91 |
92 scoped_ptr<net::HttpNetworkSession> network_session_; | 92 scoped_refptr<net::HttpNetworkSession> network_session_; |
93 | 93 |
94 // The transport socket. | 94 // The transport socket. |
95 scoped_ptr<net::ClientSocketHandle> transport_; | 95 scoped_ptr<net::ClientSocketHandle> transport_; |
96 | 96 |
97 const net::SSLConfig ssl_config_; | 97 const net::SSLConfig ssl_config_; |
98 net::ProxyService::PacRequest* pac_request_; | 98 net::ProxyService::PacRequest* pac_request_; |
99 net::ProxyInfo proxy_info_; | 99 net::ProxyInfo proxy_info_; |
100 const net::HostPortPair dest_host_port_pair_; | 100 const net::HostPortPair dest_host_port_pair_; |
101 const GURL proxy_url_; | 101 const GURL proxy_url_; |
102 bool tried_direct_connect_fallback_; | 102 bool tried_direct_connect_fallback_; |
103 net::BoundNetLog bound_net_log_; | 103 net::BoundNetLog bound_net_log_; |
104 | 104 |
105 // The callback passed to Connect(). | 105 // The callback passed to Connect(). |
106 net::CompletionCallback user_connect_callback_; | 106 net::CompletionCallback user_connect_callback_; |
107 | 107 |
108 base::WeakPtrFactory<ProxyResolvingClientSocket> weak_factory_; | 108 base::WeakPtrFactory<ProxyResolvingClientSocket> weak_factory_; |
109 | 109 |
110 DISALLOW_COPY_AND_ASSIGN(ProxyResolvingClientSocket); | 110 DISALLOW_COPY_AND_ASSIGN(ProxyResolvingClientSocket); |
111 }; | 111 }; |
112 | 112 |
113 } // namespace jingle_glue | 113 } // namespace jingle_glue |
114 | 114 |
115 #endif // JINGLE_GLUE_PROXY_RESOLVING_CLIENT_SOCKET_H_ | 115 #endif // JINGLE_GLUE_PROXY_RESOLVING_CLIENT_SOCKET_H_ |
OLD | NEW |