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

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

Issue 1997863002: Revert of Avoids the "re-encode HPACK as SPDY3" step. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 106
107 // Called when the other side has finished sending data on this stream. 107 // Called when the other side has finished sending data on this stream.
108 // |stream_id| The stream that was receivin data. 108 // |stream_id| The stream that was receivin data.
109 void OnStreamEnd(SpdyStreamId stream_id) override; 109 void OnStreamEnd(SpdyStreamId stream_id) override;
110 110
111 // Called when padding is received (padding length field or padding octets). 111 // Called when padding is received (padding length field or padding octets).
112 // |stream_id| The stream receiving data. 112 // |stream_id| The stream receiving data.
113 // |len| The number of padding octets. 113 // |len| The number of padding octets.
114 void OnStreamPadding(SpdyStreamId stream_id, size_t len) override; 114 void OnStreamPadding(SpdyStreamId stream_id, size_t len) override;
115 115
116 // Called just before processing the payload of a frame containing header
117 // data. Should return an implementation of SpdyHeadersHandlerInterface that
118 // will receive headers for stream |stream_id|. The caller will not take
119 // ownership of the headers handler. The same instance should be returned
120 // for all header frames comprising a logical header block (i.e. until
121 // OnHeaderFrameEnd() is called with end_headers == true).
122 SpdyHeadersHandlerInterface* OnHeaderFrameStart(
123 SpdyStreamId stream_id) override;
124
125 // Called after processing the payload of a frame containing header data.
126 // |end_headers| is true if there will not be any subsequent CONTINUATION
127 // frames.
128 void OnHeaderFrameEnd(SpdyStreamId stream_id, bool end_headers) override;
129
116 // Called when a SETTINGS frame is received. 130 // Called when a SETTINGS frame is received.
117 // |clear_persisted| True if the respective flag is set on the SETTINGS frame. 131 // |clear_persisted| True if the respective flag is set on the SETTINGS frame.
118 void OnSettings(bool clear_persisted) override {} 132 void OnSettings(bool clear_persisted) override {}
119 133
120 // Called when an individual setting within a SETTINGS frame has been parsed 134 // Called when an individual setting within a SETTINGS frame has been parsed
121 // and validated. 135 // and validated.
122 void OnSetting(SpdySettingsIds id, uint8_t flags, uint32_t value) override {} 136 void OnSetting(SpdySettingsIds id, uint8_t flags, uint32_t value) override {}
123 137
124 // Called when a PING frame has been parsed. 138 // Called when a PING frame has been parsed.
125 void OnPing(SpdyPingId unique_id, bool is_ack) override {} 139 void OnPing(SpdyPingId unique_id, bool is_ack) override {}
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 typedef std::map<uint32_t, SMInterface*> StreamToSmif; 236 typedef std::map<uint32_t, SMInterface*> StreamToSmif;
223 StreamToSmif stream_to_smif_; 237 StreamToSmif stream_to_smif_;
224 bool close_on_error_; 238 bool close_on_error_;
225 239
226 static std::string forward_ip_header_; 240 static std::string forward_ip_header_;
227 }; 241 };
228 242
229 } // namespace net 243 } // namespace net
230 244
231 #endif // NET_TOOLS_FLIP_SERVER_SPDY_INTERFACE_H_ 245 #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