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

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

Issue 1898133002: Add reprioritization to socket pools. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Plumbed SetPriority down from HttpStreamFactoryImpl::Job. Created 4 years, 8 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) 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 #ifndef NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ 5 #ifndef NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_
6 #define NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ 6 #define NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 const void* resolve_info, 245 const void* resolve_info,
246 RequestPriority priority, 246 RequestPriority priority,
247 RespectLimits respect_limits, 247 RespectLimits respect_limits,
248 ClientSocketHandle* handle, 248 ClientSocketHandle* handle,
249 const CompletionCallback& callback, 249 const CompletionCallback& callback,
250 const BoundNetLog& net_log) override; 250 const BoundNetLog& net_log) override;
251 void RequestSockets(const std::string& group_name, 251 void RequestSockets(const std::string& group_name,
252 const void* params, 252 const void* params,
253 int num_sockets, 253 int num_sockets,
254 const BoundNetLog& net_log) override; 254 const BoundNetLog& net_log) override;
255 void SetPriority(const std::string& group_name,
256 ClientSocketHandle* handle,
257 RequestPriority priority) override;
255 void CancelRequest(const std::string& group_name, 258 void CancelRequest(const std::string& group_name,
256 ClientSocketHandle* handle) override; 259 ClientSocketHandle* handle) override;
257 void ReleaseSocket(const std::string& group_name, 260 void ReleaseSocket(const std::string& group_name,
258 std::unique_ptr<StreamSocket> socket, 261 std::unique_ptr<StreamSocket> socket,
259 int id) override; 262 int id) override;
260 void FlushWithError(int error) override; 263 void FlushWithError(int error) override;
261 void CloseIdleSockets() override; 264 void CloseIdleSockets() override;
262 int IdleSocketCount() const override; 265 int IdleSocketCount() const override;
263 int IdleSocketCountInGroup(const std::string& group_name) const override; 266 int IdleSocketCountInGroup(const std::string& group_name) const override;
264 LoadState GetLoadState(const std::string& group_name, 267 LoadState GetLoadState(const std::string& group_name,
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 break; 376 break;
374 } 377 }
375 } while (rv != ERR_IO_PENDING && next_state_ != STATE_NONE); 378 } while (rv != ERR_IO_PENDING && next_state_ != STATE_NONE);
376 379
377 return rv; 380 return rv;
378 } 381 }
379 382
380 } // namespace net 383 } // namespace net
381 384
382 #endif // NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_ 385 #endif // NET_SOCKET_TRANSPORT_CLIENT_SOCKET_POOL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698