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

Side by Side Diff: net/socket/tcp_client_socket_pool.h

Issue 2870030: Implement SSLClientSocketPool. (Closed)
Patch Set: Rebase and fix mac compile error Created 10 years, 5 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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #ifndef NET_SOCKET_TCP_CLIENT_SOCKET_POOL_H_ 5 #ifndef NET_SOCKET_TCP_CLIENT_SOCKET_POOL_H_
6 #define NET_SOCKET_TCP_CLIENT_SOCKET_POOL_H_ 6 #define NET_SOCKET_TCP_CLIENT_SOCKET_POOL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 // The referrer is used by the DNS prefetch system to correlate resolutions 42 // The referrer is used by the DNS prefetch system to correlate resolutions
43 // with the page that triggered them. It doesn't impact the actual addresses 43 // with the page that triggered them. It doesn't impact the actual addresses
44 // that we resolve to. 44 // that we resolve to.
45 destination_.set_referrer(referrer); 45 destination_.set_referrer(referrer);
46 destination_.set_priority(priority); 46 destination_.set_priority(priority);
47 if (disable_resolver_cache) 47 if (disable_resolver_cache)
48 destination_.set_allow_cached_response(false); 48 destination_.set_allow_cached_response(false);
49 } 49 }
50 50
51 HostResolver::RequestInfo destination_; 51 HostResolver::RequestInfo destination_;
52
53 DISALLOW_COPY_AND_ASSIGN(TCPSocketParams);
52 }; 54 };
53 55
54 // TCPConnectJob handles the host resolution necessary for socket creation 56 // TCPConnectJob handles the host resolution necessary for socket creation
55 // and the tcp connect. 57 // and the tcp connect.
56 class TCPConnectJob : public ConnectJob { 58 class TCPConnectJob : public ConnectJob {
57 public: 59 public:
58 TCPConnectJob(const std::string& group_name, 60 TCPConnectJob(const std::string& group_name,
59 const scoped_refptr<TCPSocketParams>& params, 61 const scoped_refptr<TCPSocketParams>& params,
60 base::TimeDelta timeout_duration, 62 base::TimeDelta timeout_duration,
61 ClientSocketFactory* client_socket_factory, 63 ClientSocketFactory* client_socket_factory,
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 PoolBase base_; 194 PoolBase base_;
193 195
194 DISALLOW_COPY_AND_ASSIGN(TCPClientSocketPool); 196 DISALLOW_COPY_AND_ASSIGN(TCPClientSocketPool);
195 }; 197 };
196 198
197 REGISTER_SOCKET_PARAMS_FOR_POOL(TCPClientSocketPool, TCPSocketParams); 199 REGISTER_SOCKET_PARAMS_FOR_POOL(TCPClientSocketPool, TCPSocketParams);
198 200
199 } // namespace net 201 } // namespace net
200 202
201 #endif // NET_SOCKET_TCP_CLIENT_SOCKET_POOL_H_ 203 #endif // NET_SOCKET_TCP_CLIENT_SOCKET_POOL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698