| OLD | NEW |
| 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 #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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 224 // For non push stream, it will send SYN_STREAM frame. | 224 // For non push stream, it will send SYN_STREAM frame. |
| 225 int SendRequest(bool has_upload_data); | 225 int SendRequest(bool has_upload_data); |
| 226 | 226 |
| 227 // Sends DATA frame. | 227 // Sends DATA frame. |
| 228 int WriteStreamData(IOBuffer* data, int length, | 228 int WriteStreamData(IOBuffer* data, int length, |
| 229 SpdyDataFlags flags); | 229 SpdyDataFlags flags); |
| 230 | 230 |
| 231 // Fills SSL info in |ssl_info| and returns true when SSL is in use. | 231 // Fills SSL info in |ssl_info| and returns true when SSL is in use. |
| 232 bool GetSSLInfo(SSLInfo* ssl_info, | 232 bool GetSSLInfo(SSLInfo* ssl_info, |
| 233 bool* was_npn_negotiated, | 233 bool* was_npn_negotiated, |
| 234 SSLClientSocket::NextProto* protocol_negotiated); | 234 NextProto* protocol_negotiated); |
| 235 | 235 |
| 236 // Fills SSL Certificate Request info |cert_request_info| and returns | 236 // Fills SSL Certificate Request info |cert_request_info| and returns |
| 237 // true when SSL is in use. | 237 // true when SSL is in use. |
| 238 bool GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info); | 238 bool GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info); |
| 239 | 239 |
| 240 bool is_idle() const { | 240 bool is_idle() const { |
| 241 return io_state_ == STATE_OPEN || io_state_ == STATE_DONE; | 241 return io_state_ == STATE_OPEN || io_state_ == STATE_DONE; |
| 242 } | 242 } |
| 243 | 243 |
| 244 int response_status() const { return response_status_; } | 244 int response_status() const { return response_status_; } |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 const SpdyStreamId stream_id_; | 381 const SpdyStreamId stream_id_; |
| 382 const int status_; | 382 const int status_; |
| 383 const std::string description_; | 383 const std::string description_; |
| 384 | 384 |
| 385 DISALLOW_COPY_AND_ASSIGN(NetLogSpdyStreamErrorParameter); | 385 DISALLOW_COPY_AND_ASSIGN(NetLogSpdyStreamErrorParameter); |
| 386 }; | 386 }; |
| 387 | 387 |
| 388 } // namespace net | 388 } // namespace net |
| 389 | 389 |
| 390 #endif // NET_SPDY_SPDY_STREAM_H_ | 390 #endif // NET_SPDY_SPDY_STREAM_H_ |
| OLD | NEW |