diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2022-09-07 13:12:05 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2022-11-09 10:02:59 +0000 |
commit | 33fc33aa94d4add0878ec30dc818e34e1dd3cc2a (patch) | |
tree | f6af110909c79b2759136554f1143d8b0572af0a /chromium/net/socket/client_socket_pool.h | |
parent | 7d2c5d177e9813077a621df8d18c0deda73099b3 (diff) | |
download | qtwebengine-chromium-33fc33aa94d4add0878ec30dc818e34e1dd3cc2a.tar.gz |
BASELINE: Update Chromium to 104.0.5112.120
Change-Id: I5d2726c2ab018d75d055739b6ba64317904f05bb
Reviewed-on: https://codereview.qt-project.org/c/qt/qtwebengine-chromium/+/438935
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/net/socket/client_socket_pool.h')
-rw-r--r-- | chromium/net/socket/client_socket_pool.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/chromium/net/socket/client_socket_pool.h b/chromium/net/socket/client_socket_pool.h index 7556425d69c..f0e6f988c7f 100644 --- a/chromium/net/socket/client_socket_pool.h +++ b/chromium/net/socket/client_socket_pool.h @@ -11,6 +11,7 @@ #include "base/memory/raw_ptr.h" #include "base/memory/ref_counted.h" #include "base/time/time.h" +#include "base/values.h" #include "net/base/completion_once_callback.h" #include "net/base/load_states.h" #include "net/base/net_export.h" @@ -26,10 +27,6 @@ #include "third_party/abseil-cpp/absl/types/optional.h" #include "url/scheme_host_port.h" -namespace base { -class Value; -} // namespace base - namespace net { class ClientSocketHandle; @@ -249,18 +246,21 @@ class NET_EXPORT ClientSocketPool : public LowerLayeredPool { // RequestSockets is used to request that |num_sockets| be connected in the // connection group for |group_id|. If the connection group already has // |num_sockets| idle sockets / active sockets / currently connecting sockets, - // then this function doesn't do anything. Otherwise, it will start up as - // many connections as necessary to reach |num_sockets| total sockets for the - // group. It uses |params| to control how to connect the sockets. The + // then this function doesn't do anything and returns OK. Otherwise, it will + // start up as many connections as necessary to reach |num_sockets| total + // sockets for the group and returns ERR_IO_PENDING. And |callback| will be + // called with OK when the connection tasks are finished. + // It uses |params| to control how to connect the sockets. The // ClientSocketPool will assign a priority to the new connections, if any. // This priority will probably be lower than all others, since this method // is intended to make sure ahead of time that |num_sockets| sockets are // available to talk to a host. - virtual void RequestSockets( + virtual int RequestSockets( const GroupId& group_id, scoped_refptr<SocketParams> params, const absl::optional<NetworkTrafficAnnotationTag>& proxy_annotation_tag, int num_sockets, + CompletionOnceCallback callback, const NetLogWithSource& net_log) = 0; // Called to change the priority of a RequestSocket call that returned |