Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(781)

Unified Diff: net/websockets/websocket_job.cc

Issue 17382012: [SPDY] Refactor SpdyStream's handling of response headers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More updates from rebase Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/websockets/websocket_job.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/websockets/websocket_job.cc
diff --git a/net/websockets/websocket_job.cc b/net/websockets/websocket_job.cc
index 2884895c5050e86cb1bc3577ca98e5314649c3ee..1fe2f49b7915796eb606c9602141771540a358ff 100644
--- a/net/websockets/websocket_job.cc
+++ b/net/websockets/websocket_job.cc
@@ -306,20 +306,17 @@ void WebSocketJob::OnSentSpdyHeaders() {
handshake_request_.reset();
}
-int WebSocketJob::OnReceivedSpdyResponseHeader(
- const SpdyHeaderBlock& headers, int status) {
+void WebSocketJob::OnSpdyResponseHeadersUpdated(
+ const SpdyHeaderBlock& response_headers) {
DCHECK_NE(INITIALIZED, state_);
if (state_ != CONNECTING)
- return status;
- if (status != OK)
- return status;
+ return;
// TODO(toyoshim): Fallback to non-spdy connection?
- handshake_response_->ParseResponseHeaderBlock(headers,
+ handshake_response_->ParseResponseHeaderBlock(response_headers,
challenge_,
spdy_protocol_version_);
SaveCookiesAndNotifyHeadersComplete();
- return OK;
}
void WebSocketJob::OnSentSpdyData(size_t bytes_sent) {
« no previous file with comments | « net/websockets/websocket_job.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698