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 602 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
613 // Removes this session from the session pool. | 613 // Removes this session from the session pool. |
614 void RemoveFromPool(); | 614 void RemoveFromPool(); |
615 | 615 |
616 // Check if we have a pending pushed-stream for this url | 616 // Check if we have a pending pushed-stream for this url |
617 // Returns the stream if found (and returns it from the pending | 617 // Returns the stream if found (and returns it from the pending |
618 // list), returns NULL otherwise. | 618 // list), returns NULL otherwise. |
619 base::WeakPtr<SpdyStream> GetActivePushStream(const std::string& url); | 619 base::WeakPtr<SpdyStream> GetActivePushStream(const std::string& url); |
620 | 620 |
621 // Calls OnResponseReceived(). | 621 // Calls OnResponseReceived(). |
622 // Returns true if successful. | 622 // Returns true if successful. |
623 bool Respond(const SpdyHeaderBlock& headers, SpdyStream* stream); | 623 bool Respond(const SpdyHeaderBlock& response_headers, |
| 624 base::Time response_time, |
| 625 base::TimeTicks recv_first_byte_time, |
| 626 SpdyStream* stream); |
624 | 627 |
625 void RecordPingRTTHistogram(base::TimeDelta duration); | 628 void RecordPingRTTHistogram(base::TimeDelta duration); |
626 void RecordHistograms(); | 629 void RecordHistograms(); |
627 void RecordProtocolErrorHistogram(SpdyProtocolErrorDetails details); | 630 void RecordProtocolErrorHistogram(SpdyProtocolErrorDetails details); |
628 | 631 |
629 // Closes all active streams with stream id's greater than | 632 // Closes all active streams with stream id's greater than |
630 // |last_good_stream_id|, as well as any created or pending streams. | 633 // |last_good_stream_id|, as well as any created or pending streams. |
631 // Does not close unclaimed push streams. | 634 // Does not close unclaimed push streams. |
632 void CloseAllStreamsAfter(SpdyStreamId last_good_stream_id, | 635 void CloseAllStreamsAfter(SpdyStreamId last_good_stream_id, |
633 Error status); | 636 Error status); |
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
973 // This SPDY proxy is allowed to push resources from origins that are | 976 // This SPDY proxy is allowed to push resources from origins that are |
974 // different from those of their associated streams. | 977 // different from those of their associated streams. |
975 HostPortPair trusted_spdy_proxy_; | 978 HostPortPair trusted_spdy_proxy_; |
976 | 979 |
977 TimeFunc time_func_; | 980 TimeFunc time_func_; |
978 }; | 981 }; |
979 | 982 |
980 } // namespace net | 983 } // namespace net |
981 | 984 |
982 #endif // NET_SPDY_SPDY_SESSION_H_ | 985 #endif // NET_SPDY_SPDY_SESSION_H_ |
OLD | NEW |