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_TOOLS_FLIP_SERVER_SPDY_INTERFACE_H_ | 5 #ifndef NET_TOOLS_FLIP_SERVER_SPDY_INTERFACE_H_ |
6 #define NET_TOOLS_FLIP_SERVER_SPDY_INTERFACE_H_ | 6 #define NET_TOOLS_FLIP_SERVER_SPDY_INTERFACE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 bool unidirectional, | 74 bool unidirectional, |
75 const SpdyHeaderBlock& headers) override; | 75 const SpdyHeaderBlock& headers) override; |
76 | 76 |
77 // Called after all the header data for SYN_REPLY control frame is received. | 77 // Called after all the header data for SYN_REPLY control frame is received. |
78 void OnSynReply(SpdyStreamId stream_id, | 78 void OnSynReply(SpdyStreamId stream_id, |
79 bool fin, | 79 bool fin, |
80 const SpdyHeaderBlock& headers) override; | 80 const SpdyHeaderBlock& headers) override; |
81 | 81 |
82 // Called after all the header data for HEADERS control frame is received. | 82 // Called after all the header data for HEADERS control frame is received. |
83 void OnHeaders(SpdyStreamId stream_id, | 83 void OnHeaders(SpdyStreamId stream_id, |
| 84 bool has_priority, |
| 85 SpdyPriority priority, |
84 bool fin, | 86 bool fin, |
85 const SpdyHeaderBlock& headers) override; | 87 const SpdyHeaderBlock& headers) override; |
86 | 88 |
87 // Called when data frame header is received. | 89 // Called when data frame header is received. |
88 void OnDataFrameHeader(SpdyStreamId stream_id, | 90 void OnDataFrameHeader(SpdyStreamId stream_id, |
89 size_t length, | 91 size_t length, |
90 bool fin) override {} | 92 bool fin) override {} |
91 | 93 |
92 // Called when data is received. | 94 // Called when data is received. |
93 // |stream_id| The stream receiving data. | 95 // |stream_id| The stream receiving data. |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
208 typedef std::map<uint32, SMInterface*> StreamToSmif; | 210 typedef std::map<uint32, SMInterface*> StreamToSmif; |
209 StreamToSmif stream_to_smif_; | 211 StreamToSmif stream_to_smif_; |
210 bool close_on_error_; | 212 bool close_on_error_; |
211 | 213 |
212 static std::string forward_ip_header_; | 214 static std::string forward_ip_header_; |
213 }; | 215 }; |
214 | 216 |
215 } // namespace net | 217 } // namespace net |
216 | 218 |
217 #endif // NET_TOOLS_FLIP_SERVER_SPDY_INTERFACE_H_ | 219 #endif // NET_TOOLS_FLIP_SERVER_SPDY_INTERFACE_H_ |
OLD | NEW |