| 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 | 123 |
| 124 // Called when a WINDOW_UPDATE frame has been parsed. | 124 // Called when a WINDOW_UPDATE frame has been parsed. |
| 125 virtual void OnWindowUpdate(SpdyStreamId stream_id, | 125 virtual void OnWindowUpdate(SpdyStreamId stream_id, |
| 126 uint32 delta_window_size) OVERRIDE {} | 126 uint32 delta_window_size) OVERRIDE {} |
| 127 | 127 |
| 128 // Called when a PUSH_PROMISE frame has been parsed. | 128 // Called when a PUSH_PROMISE frame has been parsed. |
| 129 virtual void OnPushPromise(SpdyStreamId stream_id, | 129 virtual void OnPushPromise(SpdyStreamId stream_id, |
| 130 SpdyStreamId promised_stream_id, | 130 SpdyStreamId promised_stream_id, |
| 131 const SpdyHeaderBlock& headers) OVERRIDE {} | 131 const SpdyHeaderBlock& headers) OVERRIDE {} |
| 132 | 132 |
| 133 virtual bool OnUnknownFrame(SpdyStreamId stream_id, int frame_type) OVERRIDE; |
| 134 |
| 133 public: | 135 public: |
| 134 virtual size_t ProcessReadInput(const char* data, size_t len) OVERRIDE; | 136 virtual size_t ProcessReadInput(const char* data, size_t len) OVERRIDE; |
| 135 virtual size_t ProcessWriteInput(const char* data, size_t len) OVERRIDE; | 137 virtual size_t ProcessWriteInput(const char* data, size_t len) OVERRIDE; |
| 136 virtual bool MessageFullyRead() const OVERRIDE; | 138 virtual bool MessageFullyRead() const OVERRIDE; |
| 137 virtual void SetStreamID(uint32 stream_id) OVERRIDE {} | 139 virtual void SetStreamID(uint32 stream_id) OVERRIDE {} |
| 138 virtual bool Error() const OVERRIDE; | 140 virtual bool Error() const OVERRIDE; |
| 139 virtual const char* ErrorAsString() const OVERRIDE; | 141 virtual const char* ErrorAsString() const OVERRIDE; |
| 140 virtual void Reset() OVERRIDE {} | 142 virtual void Reset() OVERRIDE {} |
| 141 virtual void ResetForNewInterface(int32 server_idx) OVERRIDE; | 143 virtual void ResetForNewInterface(int32 server_idx) OVERRIDE; |
| 142 virtual void ResetForNewConnection() OVERRIDE; | 144 virtual void ResetForNewConnection() OVERRIDE; |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 typedef std::map<uint32, SMInterface*> StreamToSmif; | 213 typedef std::map<uint32, SMInterface*> StreamToSmif; |
| 212 StreamToSmif stream_to_smif_; | 214 StreamToSmif stream_to_smif_; |
| 213 bool close_on_error_; | 215 bool close_on_error_; |
| 214 | 216 |
| 215 static std::string forward_ip_header_; | 217 static std::string forward_ip_header_; |
| 216 }; | 218 }; |
| 217 | 219 |
| 218 } // namespace net | 220 } // namespace net |
| 219 | 221 |
| 220 #endif // NET_TOOLS_FLIP_SERVER_SPDY_INTERFACE_H_ | 222 #endif // NET_TOOLS_FLIP_SERVER_SPDY_INTERFACE_H_ |
| OLD | NEW |