| 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 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 629 // Removes this session from the session pool. | 629 // Removes this session from the session pool. |
| 630 void RemoveFromPool(); | 630 void RemoveFromPool(); |
| 631 | 631 |
| 632 // Check if we have a pending pushed-stream for this url | 632 // Check if we have a pending pushed-stream for this url |
| 633 // Returns the stream if found (and returns it from the pending | 633 // Returns the stream if found (and returns it from the pending |
| 634 // list), returns NULL otherwise. | 634 // list), returns NULL otherwise. |
| 635 base::WeakPtr<SpdyStream> GetActivePushStream(const std::string& url); | 635 base::WeakPtr<SpdyStream> GetActivePushStream(const std::string& url); |
| 636 | 636 |
| 637 // Calls OnResponseReceived(). | 637 // Calls OnResponseReceived(). |
| 638 // Returns true if successful. | 638 // Returns true if successful. |
| 639 bool Respond(const SpdyHeaderBlock& headers, SpdyStream* stream); | 639 bool Respond(const SpdyHeaderBlock& response_headers, |
| 640 base::Time response_time, |
| 641 base::TimeTicks recv_first_byte_time, |
| 642 SpdyStream* stream); |
| 640 | 643 |
| 641 void RecordPingRTTHistogram(base::TimeDelta duration); | 644 void RecordPingRTTHistogram(base::TimeDelta duration); |
| 642 void RecordHistograms(); | 645 void RecordHistograms(); |
| 643 void RecordProtocolErrorHistogram(SpdyProtocolErrorDetails details); | 646 void RecordProtocolErrorHistogram(SpdyProtocolErrorDetails details); |
| 644 | 647 |
| 645 // Closes all active streams with stream id's greater than | 648 // Closes all active streams with stream id's greater than |
| 646 // |last_good_stream_id|, as well as any created or pending streams. | 649 // |last_good_stream_id|, as well as any created or pending streams. |
| 647 // Does not close unclaimed push streams. | 650 // Does not close unclaimed push streams. |
| 648 void CloseAllStreamsAfter(SpdyStreamId last_good_stream_id, | 651 void CloseAllStreamsAfter(SpdyStreamId last_good_stream_id, |
| 649 Error status); | 652 Error status); |
| (...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 989 // This SPDY proxy is allowed to push resources from origins that are | 992 // This SPDY proxy is allowed to push resources from origins that are |
| 990 // different from those of their associated streams. | 993 // different from those of their associated streams. |
| 991 HostPortPair trusted_spdy_proxy_; | 994 HostPortPair trusted_spdy_proxy_; |
| 992 | 995 |
| 993 TimeFunc time_func_; | 996 TimeFunc time_func_; |
| 994 }; | 997 }; |
| 995 | 998 |
| 996 } // namespace net | 999 } // namespace net |
| 997 | 1000 |
| 998 #endif // NET_SPDY_SPDY_SESSION_H_ | 1001 #endif // NET_SPDY_SPDY_SESSION_H_ |
| OLD | NEW |