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

Side by Side Diff: net/spdy/spdy_stream.h

Issue 8230037: Send PING to check the status of the SPDY connection. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 2 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef NET_SPDY_SPDY_STREAM_H_ 5 #ifndef NET_SPDY_SPDY_STREAM_H_
6 #define NET_SPDY_SPDY_STREAM_H_ 6 #define NET_SPDY_SPDY_STREAM_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 void Close(); 202 void Close();
203 bool cancelled() const { return cancelled_; } 203 bool cancelled() const { return cancelled_; }
204 bool closed() const { return io_state_ == STATE_DONE; } 204 bool closed() const { return io_state_ == STATE_DONE; }
205 205
206 // Interface for Spdy[Http|WebSocket]Stream to use. 206 // Interface for Spdy[Http|WebSocket]Stream to use.
207 207
208 // Sends the request. 208 // Sends the request.
209 // For non push stream, it will send SYN_STREAM frame. 209 // For non push stream, it will send SYN_STREAM frame.
210 int SendRequest(bool has_upload_data); 210 int SendRequest(bool has_upload_data);
211 211
212 // Sends PING frame.
213 int SendPing();
214
212 // Sends DATA frame. 215 // Sends DATA frame.
213 int WriteStreamData(IOBuffer* data, int length, 216 int WriteStreamData(IOBuffer* data, int length,
214 spdy::SpdyDataFlags flags); 217 spdy::SpdyDataFlags flags);
215 218
216 // Fills SSL info in |ssl_info| and returns true when SSL is in use. 219 // Fills SSL info in |ssl_info| and returns true when SSL is in use.
217 bool GetSSLInfo(SSLInfo* ssl_info, bool* was_npn_negotiated); 220 bool GetSSLInfo(SSLInfo* ssl_info, bool* was_npn_negotiated);
218 221
219 // Fills SSL Certificate Request info |cert_request_info| and returns 222 // Fills SSL Certificate Request info |cert_request_info| and returns
220 // true when SSL is in use. 223 // true when SSL is in use.
221 bool GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info); 224 bool GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info);
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 int recv_bytes_; 325 int recv_bytes_;
323 // Data received before delegate is attached. 326 // Data received before delegate is attached.
324 std::vector<scoped_refptr<IOBufferWithSize> > pending_buffers_; 327 std::vector<scoped_refptr<IOBufferWithSize> > pending_buffers_;
325 328
326 DISALLOW_COPY_AND_ASSIGN(SpdyStream); 329 DISALLOW_COPY_AND_ASSIGN(SpdyStream);
327 }; 330 };
328 331
329 } // namespace net 332 } // namespace net
330 333
331 #endif // NET_SPDY_SPDY_STREAM_H_ 334 #endif // NET_SPDY_SPDY_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698