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

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

Issue 126303: Add a "LoadLog*" parameter to transactions, hostresolver, clientsocketpool. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync again Created 11 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
« no previous file with comments | « net/socket/ssl_test_util.cc ('k') | net/socket/tcp_client_socket_pool.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 class TCPClientSocketPool : public ClientSocketPool { 74 class TCPClientSocketPool : public ClientSocketPool {
75 public: 75 public:
76 TCPClientSocketPool(int max_sockets, 76 TCPClientSocketPool(int max_sockets,
77 int max_sockets_per_group, 77 int max_sockets_per_group,
78 HostResolver* host_resolver, 78 HostResolver* host_resolver,
79 ClientSocketFactory* client_socket_factory); 79 ClientSocketFactory* client_socket_factory);
80 80
81 // ClientSocketPool methods: 81 // ClientSocketPool methods:
82 82
83 virtual int RequestSocket(const std::string& group_name, 83 virtual int RequestSocket(LoadLog* load_log,
84 const std::string& group_name,
84 const HostResolver::RequestInfo& resolve_info, 85 const HostResolver::RequestInfo& resolve_info,
85 int priority, 86 int priority,
86 ClientSocketHandle* handle, 87 ClientSocketHandle* handle,
87 CompletionCallback* callback); 88 CompletionCallback* callback);
88 89
89 virtual void CancelRequest(const std::string& group_name, 90 virtual void CancelRequest(const std::string& group_name,
90 const ClientSocketHandle* handle); 91 const ClientSocketHandle* handle);
91 92
92 virtual void ReleaseSocket(const std::string& group_name, 93 virtual void ReleaseSocket(const std::string& group_name,
93 ClientSocket* socket); 94 ClientSocket* socket);
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 // the posting of the task and the execution, then we'll hit the DCHECK that 137 // the posting of the task and the execution, then we'll hit the DCHECK that
137 // |ClientSocketPoolBase::group_map_| is empty. 138 // |ClientSocketPoolBase::group_map_| is empty.
138 scoped_refptr<ClientSocketPoolBase> base_; 139 scoped_refptr<ClientSocketPoolBase> base_;
139 140
140 DISALLOW_COPY_AND_ASSIGN(TCPClientSocketPool); 141 DISALLOW_COPY_AND_ASSIGN(TCPClientSocketPool);
141 }; 142 };
142 143
143 } // namespace net 144 } // namespace net
144 145
145 #endif // NET_SOCKET_TCP_CLIENT_SOCKET_POOL_H_ 146 #endif // NET_SOCKET_TCP_CLIENT_SOCKET_POOL_H_
OLDNEW
« no previous file with comments | « net/socket/ssl_test_util.cc ('k') | net/socket/tcp_client_socket_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698