| 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 <deque> | 8 #include <deque> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 // |stream|. |stream| is guaranteed to be activated before the | 283 // |stream|. |stream| is guaranteed to be activated before the |
| 284 // producer is used to produce its frame. | 284 // producer is used to produce its frame. |
| 285 void EnqueueStreamWrite(const base::WeakPtr<SpdyStream>& stream, | 285 void EnqueueStreamWrite(const base::WeakPtr<SpdyStream>& stream, |
| 286 SpdyFrameType frame_type, | 286 SpdyFrameType frame_type, |
| 287 scoped_ptr<SpdyBufferProducer> producer); | 287 scoped_ptr<SpdyBufferProducer> producer); |
| 288 | 288 |
| 289 // Creates and returns a SYN frame for |stream_id|. | 289 // Creates and returns a SYN frame for |stream_id|. |
| 290 scoped_ptr<SpdyFrame> CreateSynStream( | 290 scoped_ptr<SpdyFrame> CreateSynStream( |
| 291 SpdyStreamId stream_id, | 291 SpdyStreamId stream_id, |
| 292 RequestPriority priority, | 292 RequestPriority priority, |
| 293 uint8 credential_slot, | |
| 294 SpdyControlFlags flags, | 293 SpdyControlFlags flags, |
| 295 const SpdyHeaderBlock& headers); | 294 const SpdyHeaderBlock& headers); |
| 296 | 295 |
| 297 // Creates and returns a SpdyBuffer holding a data frame with the | 296 // Creates and returns a SpdyBuffer holding a data frame with the |
| 298 // given data. May return NULL if stalled by flow control. | 297 // given data. May return NULL if stalled by flow control. |
| 299 scoped_ptr<SpdyBuffer> CreateDataBuffer(SpdyStreamId stream_id, | 298 scoped_ptr<SpdyBuffer> CreateDataBuffer(SpdyStreamId stream_id, |
| 300 IOBuffer* data, | 299 IOBuffer* data, |
| 301 int len, | 300 int len, |
| 302 SpdyDataFlags flags); | 301 SpdyDataFlags flags); |
| 303 | 302 |
| (...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 795 virtual void OnSettings(bool clear_persisted) OVERRIDE; | 794 virtual void OnSettings(bool clear_persisted) OVERRIDE; |
| 796 virtual void OnSetting( | 795 virtual void OnSetting( |
| 797 SpdySettingsIds id, uint8 flags, uint32 value) OVERRIDE; | 796 SpdySettingsIds id, uint8 flags, uint32 value) OVERRIDE; |
| 798 virtual void OnWindowUpdate(SpdyStreamId stream_id, | 797 virtual void OnWindowUpdate(SpdyStreamId stream_id, |
| 799 uint32 delta_window_size) OVERRIDE; | 798 uint32 delta_window_size) OVERRIDE; |
| 800 virtual void OnPushPromise(SpdyStreamId stream_id, | 799 virtual void OnPushPromise(SpdyStreamId stream_id, |
| 801 SpdyStreamId promised_stream_id) OVERRIDE; | 800 SpdyStreamId promised_stream_id) OVERRIDE; |
| 802 virtual void OnSynStream(SpdyStreamId stream_id, | 801 virtual void OnSynStream(SpdyStreamId stream_id, |
| 803 SpdyStreamId associated_stream_id, | 802 SpdyStreamId associated_stream_id, |
| 804 SpdyPriority priority, | 803 SpdyPriority priority, |
| 805 uint8 credential_slot, | |
| 806 bool fin, | 804 bool fin, |
| 807 bool unidirectional, | 805 bool unidirectional, |
| 808 const SpdyHeaderBlock& headers) OVERRIDE; | 806 const SpdyHeaderBlock& headers) OVERRIDE; |
| 809 virtual void OnSynReply( | 807 virtual void OnSynReply( |
| 810 SpdyStreamId stream_id, | 808 SpdyStreamId stream_id, |
| 811 bool fin, | 809 bool fin, |
| 812 const SpdyHeaderBlock& headers) OVERRIDE; | 810 const SpdyHeaderBlock& headers) OVERRIDE; |
| 813 virtual void OnHeaders( | 811 virtual void OnHeaders( |
| 814 SpdyStreamId stream_id, | 812 SpdyStreamId stream_id, |
| 815 bool fin, | 813 bool fin, |
| (...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1116 // This SPDY proxy is allowed to push resources from origins that are | 1114 // This SPDY proxy is allowed to push resources from origins that are |
| 1117 // different from those of their associated streams. | 1115 // different from those of their associated streams. |
| 1118 HostPortPair trusted_spdy_proxy_; | 1116 HostPortPair trusted_spdy_proxy_; |
| 1119 | 1117 |
| 1120 TimeFunc time_func_; | 1118 TimeFunc time_func_; |
| 1121 }; | 1119 }; |
| 1122 | 1120 |
| 1123 } // namespace net | 1121 } // namespace net |
| 1124 | 1122 |
| 1125 #endif // NET_SPDY_SPDY_SESSION_H_ | 1123 #endif // NET_SPDY_SPDY_SESSION_H_ |
| OLD | NEW |