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

Side by Side Diff: net/spdy/spdy_stream.h

Issue 10810069: SPDY: Add WriteHeaders interface to SpdySession and SpdyStream (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: support AddEvent Created 8 years, 4 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 | Annotate | Revision Log
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_SPDY_SPDY_STREAM_H_ 5 #ifndef NET_SPDY_SPDY_STREAM_H_
6 #define NET_SPDY_SPDY_STREAM_H_ 6 #define NET_SPDY_SPDY_STREAM_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 // TODO(satorux): This is only for testing. We should be able to remove 215 // TODO(satorux): This is only for testing. We should be able to remove
216 // this once crbug.com/113107 is addressed. 216 // this once crbug.com/113107 is addressed.
217 bool body_sent() const { return io_state_ > STATE_SEND_BODY_COMPLETE; } 217 bool body_sent() const { return io_state_ > STATE_SEND_BODY_COMPLETE; }
218 218
219 // Interface for Spdy[Http|WebSocket]Stream to use. 219 // Interface for Spdy[Http|WebSocket]Stream to use.
220 220
221 // Sends the request. 221 // Sends the request.
222 // For non push stream, it will send SYN_STREAM frame. 222 // For non push stream, it will send SYN_STREAM frame.
223 int SendRequest(bool has_upload_data); 223 int SendRequest(bool has_upload_data);
224 224
225 // Sends a HEADERS frame.
226 int WriteHeaders(const SpdyHeaderBlock& headers, SpdyControlFlags flags);
227
225 // Sends DATA frame. 228 // Sends DATA frame.
226 int WriteStreamData(IOBuffer* data, int length, 229 int WriteStreamData(IOBuffer* data, int length,
227 SpdyDataFlags flags); 230 SpdyDataFlags flags);
228 231
229 // Fills SSL info in |ssl_info| and returns true when SSL is in use. 232 // Fills SSL info in |ssl_info| and returns true when SSL is in use.
230 bool GetSSLInfo(SSLInfo* ssl_info, 233 bool GetSSLInfo(SSLInfo* ssl_info,
231 bool* was_npn_negotiated, 234 bool* was_npn_negotiated,
232 NextProto* protocol_negotiated); 235 NextProto* protocol_negotiated);
233 236
234 // Fills SSL Certificate Request info |cert_request_info| and returns 237 // Fills SSL Certificate Request info |cert_request_info| and returns
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 std::string domain_bound_private_key_; 361 std::string domain_bound_private_key_;
359 std::string domain_bound_cert_; 362 std::string domain_bound_cert_;
360 ServerBoundCertService::RequestHandle domain_bound_cert_request_handle_; 363 ServerBoundCertService::RequestHandle domain_bound_cert_request_handle_;
361 364
362 DISALLOW_COPY_AND_ASSIGN(SpdyStream); 365 DISALLOW_COPY_AND_ASSIGN(SpdyStream);
363 }; 366 };
364 367
365 } // namespace net 368 } // namespace net
366 369
367 #endif // NET_SPDY_SPDY_STREAM_H_ 370 #endif // NET_SPDY_SPDY_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698