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