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 592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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 streams. Used as part of shutdown. |
612 void CloseAllStreams(net::Error status); | 612 void CloseAllStreams(net::Error status); |
613 void CloseAllStreamsAfter(SpdyStreamId last_good_stream_id, | |
akalin
2013/04/17 21:14:20
add a comment for CloseAllStreamsAfter? Perhaps do
Ryan Hamilton
2013/04/18 00:30:40
Done.
| |
614 net::Error status); | |
613 | 615 |
614 void LogAbandonedStream(const scoped_refptr<SpdyStream>& stream, | 616 void LogAbandonedStream(const scoped_refptr<SpdyStream>& stream, |
615 net::Error status); | 617 net::Error status); |
616 | 618 |
617 // Invokes a user callback for stream creation. We provide this method so it | 619 // 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. | 620 // can be deferred to the MessageLoop, so we avoid re-entrancy problems. |
619 void CompleteStreamRequest(SpdyStreamRequest* pending_request); | 621 void CompleteStreamRequest(SpdyStreamRequest* pending_request); |
620 | 622 |
621 // Remove old unclaimed pushed streams. | 623 // Remove old unclaimed pushed streams. |
622 void DeleteExpiredPushedStreams(); | 624 void DeleteExpiredPushedStreams(); |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
907 // This SPDY proxy is allowed to push resources from origins that are | 909 // This SPDY proxy is allowed to push resources from origins that are |
908 // different from those of their associated streams. | 910 // different from those of their associated streams. |
909 HostPortPair trusted_spdy_proxy_; | 911 HostPortPair trusted_spdy_proxy_; |
910 | 912 |
911 TimeFunc time_func_; | 913 TimeFunc time_func_; |
912 }; | 914 }; |
913 | 915 |
914 } // namespace net | 916 } // namespace net |
915 | 917 |
916 #endif // NET_SPDY_SPDY_SESSION_H_ | 918 #endif // NET_SPDY_SPDY_SESSION_H_ |
OLD | NEW |