Chromium Code Reviews| 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 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 476 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, AdjustRecvWindowSize); | 476 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, AdjustRecvWindowSize); |
| 477 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, AdjustSendWindowSize); | 477 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, AdjustSendWindowSize); |
| 478 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, SessionFlowControlInactiveStream); | 478 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, SessionFlowControlInactiveStream); |
| 479 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, SessionFlowControlNoReceiveLeaks); | 479 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, SessionFlowControlNoReceiveLeaks); |
| 480 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, SessionFlowControlNoSendLeaks); | 480 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, SessionFlowControlNoSendLeaks); |
| 481 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, SessionFlowControlEndToEnd); | 481 FRIEND_TEST_ALL_PREFIXES(SpdySessionTest, SessionFlowControlEndToEnd); |
| 482 | 482 |
| 483 typedef std::deque<SpdyStreamRequest*> PendingStreamRequestQueue; | 483 typedef std::deque<SpdyStreamRequest*> PendingStreamRequestQueue; |
| 484 typedef std::set<SpdyStreamRequest*> PendingStreamRequestCompletionSet; | 484 typedef std::set<SpdyStreamRequest*> PendingStreamRequestCompletionSet; |
| 485 | 485 |
| 486 typedef std::map<SpdyStreamId, SpdyStream*> ActiveStreamMap; | 486 struct ActiveStreamInfo { |
| 487 typedef std::map<std::string, std::pair<SpdyStream*, base::TimeTicks> > | 487 ActiveStreamInfo(); |
|
Ryan Hamilton
2013/06/21 15:35:37
Is this constructor used explicitly, or only by of
akalin
2013/06/21 18:30:44
Just for STL, and to make sure that the member var
| |
| 488 PushedStreamMap; | 488 explicit ActiveStreamInfo(SpdyStream* stream); |
| 489 ~ActiveStreamInfo(); | |
| 490 | |
| 491 SpdyStream* stream; | |
| 492 bool waiting_for_syn_reply; | |
| 493 }; | |
| 494 typedef std::map<SpdyStreamId, ActiveStreamInfo> ActiveStreamMap; | |
| 495 | |
| 496 struct PushedStreamInfo { | |
| 497 PushedStreamInfo(); | |
| 498 PushedStreamInfo(SpdyStreamId stream_id, base::TimeTicks creation_time); | |
| 499 ~PushedStreamInfo(); | |
| 500 | |
| 501 SpdyStreamId stream_id; | |
| 502 base::TimeTicks creation_time; | |
| 503 }; | |
| 504 typedef std::map<std::string, PushedStreamInfo> PushedStreamMap; | |
| 489 | 505 |
| 490 typedef std::set<SpdyStream*> CreatedStreamSet; | 506 typedef std::set<SpdyStream*> CreatedStreamSet; |
| 491 | 507 |
| 492 enum State { | 508 enum State { |
| 493 STATE_IDLE, | 509 STATE_IDLE, |
| 494 STATE_CONNECTING, | 510 STATE_CONNECTING, |
| 495 STATE_DO_READ, | 511 STATE_DO_READ, |
| 496 STATE_DO_READ_COMPLETE, | 512 STATE_DO_READ_COMPLETE, |
| 497 STATE_CLOSED | 513 STATE_CLOSED |
| 498 }; | 514 }; |
| (...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 973 // This SPDY proxy is allowed to push resources from origins that are | 989 // This SPDY proxy is allowed to push resources from origins that are |
| 974 // different from those of their associated streams. | 990 // different from those of their associated streams. |
| 975 HostPortPair trusted_spdy_proxy_; | 991 HostPortPair trusted_spdy_proxy_; |
| 976 | 992 |
| 977 TimeFunc time_func_; | 993 TimeFunc time_func_; |
| 978 }; | 994 }; |
| 979 | 995 |
| 980 } // namespace net | 996 } // namespace net |
| 981 | 997 |
| 982 #endif // NET_SPDY_SPDY_SESSION_H_ | 998 #endif // NET_SPDY_SPDY_SESSION_H_ |
| OLD | NEW |