| 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_FRAMER_H_ | 5 #ifndef NET_SPDY_SPDY_FRAMER_H_ |
| 6 #define NET_SPDY_SPDY_FRAMER_H_ | 6 #define NET_SPDY_SPDY_FRAMER_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 virtual bool OnControlFrameHeaderData(SpdyStreamId stream_id, | 157 virtual bool OnControlFrameHeaderData(SpdyStreamId stream_id, |
| 158 const char* header_data, | 158 const char* header_data, |
| 159 size_t len) = 0; | 159 size_t len) = 0; |
| 160 | 160 |
| 161 // Called when a SYN_STREAM frame is received. | 161 // Called when a SYN_STREAM frame is received. |
| 162 // Note that header block data is not included. See | 162 // Note that header block data is not included. See |
| 163 // OnControlFrameHeaderData(). | 163 // OnControlFrameHeaderData(). |
| 164 virtual void OnSynStream(SpdyStreamId stream_id, | 164 virtual void OnSynStream(SpdyStreamId stream_id, |
| 165 SpdyStreamId associated_stream_id, | 165 SpdyStreamId associated_stream_id, |
| 166 SpdyPriority priority, | 166 SpdyPriority priority, |
| 167 uint8 credential_slot, | |
| 168 bool fin, | 167 bool fin, |
| 169 bool unidirectional) = 0; | 168 bool unidirectional) = 0; |
| 170 | 169 |
| 171 // Called when a SYN_REPLY frame is received. | 170 // Called when a SYN_REPLY frame is received. |
| 172 // Note that header block data is not included. See | 171 // Note that header block data is not included. See |
| 173 // OnControlFrameHeaderData(). | 172 // OnControlFrameHeaderData(). |
| 174 virtual void OnSynReply(SpdyStreamId stream_id, bool fin) = 0; | 173 virtual void OnSynReply(SpdyStreamId stream_id, bool fin) = 0; |
| 175 | 174 |
| 176 // Called when a RST_STREAM frame has been parsed. | 175 // Called when a RST_STREAM frame has been parsed. |
| 177 virtual void OnRstStream(SpdyStreamId stream_id, | 176 virtual void OnRstStream(SpdyStreamId stream_id, |
| (...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 645 // starts with HTTP. If it does, we likely have an HTTP response. This | 644 // starts with HTTP. If it does, we likely have an HTTP response. This |
| 646 // isn't guaranteed though: we could have gotten a settings frame and then | 645 // isn't guaranteed though: we could have gotten a settings frame and then |
| 647 // corrupt data that just looks like HTTP, but deterministic checking requires | 646 // corrupt data that just looks like HTTP, but deterministic checking requires |
| 648 // a lot more state. | 647 // a lot more state. |
| 649 bool probable_http_response_; | 648 bool probable_http_response_; |
| 650 }; | 649 }; |
| 651 | 650 |
| 652 } // namespace net | 651 } // namespace net |
| 653 | 652 |
| 654 #endif // NET_SPDY_SPDY_FRAMER_H_ | 653 #endif // NET_SPDY_SPDY_FRAMER_H_ |
| OLD | NEW |