| 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 340 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   351  |   351  | 
|   352   // The LoadState is used for informing the user of the current network |   352   // The LoadState is used for informing the user of the current network | 
|   353   // status, such as "resolving host", "connecting", etc. |   353   // status, such as "resolving host", "connecting", etc. | 
|   354   LoadState GetLoadState() const; |   354   LoadState GetLoadState() const; | 
|   355  |   355  | 
|   356   // Fills SSL info in |ssl_info| and returns true when SSL is in use. |   356   // Fills SSL info in |ssl_info| and returns true when SSL is in use. | 
|   357   bool GetSSLInfo(SSLInfo* ssl_info, |   357   bool GetSSLInfo(SSLInfo* ssl_info, | 
|   358                   bool* was_npn_negotiated, |   358                   bool* was_npn_negotiated, | 
|   359                   NextProto* protocol_negotiated); |   359                   NextProto* protocol_negotiated); | 
|   360  |   360  | 
|   361   // Fills SSL Certificate Request info |cert_request_info| and returns |  | 
|   362   // true when SSL is in use. |  | 
|   363   bool GetSSLCertRequestInfo(SSLCertRequestInfo* cert_request_info); |  | 
|   364  |  | 
|   365   // Send a WINDOW_UPDATE frame for a stream. Called by a stream |   361   // Send a WINDOW_UPDATE frame for a stream. Called by a stream | 
|   366   // whenever receive window size is increased. |   362   // whenever receive window size is increased. | 
|   367   void SendStreamWindowUpdate(SpdyStreamId stream_id, |   363   void SendStreamWindowUpdate(SpdyStreamId stream_id, | 
|   368                               uint32 delta_window_size); |   364                               uint32 delta_window_size); | 
|   369  |   365  | 
|   370   // Accessors for the session's availability state. |   366   // Accessors for the session's availability state. | 
|   371   bool IsAvailable() const { return availability_state_ == STATE_AVAILABLE; } |   367   bool IsAvailable() const { return availability_state_ == STATE_AVAILABLE; } | 
|   372   bool IsGoingAway() const { return availability_state_ == STATE_GOING_AWAY; } |   368   bool IsGoingAway() const { return availability_state_ == STATE_GOING_AWAY; } | 
|   373   bool IsDraining() const { return availability_state_ == STATE_DRAINING; } |   369   bool IsDraining() const { return availability_state_ == STATE_DRAINING; } | 
|   374  |   370  | 
| (...skipping 812 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1187   // Used for posting asynchronous IO tasks.  We use this even though |  1183   // Used for posting asynchronous IO tasks.  We use this even though | 
|  1188   // SpdySession is refcounted because we don't need to keep the SpdySession |  1184   // SpdySession is refcounted because we don't need to keep the SpdySession | 
|  1189   // alive if the last reference is within a RunnableMethod.  Just revoke the |  1185   // alive if the last reference is within a RunnableMethod.  Just revoke the | 
|  1190   // method. |  1186   // method. | 
|  1191   base::WeakPtrFactory<SpdySession> weak_factory_; |  1187   base::WeakPtrFactory<SpdySession> weak_factory_; | 
|  1192 }; |  1188 }; | 
|  1193  |  1189  | 
|  1194 }  // namespace net |  1190 }  // namespace net | 
|  1195  |  1191  | 
|  1196 #endif  // NET_SPDY_SPDY_SESSION_H_ |  1192 #endif  // NET_SPDY_SPDY_SESSION_H_ | 
| OLD | NEW |