| 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 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 601 | 601 |
| 602 // Calls OnResponseReceived(). | 602 // Calls OnResponseReceived(). |
| 603 // Returns true if successful. | 603 // Returns true if successful. |
| 604 bool Respond(const SpdyHeaderBlock& headers, | 604 bool Respond(const SpdyHeaderBlock& headers, |
| 605 const scoped_refptr<SpdyStream> stream); | 605 const scoped_refptr<SpdyStream> stream); |
| 606 | 606 |
| 607 void RecordPingRTTHistogram(base::TimeDelta duration); | 607 void RecordPingRTTHistogram(base::TimeDelta duration); |
| 608 void RecordHistograms(); | 608 void RecordHistograms(); |
| 609 void RecordProtocolErrorHistogram(SpdyProtocolErrorDetails details); | 609 void RecordProtocolErrorHistogram(SpdyProtocolErrorDetails details); |
| 610 | 610 |
| 611 // Closes all streams. Used as part of shutdown. | 611 // Closes all active streams with stream id's greater than |
| 612 // |last_good_stream_id|, as well as any created or pending streams. |
| 613 // Does not close unclaimed push streams. |
| 614 void CloseAllStreamsAfter(SpdyStreamId last_good_stream_id, |
| 615 net::Error status); |
| 616 |
| 617 // Closes all streams, including unclaimed push streams. Used as part of |
| 618 // shutdown. |
| 612 void CloseAllStreams(net::Error status); | 619 void CloseAllStreams(net::Error status); |
| 613 | 620 |
| 614 void LogAbandonedStream(const scoped_refptr<SpdyStream>& stream, | 621 void LogAbandonedStream(const scoped_refptr<SpdyStream>& stream, |
| 615 net::Error status); | 622 net::Error status); |
| 616 | 623 |
| 617 // Invokes a user callback for stream creation. We provide this method so it | 624 // Invokes a user callback for stream creation. We provide this method so it |
| 618 // can be deferred to the MessageLoop, so we avoid re-entrancy problems. | 625 // can be deferred to the MessageLoop, so we avoid re-entrancy problems. |
| 619 void CompleteStreamRequest(SpdyStreamRequest* pending_request); | 626 void CompleteStreamRequest(SpdyStreamRequest* pending_request); |
| 620 | 627 |
| 621 // Remove old unclaimed pushed streams. | 628 // Remove old unclaimed pushed streams. |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 907 // This SPDY proxy is allowed to push resources from origins that are | 914 // This SPDY proxy is allowed to push resources from origins that are |
| 908 // different from those of their associated streams. | 915 // different from those of their associated streams. |
| 909 HostPortPair trusted_spdy_proxy_; | 916 HostPortPair trusted_spdy_proxy_; |
| 910 | 917 |
| 911 TimeFunc time_func_; | 918 TimeFunc time_func_; |
| 912 }; | 919 }; |
| 913 | 920 |
| 914 } // namespace net | 921 } // namespace net |
| 915 | 922 |
| 916 #endif // NET_SPDY_SPDY_SESSION_H_ | 923 #endif // NET_SPDY_SPDY_SESSION_H_ |
| OLD | NEW |