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_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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 SpdyControlFlags flags, | 198 SpdyControlFlags flags, |
199 const SpdyHeaderBlock& headers); | 199 const SpdyHeaderBlock& headers); |
200 | 200 |
201 // Write a CREDENTIAL frame to the session. | 201 // Write a CREDENTIAL frame to the session. |
202 SpdyCredentialControlFrame* CreateCredentialFrame(const std::string& origin, | 202 SpdyCredentialControlFrame* CreateCredentialFrame(const std::string& origin, |
203 SSLClientCertType type, | 203 SSLClientCertType type, |
204 const std::string& key, | 204 const std::string& key, |
205 const std::string& cert, | 205 const std::string& cert, |
206 RequestPriority priority); | 206 RequestPriority priority); |
207 | 207 |
| 208 // Write a HEADERS frame to the stream. |
| 209 SpdyHeadersControlFrame* CreateHeadersFrame(SpdyStreamId stream_id, |
| 210 const SpdyHeaderBlock& headers, |
| 211 SpdyControlFlags flags); |
| 212 |
208 // Write a data frame to the stream. | 213 // Write a data frame to the stream. |
209 // Used to create and queue a data frame for the given stream. | 214 // Used to create and queue a data frame for the given stream. |
210 SpdyDataFrame* CreateDataFrame(SpdyStreamId stream_id, | 215 SpdyDataFrame* CreateDataFrame(SpdyStreamId stream_id, |
211 net::IOBuffer* data, int len, | 216 net::IOBuffer* data, int len, |
212 SpdyDataFlags flags); | 217 SpdyDataFlags flags); |
213 | 218 |
214 // Close a stream. | 219 // Close a stream. |
215 void CloseStream(SpdyStreamId stream_id, int status); | 220 void CloseStream(SpdyStreamId stream_id, int status); |
216 | 221 |
217 // Close a stream that has been created but is not yet active. | 222 // Close a stream that has been created but is not yet active. |
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
742 base::TimeDelta hung_interval_; | 747 base::TimeDelta hung_interval_; |
743 | 748 |
744 // This SPDY proxy is allowed to push resources from origins that are | 749 // This SPDY proxy is allowed to push resources from origins that are |
745 // different from those of their associated streams. | 750 // different from those of their associated streams. |
746 HostPortPair trusted_spdy_proxy_; | 751 HostPortPair trusted_spdy_proxy_; |
747 }; | 752 }; |
748 | 753 |
749 } // namespace net | 754 } // namespace net |
750 | 755 |
751 #endif // NET_SPDY_SPDY_SESSION_H_ | 756 #endif // NET_SPDY_SPDY_SESSION_H_ |
OLD | NEW |