Implement 0-RTT with HTTP/1.1 and HTTP/2.

Reland of https://chromium-review.googlesource.com/c/chromium/src/+/1067603
with the HTTPSEarlyDataTest.TLSEarlyDataTooEarlyTest test updated to use
ZeroRTTResponse to avoid early socket closing on Windows.

Bug: 641225
Change-Id: I10f6468b000a0c5a07c78e967a4f14599c4ce499
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1559893
Commit-Queue: Steven Valdez <[email protected]>
Reviewed-by: David Benjamin <[email protected]>
Reviewed-by: Ryan Hamilton <[email protected]>
Cr-Commit-Position: refs/heads/master@{#649514}
diff --git a/net/spdy/bidirectional_stream_spdy_impl.cc b/net/spdy/bidirectional_stream_spdy_impl.cc
index f1281455..32d0999 100644
--- a/net/spdy/bidirectional_stream_spdy_impl.cc
+++ b/net/spdy/bidirectional_stream_spdy_impl.cc
@@ -78,7 +78,8 @@
 
   int rv = stream_request_.StartRequest(
       SPDY_BIDIRECTIONAL_STREAM, spdy_session_, request_info_->url,
-      request_info_->priority, request_info_->socket_tag, net_log,
+      false /* no early data */, request_info_->priority,
+      request_info_->socket_tag, net_log,
       base::Bind(&BidirectionalStreamSpdyImpl::OnStreamInitialized,
                  weak_factory_.GetWeakPtr()),
       traffic_annotation);