Plumb early data signal to http_network_transaction layer for QUIC.
Bug:
Change-Id: I658c2aa67df629e65cc7289f2256b0ac3b0d49e6
Reviewed-on: https://chromium-review.googlesource.com/847081
Commit-Queue: Steven Valdez <[email protected]>
Reviewed-by: Zhongyi Shi <[email protected]>
Cr-Commit-Position: refs/heads/master@{#530313}
diff --git a/net/websockets/websocket_basic_handshake_stream.cc b/net/websockets/websocket_basic_handshake_stream.cc
index 2462e0f..47113a24 100644
--- a/net/websockets/websocket_basic_handshake_stream.cc
+++ b/net/websockets/websocket_basic_handshake_stream.cc
@@ -312,11 +312,12 @@
int WebSocketBasicHandshakeStream::InitializeStream(
const HttpRequestInfo* request_info,
+ bool can_send_early,
RequestPriority priority,
const NetLogWithSource& net_log,
const CompletionCallback& callback) {
url_ = request_info->url;
- state_.Initialize(request_info, priority, net_log, callback);
+ state_.Initialize(request_info, can_send_early, priority, net_log, callback);
return OK;
}
diff --git a/net/websockets/websocket_basic_handshake_stream.h b/net/websockets/websocket_basic_handshake_stream.h
index 06bc333..10be350 100644
--- a/net/websockets/websocket_basic_handshake_stream.h
+++ b/net/websockets/websocket_basic_handshake_stream.h
@@ -44,6 +44,7 @@
// HttpStreamBase methods
int InitializeStream(const HttpRequestInfo* request_info,
+ bool can_send_early,
RequestPriority priority,
const NetLogWithSource& net_log,
const CompletionCallback& callback) override;
diff --git a/net/websockets/websocket_handshake_stream_create_helper_test.cc b/net/websockets/websocket_handshake_stream_create_helper_test.cc
index b191e448..17e2d26 100644
--- a/net/websockets/websocket_handshake_stream_create_helper_test.cc
+++ b/net/websockets/websocket_handshake_stream_create_helper_test.cc
@@ -123,7 +123,7 @@
request_info.method = "GET";
request_info.load_flags = LOAD_DISABLE_CACHE;
int rv =
- handshake->InitializeStream(&request_info, DEFAULT_PRIORITY,
+ handshake->InitializeStream(&request_info, true, DEFAULT_PRIORITY,
NetLogWithSource(), CompletionCallback());
EXPECT_THAT(rv, IsOk());