| 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 // |stream_id| The stream receiving data. | 95 // |stream_id| The stream receiving data. |
| 96 // |data| A buffer containing the data received. | 96 // |data| A buffer containing the data received. |
| 97 // |len| The length of the data buffer. | 97 // |len| The length of the data buffer. |
| 98 // When the other side has finished sending data on this stream, | 98 // When the other side has finished sending data on this stream, |
| 99 // this method will be called with a zero-length buffer. | 99 // this method will be called with a zero-length buffer. |
| 100 void OnStreamFrameData(SpdyStreamId stream_id, | 100 void OnStreamFrameData(SpdyStreamId stream_id, |
| 101 const char* data, | 101 const char* data, |
| 102 size_t len, | 102 size_t len, |
| 103 bool fin) override; | 103 bool fin) override; |
| 104 | 104 |
| 105 // Called when padding is received (padding length field or padding octets). |
| 106 // |stream_id| The stream receiving data. |
| 107 // |len| The number of padding octets. |
| 108 void OnStreamPadding(SpdyStreamId stream_id, size_t len) override; |
| 109 |
| 105 // Called when a SETTINGS frame is received. | 110 // Called when a SETTINGS frame is received. |
| 106 // |clear_persisted| True if the respective flag is set on the SETTINGS frame. | 111 // |clear_persisted| True if the respective flag is set on the SETTINGS frame. |
| 107 void OnSettings(bool clear_persisted) override {} | 112 void OnSettings(bool clear_persisted) override {} |
| 108 | 113 |
| 109 // Called when an individual setting within a SETTINGS frame has been parsed | 114 // Called when an individual setting within a SETTINGS frame has been parsed |
| 110 // and validated. | 115 // and validated. |
| 111 void OnSetting(SpdySettingsIds id, uint8 flags, uint32 value) override {} | 116 void OnSetting(SpdySettingsIds id, uint8 flags, uint32 value) override {} |
| 112 | 117 |
| 113 // Called when a PING frame has been parsed. | 118 // Called when a PING frame has been parsed. |
| 114 void OnPing(SpdyPingId unique_id, bool is_ack) override {} | 119 void OnPing(SpdyPingId unique_id, bool is_ack) override {} |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 typedef std::map<uint32, SMInterface*> StreamToSmif; | 215 typedef std::map<uint32, SMInterface*> StreamToSmif; |
| 211 StreamToSmif stream_to_smif_; | 216 StreamToSmif stream_to_smif_; |
| 212 bool close_on_error_; | 217 bool close_on_error_; |
| 213 | 218 |
| 214 static std::string forward_ip_header_; | 219 static std::string forward_ip_header_; |
| 215 }; | 220 }; |
| 216 | 221 |
| 217 } // namespace net | 222 } // namespace net |
| 218 | 223 |
| 219 #endif // NET_TOOLS_FLIP_SERVER_SPDY_INTERFACE_H_ | 224 #endif // NET_TOOLS_FLIP_SERVER_SPDY_INTERFACE_H_ |
| OLD | NEW |