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

Side by Side Diff: net/spdy/spdy_session.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, 5 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
« no previous file with comments | « no previous file | net/spdy/spdy_session.cc » ('j') | net/spdy/spdy_session.cc » ('J')
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_SPDY_SPDY_SESSION_H_ 5 #ifndef NET_SPDY_SPDY_SESSION_H_
6 #define NET_SPDY_SPDY_SESSION_H_ 6 #define NET_SPDY_SPDY_SESSION_H_
7 7
8 #include <algorithm> 8 #include <algorithm>
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 SpdyControlFlags flags, 166 SpdyControlFlags flags,
167 const SpdyHeaderBlock& headers); 167 const SpdyHeaderBlock& headers);
168 168
169 // Write a CREDENTIAL frame to the session. 169 // Write a CREDENTIAL frame to the session.
170 int WriteCredentialFrame(const std::string& origin, 170 int WriteCredentialFrame(const std::string& origin,
171 SSLClientCertType type, 171 SSLClientCertType type,
172 const std::string& key, 172 const std::string& key,
173 const std::string& cert, 173 const std::string& cert,
174 RequestPriority priority); 174 RequestPriority priority);
175 175
176 // Write a HEADERS frame to the stream.
177 int WriteHeaders(SpdyStreamId stream_id,
178 const SpdyHeaderBlock& headers,
179 SpdyControlFlags flags);
180
176 // Write a data frame to the stream. 181 // Write a data frame to the stream.
177 // Used to create and queue a data frame for the given stream. 182 // Used to create and queue a data frame for the given stream.
178 int WriteStreamData(SpdyStreamId stream_id, net::IOBuffer* data, 183 int WriteStreamData(SpdyStreamId stream_id, net::IOBuffer* data,
179 int len, 184 int len,
180 SpdyDataFlags flags); 185 SpdyDataFlags flags);
181 186
182 // Close a stream. 187 // Close a stream.
183 void CloseStream(SpdyStreamId stream_id, int status); 188 void CloseStream(SpdyStreamId stream_id, int status);
184 189
185 // Reset a stream by sending a RST_STREAM frame with given status code. 190 // Reset a stream by sending a RST_STREAM frame with given status code.
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after
684 base::TimeDelta hung_interval_; 689 base::TimeDelta hung_interval_;
685 690
686 // This SPDY proxy is allowed to push resources from origins that are 691 // This SPDY proxy is allowed to push resources from origins that are
687 // different from those of their associated streams. 692 // different from those of their associated streams.
688 HostPortPair trusted_spdy_proxy_; 693 HostPortPair trusted_spdy_proxy_;
689 }; 694 };
690 695
691 } // namespace net 696 } // namespace net
692 697
693 #endif // NET_SPDY_SPDY_SESSION_H_ 698 #endif // NET_SPDY_SPDY_SESSION_H_
OLDNEW
« no previous file with comments | « no previous file | net/spdy/spdy_session.cc » ('j') | net/spdy/spdy_session.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698