| 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 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 // the session as permanently closed. Callers must assume that the | 349 // the session as permanently closed. Callers must assume that the |
| 350 // session is destroyed after this is called. (However, it may not | 350 // session is destroyed after this is called. (However, it may not |
| 351 // be destroyed right away, e.g. when a SpdySession function is | 351 // be destroyed right away, e.g. when a SpdySession function is |
| 352 // present in the call stack.) | 352 // present in the call stack.) |
| 353 // | 353 // |
| 354 // |err| should be < ERR_IO_PENDING; this function is intended to be | 354 // |err| should be < ERR_IO_PENDING; this function is intended to be |
| 355 // called on error. | 355 // called on error. |
| 356 // |description| indicates the reason for the error. | 356 // |description| indicates the reason for the error. |
| 357 void CloseSessionOnError(Error err, const std::string& description); | 357 void CloseSessionOnError(Error err, const std::string& description); |
| 358 | 358 |
| 359 // Mark this session as unavailable, meaning that it will not be used to |
| 360 // service new streams. Unlike when a GOAWAY frame is received, this function |
| 361 // will not close any streams. |
| 362 void MakeUnavailable(); |
| 363 |
| 359 // Retrieves information on the current state of the SPDY session as a | 364 // Retrieves information on the current state of the SPDY session as a |
| 360 // Value. Caller takes possession of the returned value. | 365 // Value. Caller takes possession of the returned value. |
| 361 base::Value* GetInfoAsValue() const; | 366 base::Value* GetInfoAsValue() const; |
| 362 | 367 |
| 363 // Indicates whether the session is being reused after having successfully | 368 // Indicates whether the session is being reused after having successfully |
| 364 // used to send/receive data in the past. | 369 // used to send/receive data in the past. |
| 365 bool IsReused() const; | 370 bool IsReused() const; |
| 366 | 371 |
| 367 // Returns true if the underlying transport socket ever had any reads or | 372 // Returns true if the underlying transport socket ever had any reads or |
| 368 // writes. | 373 // writes. |
| (...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1114 // This SPDY proxy is allowed to push resources from origins that are | 1119 // This SPDY proxy is allowed to push resources from origins that are |
| 1115 // different from those of their associated streams. | 1120 // different from those of their associated streams. |
| 1116 HostPortPair trusted_spdy_proxy_; | 1121 HostPortPair trusted_spdy_proxy_; |
| 1117 | 1122 |
| 1118 TimeFunc time_func_; | 1123 TimeFunc time_func_; |
| 1119 }; | 1124 }; |
| 1120 | 1125 |
| 1121 } // namespace net | 1126 } // namespace net |
| 1122 | 1127 |
| 1123 #endif // NET_SPDY_SPDY_SESSION_H_ | 1128 #endif // NET_SPDY_SPDY_SESSION_H_ |
| OLD | NEW |