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

Side by Side Diff: net/spdy/spdy_websocket_stream.cc

Issue 10689034: SPDY - chunked upload - speech recognition doesn't work with SPDY/3 (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/spdy/spdy_websocket_stream.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/spdy/spdy_websocket_stream.h" 5 #include "net/spdy/spdy_websocket_stream.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "googleurl/src/gurl.h" 9 #include "googleurl/src/gurl.h"
10 #include "net/base/net_errors.h" 10 #include "net/base/net_errors.h"
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 stream_ = NULL; 122 stream_ = NULL;
123 123
124 // Destruction without Close() call OnClose() with delegate_ being NULL. 124 // Destruction without Close() call OnClose() with delegate_ being NULL.
125 if (!delegate_) 125 if (!delegate_)
126 return; 126 return;
127 Delegate* delegate = delegate_; 127 Delegate* delegate = delegate_;
128 delegate_ = NULL; 128 delegate_ = NULL;
129 delegate->OnCloseSpdyStream(); 129 delegate->OnCloseSpdyStream();
130 } 130 }
131 131
132 void SpdyWebSocketStream::set_chunk_callback(ChunkCallback* callback) {
133 // Do nothing. SpdyWebSocketStream doesn't send any chunked data.
134 }
135
136 void SpdyWebSocketStream::OnSpdyStreamCreated(int result) { 132 void SpdyWebSocketStream::OnSpdyStreamCreated(int result) {
137 DCHECK_NE(ERR_IO_PENDING, result); 133 DCHECK_NE(ERR_IO_PENDING, result);
138 if (result == OK) { 134 if (result == OK) {
139 DCHECK(stream_); 135 DCHECK(stream_);
140 stream_->SetDelegate(this); 136 stream_->SetDelegate(this);
141 } 137 }
142 DCHECK(delegate_); 138 DCHECK(delegate_);
143 delegate_->OnCreatedSpdyStream(result); 139 delegate_->OnCreatedSpdyStream(result);
144 } 140 }
145 141
146 } // namespace net 142 } // namespace net
OLDNEW
« no previous file with comments | « net/spdy/spdy_websocket_stream.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698