| 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 936 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 947 int64 pings_in_flight() const { return pings_in_flight_; } | 947 int64 pings_in_flight() const { return pings_in_flight_; } |
| 948 | 948 |
| 949 SpdyPingId next_ping_id() const { return next_ping_id_; } | 949 SpdyPingId next_ping_id() const { return next_ping_id_; } |
| 950 | 950 |
| 951 base::TimeTicks last_activity_time() const { return last_activity_time_; } | 951 base::TimeTicks last_activity_time() const { return last_activity_time_; } |
| 952 | 952 |
| 953 bool check_ping_status_pending() const { return check_ping_status_pending_; } | 953 bool check_ping_status_pending() const { return check_ping_status_pending_; } |
| 954 | 954 |
| 955 size_t max_concurrent_streams() const { return max_concurrent_streams_; } | 955 size_t max_concurrent_streams() const { return max_concurrent_streams_; } |
| 956 | 956 |
| 957 // Returns the SSLClientSocket that this SPDY session sits on top of, | |
| 958 // or NULL, if the transport is not SSL. | |
| 959 SSLClientSocket* GetSSLClientSocket() const; | |
| 960 | |
| 961 // Whether Do{Read,Write}Loop() is in the call stack. Useful for | 957 // Whether Do{Read,Write}Loop() is in the call stack. Useful for |
| 962 // making sure we don't destroy ourselves prematurely in that case. | 958 // making sure we don't destroy ourselves prematurely in that case. |
| 963 bool in_io_loop_; | 959 bool in_io_loop_; |
| 964 | 960 |
| 965 // The key used to identify this session. | 961 // The key used to identify this session. |
| 966 const SpdySessionKey spdy_session_key_; | 962 const SpdySessionKey spdy_session_key_; |
| 967 | 963 |
| 968 // Set set of SpdySessionKeys for which this session has serviced | 964 // Set set of SpdySessionKeys for which this session has serviced |
| 969 // requests. | 965 // requests. |
| 970 std::set<SpdySessionKey> pooled_aliases_; | 966 std::set<SpdySessionKey> pooled_aliases_; |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1185 // Used for posting asynchronous IO tasks. We use this even though | 1181 // Used for posting asynchronous IO tasks. We use this even though |
| 1186 // SpdySession is refcounted because we don't need to keep the SpdySession | 1182 // SpdySession is refcounted because we don't need to keep the SpdySession |
| 1187 // alive if the last reference is within a RunnableMethod. Just revoke the | 1183 // alive if the last reference is within a RunnableMethod. Just revoke the |
| 1188 // method. | 1184 // method. |
| 1189 base::WeakPtrFactory<SpdySession> weak_factory_; | 1185 base::WeakPtrFactory<SpdySession> weak_factory_; |
| 1190 }; | 1186 }; |
| 1191 | 1187 |
| 1192 } // namespace net | 1188 } // namespace net |
| 1193 | 1189 |
| 1194 #endif // NET_SPDY_SPDY_SESSION_H_ | 1190 #endif // NET_SPDY_SPDY_SESSION_H_ |
| OLD | NEW |