Chromium Code Reviews| Index: net/spdy/spdy_proxy_client_socket.cc |
| diff --git a/net/spdy/spdy_proxy_client_socket.cc b/net/spdy/spdy_proxy_client_socket.cc |
| index ea771b3cf82aea048e7752e2a2e6425783d959e3..c19144611eb494ca88ac6f6311812ec33e94afe3 100644 |
| --- a/net/spdy/spdy_proxy_client_socket.cc |
| +++ b/net/spdy/spdy_proxy_client_socket.cc |
| @@ -430,26 +430,26 @@ int SpdyProxyClientSocket::DoReadReplyComplete(int result) { |
| // SpdyStream::Delegate methods: |
| // Called when SYN frame has been sent. |
| // Returns true if no more data to be sent after SYN frame. |
| -void SpdyProxyClientSocket::OnRequestHeadersSent() { |
| +void SpdyProxyClientSocket::OnHeadersSent() { |
| DCHECK_EQ(next_state_, STATE_SEND_REQUEST_COMPLETE); |
| OnIOComplete(OK); |
| } |
| -SpdyResponseHeadersStatus SpdyProxyClientSocket::OnResponseHeadersUpdated( |
| +void SpdyProxyClientSocket::OnHeadersReceived( |
| const SpdyHeaderBlock& response_headers) { |
| // If we've already received the reply, existing headers are too late. |
| // TODO(mbelshe): figure out a way to make HEADERS frames useful after the |
| // initial response. |
| if (next_state_ != STATE_READ_REPLY_COMPLETE) |
| - return RESPONSE_HEADERS_ARE_COMPLETE; |
| + return; |
| // Save the response |
| - if (!SpdyHeadersToHttpResponse(response_headers, &response_)) |
| - return RESPONSE_HEADERS_ARE_INCOMPLETE; |
| + const bool headers_valid = |
| + SpdyHeadersToHttpResponse(response_headers, &response_); |
| + DCHECK(headers_valid); |
|
Ryan Hamilton
2016/11/23 20:58:43
ditto.
|
| OnIOComplete(OK); |
| - return RESPONSE_HEADERS_ARE_COMPLETE; |
| } |
| // Called when data is received or on EOF (if |buffer| is NULL). |