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

Unified Diff: net/base/client_socket_handle.h

Issue 42541: Prioritize which HTTP requests get a socket first by adding a priority level ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/renderer_host/resource_dispatcher_host.cc ('k') | net/base/client_socket_handle.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/client_socket_handle.h
===================================================================
--- net/base/client_socket_handle.h (revision 12453)
+++ net/base/client_socket_handle.h (working copy)
@@ -32,7 +32,8 @@
// Initializes a ClientSocketHandle object, which involves talking to the
// ClientSocketPool to locate a socket to possibly reuse. This method
- // returns either OK or ERR_IO_PENDING.
+ // returns either OK or ERR_IO_PENDING. On ERR_IO_PENDING, |priority| is
+ // used to determine the placement in ClientSocketPool's wait list.
//
// If this method succeeds, then the socket member will be set to an existing
// socket if an existing socket was available to reuse. Otherwise, the
@@ -43,7 +44,9 @@
//
// Init may be called multiple times.
//
- int Init(const std::string& group_name, CompletionCallback* callback);
+ int Init(const std::string& group_name,
+ int priority,
+ CompletionCallback* callback);
// An initialized handle can be reset, which causes it to return to the
// un-initialized state. This releases the underlying socket, which in the
« no previous file with comments | « chrome/browser/renderer_host/resource_dispatcher_host.cc ('k') | net/base/client_socket_handle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698