Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(152)

Side by Side Diff: net/tools/flip_server/spdy_interface.h

Issue 959743002: Account for HTTP/2 padding in receive windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: One more mock implementation. Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/spdy/spdy_test_util_common.cc ('k') | net/tools/flip_server/spdy_interface.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « net/spdy/spdy_test_util_common.cc ('k') | net/tools/flip_server/spdy_interface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698