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 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 // A stream where the client sends a request with possibly a body, | 44 // A stream where the client sends a request with possibly a body, |
45 // and the server then sends a response with a body. | 45 // and the server then sends a response with a body. |
46 SPDY_REQUEST_RESPONSE_STREAM, | 46 SPDY_REQUEST_RESPONSE_STREAM, |
47 // A server-initiated stream where the server just sends a response | 47 // A server-initiated stream where the server just sends a response |
48 // with a body and the client does not send anything. | 48 // with a body and the client does not send anything. |
49 SPDY_PUSH_STREAM | 49 SPDY_PUSH_STREAM |
50 }; | 50 }; |
51 | 51 |
52 // Passed to some SpdyStream functions to indicate whether there's | 52 // Passed to some SpdyStream functions to indicate whether there's |
53 // more data to send. | 53 // more data to send. |
54 enum SpdySendStatus { | 54 enum SpdySendStatus { MORE_DATA_TO_SEND, NO_MORE_DATA_TO_SEND }; |
55 MORE_DATA_TO_SEND, | |
56 NO_MORE_DATA_TO_SEND | |
57 }; | |
58 | 55 |
59 // Returned by SpdyStream::OnResponseHeadersUpdated() to indicate | 56 // Returned by SpdyStream::OnResponseHeadersUpdated() to indicate |
60 // whether the current response headers are complete or not. | 57 // whether the current response headers are complete or not. |
61 enum SpdyResponseHeadersStatus { | 58 enum SpdyResponseHeadersStatus { |
62 RESPONSE_HEADERS_ARE_INCOMPLETE, | 59 RESPONSE_HEADERS_ARE_INCOMPLETE, |
63 RESPONSE_HEADERS_ARE_COMPLETE | 60 RESPONSE_HEADERS_ARE_COMPLETE |
64 }; | 61 }; |
65 | 62 |
66 // The SpdyStream is used by the SpdySession to represent each stream known | 63 // The SpdyStream is used by the SpdySession to represent each stream known |
67 // on the SpdySession. This class provides interfaces for SpdySession to use. | 64 // on the SpdySession. This class provides interfaces for SpdySession to use. |
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
561 // TODO(jgraettinger): Consider removing after crbug.com/35511 is tracked | 558 // TODO(jgraettinger): Consider removing after crbug.com/35511 is tracked |
562 // down. | 559 // down. |
563 bool write_handler_guard_; | 560 bool write_handler_guard_; |
564 | 561 |
565 DISALLOW_COPY_AND_ASSIGN(SpdyStream); | 562 DISALLOW_COPY_AND_ASSIGN(SpdyStream); |
566 }; | 563 }; |
567 | 564 |
568 } // namespace net | 565 } // namespace net |
569 | 566 |
570 #endif // NET_SPDY_SPDY_STREAM_H_ | 567 #endif // NET_SPDY_SPDY_STREAM_H_ |
OLD | NEW |