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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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_ |
OLD | NEW |