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_BUFFERED_SPDY_FRAMER_H_ | 5 #ifndef NET_SPDY_BUFFERED_SPDY_FRAMER_H_ |
6 #define NET_SPDY_BUFFERED_SPDY_FRAMER_H_ | 6 #define NET_SPDY_BUFFERED_SPDY_FRAMER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
103 // SpdyFramer methods. | 103 // SpdyFramer methods. |
104 size_t ProcessInput(const char* data, size_t len); | 104 size_t ProcessInput(const char* data, size_t len); |
105 int protocol_version(); | 105 int protocol_version(); |
106 void Reset(); | 106 void Reset(); |
107 SpdyFramer::SpdyError error_code() const; | 107 SpdyFramer::SpdyError error_code() const; |
108 SpdyFramer::SpdyState state() const; | 108 SpdyFramer::SpdyState state() const; |
109 bool MessageFullyRead(); | 109 bool MessageFullyRead(); |
110 bool HasError(); | 110 bool HasError(); |
111 SpdySynStreamControlFrame* CreateSynStream(SpdyStreamId stream_id, | 111 SpdySynStreamControlFrame* CreateSynStream(SpdyStreamId stream_id, |
112 SpdyStreamId associated_stream_id, | 112 SpdyStreamId associated_stream_id, |
113 int priority, | 113 SpdyPriority priority, |
Ryan Hamilton
2012/04/23 22:51:05
Nice catch!
szym
2012/04/24 00:19:31
This helped a lot in distinguishing the priority b
| |
114 uint8 credential_slot, | 114 uint8 credential_slot, |
115 SpdyControlFlags flags, | 115 SpdyControlFlags flags, |
116 bool compressed, | 116 bool compressed, |
117 const SpdyHeaderBlock* headers); | 117 const SpdyHeaderBlock* headers); |
118 SpdySynReplyControlFrame* CreateSynReply(SpdyStreamId stream_id, | 118 SpdySynReplyControlFrame* CreateSynReply(SpdyStreamId stream_id, |
119 SpdyControlFlags flags, | 119 SpdyControlFlags flags, |
120 bool compressed, | 120 bool compressed, |
121 const SpdyHeaderBlock* headers); | 121 const SpdyHeaderBlock* headers); |
122 SpdyRstStreamControlFrame* CreateRstStream(SpdyStreamId stream_id, | 122 SpdyRstStreamControlFrame* CreateRstStream(SpdyStreamId stream_id, |
123 SpdyStatusCodes status) const; | 123 SpdyStatusCodes status) const; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
161 SpdyStreamId header_stream_id_; | 161 SpdyStreamId header_stream_id_; |
162 scoped_ptr<SpdyFrame> control_frame_; | 162 scoped_ptr<SpdyFrame> control_frame_; |
163 int frames_received_; | 163 int frames_received_; |
164 | 164 |
165 DISALLOW_COPY_AND_ASSIGN(BufferedSpdyFramer); | 165 DISALLOW_COPY_AND_ASSIGN(BufferedSpdyFramer); |
166 }; | 166 }; |
167 | 167 |
168 } // namespace net | 168 } // namespace net |
169 | 169 |
170 #endif // NET_SPDY_BUFFERED_SPDY_FRAMER_H_ | 170 #endif // NET_SPDY_BUFFERED_SPDY_FRAMER_H_ |
OLD | NEW |