Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: jingle/glue/proxy_resolving_client_socket.h

Issue 10817013: Move ChromeAsyncSocket to jingle/glue (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_NOTIFIER_BASE_PROXY_RESOLVING_CLIENT_SOCKET_H_ 8 #ifndef JINGLE_GLUE_PROXY_RESOLVING_CLIENT_SOCKET_H_
9 #define JINGLE_NOTIFIER_BASE_PROXY_RESOLVING_CLIENT_SOCKET_H_ 9 #define JINGLE_GLUE_PROXY_RESOLVING_CLIENT_SOCKET_H_
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "net/base/completion_callback.h" 15 #include "net/base/completion_callback.h"
16 #include "net/base/host_port_pair.h" 16 #include "net/base/host_port_pair.h"
17 #include "net/base/net_errors.h" 17 #include "net/base/net_errors.h"
18 #include "net/base/net_log.h" 18 #include "net/base/net_log.h"
19 #include "net/base/ssl_config_service.h" 19 #include "net/base/ssl_config_service.h"
20 #include "net/proxy/proxy_info.h" 20 #include "net/proxy/proxy_info.h"
21 #include "net/proxy/proxy_service.h" 21 #include "net/proxy/proxy_service.h"
22 #include "net/socket/stream_socket.h" 22 #include "net/socket/stream_socket.h"
23 23
24 namespace net { 24 namespace net {
25 class ClientSocketFactory; 25 class ClientSocketFactory;
26 class ClientSocketHandle; 26 class ClientSocketHandle;
27 class HttpNetworkSession; 27 class HttpNetworkSession;
28 class URLRequestContextGetter; 28 class URLRequestContextGetter;
29 } // namespace net 29 } // namespace net
30 30
31 // TODO(sanjeevr): Move this to net/ 31 // TODO(sanjeevr): Move this to net/
32 namespace notifier { 32 namespace jingle_glue {
33 33
34 class ProxyResolvingClientSocket : public net::StreamSocket { 34 class ProxyResolvingClientSocket : public net::StreamSocket {
35 public: 35 public:
36 // Constructs a new ProxyResolvingClientSocket. |socket_factory| is 36 // Constructs a new ProxyResolvingClientSocket. |socket_factory| is
37 // the ClientSocketFactory that will be used by the underlying 37 // the ClientSocketFactory that will be used by the underlying
38 // HttpNetworkSession. If |socket_factory| is NULL, the default 38 // HttpNetworkSession. If |socket_factory| is NULL, the default
39 // socket factory (net::ClientSocketFactory::GetDefaultFactory()) 39 // socket factory (net::ClientSocketFactory::GetDefaultFactory())
40 // will be used. |dest_host_port_pair| is the destination for this 40 // will be used. |dest_host_port_pair| is the destination for this
41 // socket. The hostname must be non-empty and the port must be > 0. 41 // socket. The hostname must be non-empty and the port must be > 0.
42 ProxyResolvingClientSocket( 42 ProxyResolvingClientSocket(
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 net::ProxyInfo proxy_info_; 94 net::ProxyInfo proxy_info_;
95 net::HostPortPair dest_host_port_pair_; 95 net::HostPortPair dest_host_port_pair_;
96 bool tried_direct_connect_fallback_; 96 bool tried_direct_connect_fallback_;
97 net::BoundNetLog bound_net_log_; 97 net::BoundNetLog bound_net_log_;
98 base::WeakPtrFactory<ProxyResolvingClientSocket> weak_factory_; 98 base::WeakPtrFactory<ProxyResolvingClientSocket> weak_factory_;
99 99
100 // The callback passed to Connect(). 100 // The callback passed to Connect().
101 net::CompletionCallback user_connect_callback_; 101 net::CompletionCallback user_connect_callback_;
102 }; 102 };
103 103
104 } // namespace notifier 104 } // namespace jingle_glue
105 105
106 #endif // JINGLE_NOTIFIER_BASE_PROXY_RESOLVING_CLIENT_SOCKET_H_ 106 #endif // JINGLE_GLUE_PROXY_RESOLVING_CLIENT_SOCKET_H_
OLDNEW
« no previous file with comments | « jingle/glue/fake_ssl_client_socket_unittest.cc ('k') | jingle/glue/proxy_resolving_client_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698