diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2022-05-17 17:24:03 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2022-06-22 07:51:41 +0000 |
commit | 774f54339e5db91f785733232d3950366db65d07 (patch) | |
tree | 068e1b47bd1af94d77094ed12b604a6b83d9c22a /chromium/net/http/http_basic_stream.h | |
parent | f7eaed5286974984ba5f9e3189d8f49d03e99f81 (diff) | |
download | qtwebengine-chromium-774f54339e5db91f785733232d3950366db65d07.tar.gz |
BASELINE: Update Chromium to 102.0.5005.57
Change-Id: I885f714bb40ee724c28f94ca6bd8dbdb39915158
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/net/http/http_basic_stream.h')
-rw-r--r-- | chromium/net/http/http_basic_stream.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/chromium/net/http/http_basic_stream.h b/chromium/net/http/http_basic_stream.h index cd3c8d003c8..8c765a8e13c 100644 --- a/chromium/net/http/http_basic_stream.h +++ b/chromium/net/http/http_basic_stream.h @@ -45,8 +45,9 @@ class NET_EXPORT_PRIVATE HttpBasicStream : public HttpStream { ~HttpBasicStream() override; // HttpStream methods: - int InitializeStream(const HttpRequestInfo* request_info, - bool can_send_early, + void RegisterRequest(const HttpRequestInfo* request_info) override; + + int InitializeStream(bool can_send_early, RequestPriority priority, const NetLogWithSource& net_log, CompletionOnceCallback callback) override; @@ -108,6 +109,12 @@ class NET_EXPORT_PRIVATE HttpBasicStream : public HttpStream { HttpBasicState state_; base::TimeTicks confirm_handshake_end_; RequestHeadersCallback request_headers_callback_; + // The request to send. + // Set to null before the response body is read. This is to allow |this| to + // be shared for reading and to possibly outlive request_info_'s owner. + // Setting to null happens after headers are completely read or upload data + // stream is uploaded, whichever is later. + raw_ptr<const HttpRequestInfo> request_info_; }; } // namespace net |