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 <list> | 9 #include <list> |
10 #include <map> | 10 #include <map> |
11 #include <queue> | 11 #include <queue> |
12 #include <set> | 12 #include <set> |
13 #include <string> | 13 #include <string> |
14 | 14 |
15 #include "base/basictypes.h" | 15 #include "base/basictypes.h" |
16 #include "base/gtest_prod_util.h" | 16 #include "base/gtest_prod_util.h" |
17 #include "base/memory/ref_counted.h" | 17 #include "base/memory/ref_counted.h" |
18 #include "base/memory/weak_ptr.h" | 18 #include "base/memory/weak_ptr.h" |
19 #include "base/time.h" | 19 #include "base/time.h" |
20 #include "net/base/io_buffer.h" | 20 #include "net/base/io_buffer.h" |
21 #include "net/base/load_states.h" | 21 #include "net/base/load_states.h" |
22 #include "net/base/net_errors.h" | 22 #include "net/base/net_errors.h" |
23 #include "net/base/request_priority.h" | 23 #include "net/base/request_priority.h" |
24 #include "net/socket/client_socket_handle.h" | 24 #include "net/socket/client_socket_handle.h" |
| 25 #include "net/socket/next_proto.h" |
25 #include "net/socket/ssl_client_socket.h" | 26 #include "net/socket/ssl_client_socket.h" |
26 #include "net/socket/stream_socket.h" | 27 #include "net/socket/stream_socket.h" |
27 #include "net/spdy/buffered_spdy_framer.h" | 28 #include "net/spdy/buffered_spdy_framer.h" |
28 #include "net/spdy/spdy_credential_state.h" | 29 #include "net/spdy/spdy_credential_state.h" |
29 #include "net/spdy/spdy_header_block.h" | 30 #include "net/spdy/spdy_header_block.h" |
30 #include "net/spdy/spdy_io_buffer.h" | 31 #include "net/spdy/spdy_io_buffer.h" |
31 #include "net/spdy/spdy_protocol.h" | 32 #include "net/spdy/spdy_protocol.h" |
32 #include "net/spdy/spdy_session_pool.h" | 33 #include "net/spdy/spdy_session_pool.h" |
33 #include "net/ssl/ssl_client_cert_type.h" | 34 #include "net/ssl/ssl_client_cert_type.h" |
34 #include "net/ssl/ssl_config_service.h" | 35 #include "net/ssl/ssl_config_service.h" |
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
449 FRIEND_TEST_ALL_PREFIXES(SpdySessionSpdy2Test, FailedPing); | 450 FRIEND_TEST_ALL_PREFIXES(SpdySessionSpdy2Test, FailedPing); |
450 FRIEND_TEST_ALL_PREFIXES(SpdySessionSpdy2Test, GetActivePushStream); | 451 FRIEND_TEST_ALL_PREFIXES(SpdySessionSpdy2Test, GetActivePushStream); |
451 FRIEND_TEST_ALL_PREFIXES(SpdySessionSpdy2Test, DeleteExpiredPushStreams); | 452 FRIEND_TEST_ALL_PREFIXES(SpdySessionSpdy2Test, DeleteExpiredPushStreams); |
452 FRIEND_TEST_ALL_PREFIXES(SpdySessionSpdy2Test, ProtocolNegotiation); | 453 FRIEND_TEST_ALL_PREFIXES(SpdySessionSpdy2Test, ProtocolNegotiation); |
453 FRIEND_TEST_ALL_PREFIXES(SpdySessionSpdy3Test, ClientPing); | 454 FRIEND_TEST_ALL_PREFIXES(SpdySessionSpdy3Test, ClientPing); |
454 FRIEND_TEST_ALL_PREFIXES(SpdySessionSpdy3Test, FailedPing); | 455 FRIEND_TEST_ALL_PREFIXES(SpdySessionSpdy3Test, FailedPing); |
455 FRIEND_TEST_ALL_PREFIXES(SpdySessionSpdy3Test, GetActivePushStream); | 456 FRIEND_TEST_ALL_PREFIXES(SpdySessionSpdy3Test, GetActivePushStream); |
456 FRIEND_TEST_ALL_PREFIXES(SpdySessionSpdy3Test, DeleteExpiredPushStreams); | 457 FRIEND_TEST_ALL_PREFIXES(SpdySessionSpdy3Test, DeleteExpiredPushStreams); |
457 FRIEND_TEST_ALL_PREFIXES(SpdySessionSpdy3Test, ProtocolNegotiation); | 458 FRIEND_TEST_ALL_PREFIXES(SpdySessionSpdy3Test, ProtocolNegotiation); |
458 FRIEND_TEST_ALL_PREFIXES(SpdySessionSpdy3Test, ProtocolNegotiation31); | 459 FRIEND_TEST_ALL_PREFIXES(SpdySessionSpdy3Test, ProtocolNegotiation31); |
| 460 FRIEND_TEST_ALL_PREFIXES(SpdySessionSpdy3Test, ProtocolNegotiation4); |
459 FRIEND_TEST_ALL_PREFIXES(SpdySessionSpdy3Test, IncreaseRecvWindowSize); | 461 FRIEND_TEST_ALL_PREFIXES(SpdySessionSpdy3Test, IncreaseRecvWindowSize); |
460 FRIEND_TEST_ALL_PREFIXES(SpdySessionSpdy3Test, AdjustRecvWindowSize31); | 462 FRIEND_TEST_ALL_PREFIXES(SpdySessionSpdy3Test, AdjustRecvWindowSize31); |
461 FRIEND_TEST_ALL_PREFIXES(SpdySessionSpdy3Test, AdjustSendWindowSize31); | 463 FRIEND_TEST_ALL_PREFIXES(SpdySessionSpdy3Test, AdjustSendWindowSize31); |
462 FRIEND_TEST_ALL_PREFIXES(SpdySessionSpdy3Test, | 464 FRIEND_TEST_ALL_PREFIXES(SpdySessionSpdy3Test, |
463 SessionFlowControlInactiveStream31); | 465 SessionFlowControlInactiveStream31); |
464 FRIEND_TEST_ALL_PREFIXES(SpdySessionSpdy3Test, SessionFlowControlEndToEnd31); | 466 FRIEND_TEST_ALL_PREFIXES(SpdySessionSpdy3Test, SessionFlowControlEndToEnd31); |
465 | 467 |
466 typedef std::deque<SpdyStreamRequest*> PendingStreamRequestQueue; | 468 typedef std::deque<SpdyStreamRequest*> PendingStreamRequestQueue; |
467 typedef std::set<SpdyStreamRequest*> PendingStreamRequestCompletionSet; | 469 typedef std::set<SpdyStreamRequest*> PendingStreamRequestCompletionSet; |
468 | 470 |
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
880 // This SPDY proxy is allowed to push resources from origins that are | 882 // This SPDY proxy is allowed to push resources from origins that are |
881 // different from those of their associated streams. | 883 // different from those of their associated streams. |
882 HostPortPair trusted_spdy_proxy_; | 884 HostPortPair trusted_spdy_proxy_; |
883 | 885 |
884 TimeFunc time_func_; | 886 TimeFunc time_func_; |
885 }; | 887 }; |
886 | 888 |
887 } // namespace net | 889 } // namespace net |
888 | 890 |
889 #endif // NET_SPDY_SPDY_SESSION_H_ | 891 #endif // NET_SPDY_SPDY_SESSION_H_ |
OLD | NEW |