| 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 803 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 814 // Remove old unclaimed pushed streams. | 814 // Remove old unclaimed pushed streams. |
| 815 void DeleteExpiredPushedStreams(); | 815 void DeleteExpiredPushedStreams(); |
| 816 | 816 |
| 817 // BufferedSpdyFramerVisitorInterface: | 817 // BufferedSpdyFramerVisitorInterface: |
| 818 void OnError(SpdyFramer::SpdyError error_code) override; | 818 void OnError(SpdyFramer::SpdyError error_code) override; |
| 819 void OnStreamError(SpdyStreamId stream_id, | 819 void OnStreamError(SpdyStreamId stream_id, |
| 820 const std::string& description) override; | 820 const std::string& description) override; |
| 821 void OnPing(SpdyPingId unique_id, bool is_ack) override; | 821 void OnPing(SpdyPingId unique_id, bool is_ack) override; |
| 822 void OnRstStream(SpdyStreamId stream_id, SpdyRstStreamStatus status) override; | 822 void OnRstStream(SpdyStreamId stream_id, SpdyRstStreamStatus status) override; |
| 823 void OnGoAway(SpdyStreamId last_accepted_stream_id, | 823 void OnGoAway(SpdyStreamId last_accepted_stream_id, |
| 824 SpdyGoAwayStatus status) override; | 824 SpdyGoAwayStatus status, |
| 825 StringPiece debug_data) override; |
| 825 void OnDataFrameHeader(SpdyStreamId stream_id, | 826 void OnDataFrameHeader(SpdyStreamId stream_id, |
| 826 size_t length, | 827 size_t length, |
| 827 bool fin) override; | 828 bool fin) override; |
| 828 void OnStreamFrameData(SpdyStreamId stream_id, | 829 void OnStreamFrameData(SpdyStreamId stream_id, |
| 829 const char* data, | 830 const char* data, |
| 830 size_t len, | 831 size_t len, |
| 831 bool fin) override; | 832 bool fin) override; |
| 832 void OnStreamPadding(SpdyStreamId stream_id, size_t len) override; | 833 void OnStreamPadding(SpdyStreamId stream_id, size_t len) override; |
| 833 void OnSettings(bool clear_persisted) override; | 834 void OnSettings(bool clear_persisted) override; |
| 834 void OnSetting(SpdySettingsIds id, uint8 flags, uint32 value) override; | 835 void OnSetting(SpdySettingsIds id, uint8 flags, uint32 value) override; |
| (...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1181 // Used for posting asynchronous IO tasks. We use this even though | 1182 // Used for posting asynchronous IO tasks. We use this even though |
| 1182 // SpdySession is refcounted because we don't need to keep the SpdySession | 1183 // SpdySession is refcounted because we don't need to keep the SpdySession |
| 1183 // alive if the last reference is within a RunnableMethod. Just revoke the | 1184 // alive if the last reference is within a RunnableMethod. Just revoke the |
| 1184 // method. | 1185 // method. |
| 1185 base::WeakPtrFactory<SpdySession> weak_factory_; | 1186 base::WeakPtrFactory<SpdySession> weak_factory_; |
| 1186 }; | 1187 }; |
| 1187 | 1188 |
| 1188 } // namespace net | 1189 } // namespace net |
| 1189 | 1190 |
| 1190 #endif // NET_SPDY_SPDY_SESSION_H_ | 1191 #endif // NET_SPDY_SPDY_SESSION_H_ |
| OLD | NEW |